##// END OF EJS Templates
basectx: move __repr__ from changectx...
Sean Farley -
r19546:a45cf68d default
parent child Browse files
Show More
@@ -41,6 +41,9 b' class basectx(object):'
41 41 def __int__(self):
42 42 return self.rev()
43 43
44 def __repr__(self):
45 return "<%s %s>" % (type(self).__name__, str(self))
46
44 47 def rev(self):
45 48 return self._rev
46 49 def node(self):
@@ -153,9 +156,6 b' class changectx(basectx):'
153 156 raise error.RepoLookupError(
154 157 _("unknown revision '%s'") % changeid)
155 158
156 def __repr__(self):
157 return "<changectx %s>" % str(self)
158
159 159 def __hash__(self):
160 160 try:
161 161 return hash(self._rev)
General Comments 0
You need to be logged in to leave comments. Login now