Comments
Patch
@@ -33,10 +33,13 @@
o._rev = nullrev
o._node = nullid
return o
+ def __str__(self):
+ return short(self.node())
+
class changectx(context):
"""A changecontext object makes access to data related to a particular
changeset convenient. It represents a read-only context already presnt in
the repo."""
def __init__(self, repo, changeid=''):
@@ -138,13 +141,10 @@
except TypeError:
pass
raise error.RepoLookupError(
_("unknown revision '%s'") % changeid)
- def __str__(self):
- return short(self.node())
-
def __int__(self):
return self.rev()
def __repr__(self):
return "<changectx %s>" % str(self)