Mercurial > evolve
changeset 2148:b727c7de0560
stablerange: stop using '.node' in __repr__
This remove the last user to this method.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 22 Mar 2017 17:35:08 +0100 |
parents | 5179668d9f47 |
children | a2f45d0dd0ed |
files | hgext3rd/evolve/stablerange.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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