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
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
mercurial/cmdutil.py | ||
---|---|---|
3153–3162 | Ah, it's this stuff that makes the check unnecessary, I suppose. So the check was probably made unnecessary in commit a8aba292. | |
3164–3175 | 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.