Before this, hg --config histedit.defaultrev= histedit would crash with
File "destutil.py", line 385, in desthistedit
if revs:
UnboundLocalError: local variable 'revs' referenced before assignment
( )
durin42 |
hg-reviewers |
Before this, hg --config histedit.defaultrev= histedit would crash with
File "destutil.py", line 385, in desthistedit
if revs:
UnboundLocalError: local variable 'revs' referenced before assignment
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
(and btw I'd be happier with '' meaning the default, but the original author went through the trouble of checking both cases explicitly, so I kept that)
Queued for stable, thanks.
+ else:
+ raise error.Abort('config option histedit.defaultrev can\'t be empty')
Wrapped the message with _().