# HG changeset patch # User Sean Farley # Date 1376279380 18000 # Node ID e5074d82afc994bb4e4652b1f65bf6147474cf5e # Parent bda1d48bb07feb8728f469915a38ac9276aab997 basefilectx: move __ne__ from filectx diff -r bda1d48bb07f -r e5074d82afc9 mercurial/context.py --- a/mercurial/context.py Sun Aug 11 22:49:03 2013 -0500 +++ b/mercurial/context.py Sun Aug 11 22:49:40 2013 -0500 @@ -474,6 +474,9 @@ except AttributeError: return False + def __ne__(self, other): + return not (self == other) + class filectx(basefilectx): """A filecontext object makes access to data related to a particular filerevision convenient.""" @@ -523,9 +526,6 @@ # considered when solving linkrev issue are on the table. return changectx(self._repo.unfiltered(), self._changeid) - def __ne__(self, other): - return not (self == other) - def filectx(self, fileid): '''opens an arbitrary revision of the file without opening a new filelog'''