equal
deleted
inserted
replaced
34 |
34 |
35 def __str__(self): |
35 def __str__(self): |
36 return short(self.node()) |
36 return short(self.node()) |
37 |
37 |
38 def __repr__(self): |
38 def __repr__(self): |
39 return "<changectx %s>" % short(self.node()) |
39 return "<changectx %s>" % str(self) |
40 |
40 |
41 def __eq__(self, other): |
41 def __eq__(self, other): |
42 return self._rev == other._rev |
42 return self._rev == other._rev |
43 |
43 |
44 def __nonzero__(self): |
44 def __nonzero__(self): |
152 |
152 |
153 def __str__(self): |
153 def __str__(self): |
154 return "%s@%s" % (self.path(), short(self.node())) |
154 return "%s@%s" % (self.path(), short(self.node())) |
155 |
155 |
156 def __repr__(self): |
156 def __repr__(self): |
157 return "<filectx %s@%s>" % (self.path(), short(self.node())) |
157 return "<filectx %s>" % str(self) |
158 |
158 |
159 def __eq__(self, other): |
159 def __eq__(self, other): |
160 return self._path == other._path and self._changeid == other._changeid |
160 return self._path == other._path and self._changeid == other._changeid |
161 |
161 |
162 def filectx(self, fileid): |
162 def filectx(self, fileid): |