Show More
@@ -44,6 +44,12 class basectx(object): | |||
|
44 | 44 | def __repr__(self): |
|
45 | 45 | return "<%s %s>" % (type(self).__name__, str(self)) |
|
46 | 46 | |
|
47 | def __eq__(self, other): | |
|
48 | try: | |
|
49 | return type(self) == type(other) and self._rev == other._rev | |
|
50 | except AttributeError: | |
|
51 | return False | |
|
52 | ||
|
47 | 53 | def rev(self): |
|
48 | 54 | return self._rev |
|
49 | 55 | def node(self): |
@@ -162,12 +168,6 class changectx(basectx): | |||
|
162 | 168 | except AttributeError: |
|
163 | 169 | return id(self) |
|
164 | 170 | |
|
165 | def __eq__(self, other): | |
|
166 | try: | |
|
167 | return self._rev == other._rev | |
|
168 | except AttributeError: | |
|
169 | return False | |
|
170 | ||
|
171 | 171 | def __ne__(self, other): |
|
172 | 172 | return not (self == other) |
|
173 | 173 |
General Comments 0
You need to be logged in to leave comments.
Login now