##// END OF EJS Templates
context: simplify repr methods
Matt Mackall -
r3216:d865390c default
parent child Browse files
Show More
@@ -36,7 +36,7 b' class changectx(object):'
36 36 return short(self.node())
37 37
38 38 def __repr__(self):
39 return "<changectx %s>" % short(self.node())
39 return "<changectx %s>" % str(self)
40 40
41 41 def __eq__(self, other):
42 42 return self._rev == other._rev
@@ -154,7 +154,7 b' class filectx(object):'
154 154 return "%s@%s" % (self.path(), short(self.node()))
155 155
156 156 def __repr__(self):
157 return "<filectx %s@%s>" % (self.path(), short(self.node()))
157 return "<filectx %s>" % str(self)
158 158
159 159 def __eq__(self, other):
160 160 return self._path == other._path and self._changeid == other._changeid
General Comments 0
You need to be logged in to leave comments. Login now