Fix an UnboundLocalError when using --diff-filename.
Review Request #7482 — Created July 3, 2015 and submitted
The calculation of the changenum/commit ID was trying to reference a variable
that wasn't set using--diff-filename
. This change fixes it.
Posted this change using
--diff-filename
.
-
-
I have a naive question (mostly because I'm not familiar with SCMs where
supports_changesets
is true). I agree that this fix resolves the crash from the bug report, but isn't there a secondary component wherebychangenum
really does need need to be set to a legit value (the parameter from the command line) for the subsequent call topost_request()
?