D3157: histedit: drop unnecessary check for "self.node is not None"
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Apr 10 12:03:29 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG966061b8826d: histedit: drop unnecessary check for "self.node is not None" (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3157?vs=7782&id=7935
REVISION DETAIL
https://phab.mercurial-scm.org/D3157
AFFECTED FILES
hgext/histedit.py
CHANGE DETAILS
diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -448,8 +448,7 @@
except error.RepoError:
raise error.ParseError(_('unknown changeset %s listed')
% ha[:12])
- if self.node is not None:
- self._verifynodeconstraints(prev, expected, seen)
+ self._verifynodeconstraints(prev, expected, seen)
def _verifynodeconstraints(self, prev, expected, seen):
# by default command need a node in the edited list
To: martinvonz, durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list