This is an archive of the discontinued Mercurial Phabricator instance.

histedit: drop unnecessary check for "self.node is not None"
ClosedPublic

Authored by martinvonz on Apr 6 2018, 12:54 PM.

Details

Summary

We are doing hex(self.node) just a few lines up, so it shouldn't be
None. The only way it could be none is if it was reassigned in
between. The only way that can happen is if the user had put a
"ffff..." wdirhex revision in the histedit script. This code is much
older than the "ffff..." identifier, so I'm confident it's not there
to handle that case. I'll let someone else add proper checks for
"ffff..." if they care enough.

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

martinvonz created this revision.Apr 6 2018, 12:54 PM
indygreg accepted this revision.Apr 6 2018, 2:54 PM
This revision is now accepted and ready to land.Apr 6 2018, 2:54 PM
This revision was automatically updated to reflect the committed changes.