rebase will have similar logic, so let's extract it. Besides, it makes
the histedit code more readable.
We may want to parametrize acceptintervention() by the exception(s)
that should result in transaction close.
durham |
hg-reviewers |
rebase will have similar logic, so let's extract it. Besides, it makes
the histedit code more readable.
We may want to parametrize acceptintervention() by the exception(s)
that should result in transaction close.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
LGTM apart from the condition change
mercurial/util.py | ||
---|---|---|
599 | The initial check was slighty more precise (if tr is not None), any specific reason for the change? |
mercurial/util.py | ||
---|---|---|
599 | We generally prefer "not X" over "is not None" when they're functionally equivalent (and I do think they are here). |
mercurial/util.py | ||
---|---|---|
594 | Technically this will apply to dsguard as well, so 'tr' isn't quite precise. But I think it's better to use 'tr' than invent some third term. |
Technically this will apply to dsguard as well, so 'tr' isn't quite precise. But I think it's better to use 'tr' than invent some third term.