There is needless checking for the new commit hash not being equal to
the old commit hash. This condition will always be true at this point in the
code path and thus, can be removed safely. This commit removes the redundant
condition.
Details
Details
ran the test suite.
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
mercurial/cmdutil.py | ||
---|---|---|
3155–3164 | Ah, it's this stuff that makes the check unnecessary, I suppose. So the check was probably made unnecessary in commit a8aba292. | |
3166–3176 | Since you're modifying this area, could you also clean this up using the ui.configoverride() context manager? (Obviously in a follow-up; it's not necessary for this series.) |
Ah, it's this stuff that makes the check unnecessary, I suppose. So the check was probably made unnecessary in commit a8aba292.