Patchwork D3158: histedit: look up partial nodeid as partial nodeid

login
register
mail settings
Submitter phabricator
Date April 10, 2018, 4:03 p.m.
Message ID <ddfc09de63bb0414becae55f24842775@localhost.localdomain>
Download mbox | patch
Permalink /patch/30643/
State Not Applicable
Headers show

Comments

phabricator - April 10, 2018, 4:03 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc4131138eadb: histedit: look up partial nodeid as partial nodeid (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3158?vs=7879&id=7936

REVISION DETAIL
  https://phab.mercurial-scm.org/D3158

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS




To: martinvonz, durin42, #hg-reviewers, indygreg
Cc: yuja, indygreg, mercurial-devel

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -443,11 +443,9 @@ 
         """ Verifies semantic correctness of the rule"""
         repo = self.repo
         ha = node.hex(self.node)
-        try:
-            self.node = repo[ha].node()
-        except error.RepoError:
-            raise error.ParseError(_('unknown changeset %s listed')
-                              % ha[:12])
+        self.node = scmutil.resolvepartialhexnodeid(repo, ha)
+        if self.node is None:
+            raise error.ParseError(_('unknown changeset %s listed') % ha[:12])
         self._verifynodeconstraints(prev, expected, seen)
 
     def _verifynodeconstraints(self, prev, expected, seen):