stablerange: stop using '.node' in __repr__
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 17:35:08 +0100
changeset 2148 b727c7de0560
parent 2147 5179668d9f47
child 2149 a2f45d0dd0ed
stablerange: stop using '.node' in __repr__ This remove the last user to this method.
hgext3rd/evolve/stablerange.py
--- a/hgext3rd/evolve/stablerange.py	Wed Mar 22 17:33:41 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Wed Mar 22 17:35:08 2017 +0100
@@ -348,7 +348,8 @@
         assert index < self.depth, (head, index, self.depth, revs)
 
     def __repr__(self):
-        return '%s %d %d %s' % (nodemod.short(self.node), self.depth, self.index, nodemod.short(self.obshash))
+        nodehead = self._repo.changelog.node(self.head)
+        return '%s %d %d %s' % (nodemod.short(nodehead), self.depth, self.index, nodemod.short(self.obshash))
 
     def __hash__(self):
         return self._id