comparison mercurial/context.py @ 4889:3b081f2a77b2

contexts: improve filectx eq test
author Matt Mackall <mpm@selenic.com>
date Mon, 16 Jul 2007 17:39:03 -0500
parents e45c5120ca27
children 1fd7a99d98f6
comparison
equal deleted inserted replaced
4888:f24191a5d45a 4889:3b081f2a77b2
182 return "<filectx %s>" % str(self) 182 return "<filectx %s>" % str(self)
183 183
184 def __eq__(self, other): 184 def __eq__(self, other):
185 try: 185 try:
186 return (self._path == other._path 186 return (self._path == other._path
187 and self._changeid == other._changeid) 187 and self._fileid == other._fileid)
188 except AttributeError: 188 except AttributeError:
189 return False 189 return False
190 190
191 def __ne__(self, other): 191 def __ne__(self, other):
192 return not (self == other) 192 return not (self == other)