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_changesetsis true). I agree that this fix resolves the crash from the bug report, but isn't there a secondary component wherebychangenumreally does need need to be set to a legit value (the parameter from the command line) for the subsequent call topost_request()?
Tool: PEP8 Style Checker Processed Files: rbtools/commands/post.py Tool: Pyflakes Processed Files: rbtools/commands/post.py