hgext/histedit.py
changeset 37506 c4131138eadb
parent 37505 966061b8826d
child 37678 5f8f013e7d52
--- a/hgext/histedit.py	Fri Apr 06 09:41:25 2018 -0700
+++ b/hgext/histedit.py	Fri Apr 06 09:43:17 2018 -0700
@@ -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):