# HG changeset patch # User Sean Farley # Date 2013-08-12 03:51:18 # Node ID b1c344ebd8e44e6f95ecdb01b0d575822f7d5f75 # Parent 43f9ed2f64b1f1aeec1c61e803bb76496df216d4 basefilectx: move filelog from filectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -483,6 +483,8 @@ class basefilectx(object): return self._filenode def flags(self): return self._changectx.flags(self._path) + def filelog(self): + return self._filelog class filectx(basefilectx): """A filecontext object makes access to data related to a particular @@ -539,8 +541,6 @@ class filectx(basefilectx): return filectx(self._repo, self._path, fileid=fileid, filelog=self._filelog) - def filelog(self): - return self._filelog def rev(self): return self._changeid def linkrev(self):