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