##// END OF EJS Templates
basectx: move __str__ from changectx
Sean Farley -
r19540:7b864da0 default
parent child Browse files
Show More
@@ -35,6 +35,9 b' class basectx(object):'
35
35
36 return o
36 return o
37
37
38 def __str__(self):
39 return short(self.node())
40
38 class changectx(basectx):
41 class changectx(basectx):
39 """A changecontext object makes access to data related to a particular
42 """A changecontext object makes access to data related to a particular
40 changeset convenient. It represents a read-only context already presnt in
43 changeset convenient. It represents a read-only context already presnt in
@@ -140,9 +143,6 b' class changectx(basectx):'
140 raise error.RepoLookupError(
143 raise error.RepoLookupError(
141 _("unknown revision '%s'") % changeid)
144 _("unknown revision '%s'") % changeid)
142
145
143 def __str__(self):
144 return short(self.node())
145
146 def __int__(self):
146 def __int__(self):
147 return self.rev()
147 return self.rev()
148
148
General Comments 0
You need to be logged in to leave comments. Login now