[PATCH 21 of 41] basefilectx: move user from filectx

Sean Farley sean.michael.farley at gmail.com
Mon Aug 12 11:27:17 CDT 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1376279627 18000
#      Sun Aug 11 22:53:47 2013 -0500
# Node ID 2306e9d27dab380b18e26683f45d04e90d96bd66
# Parent  ee00cb4befa921289d58715484f660039cf8c9a4
basefilectx: move user from filectx

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -491,10 +491,12 @@
         return self._filelog.linkrev(self._filerev)
     def node(self):
         return self._changectx.node()
     def hex(self):
         return self._changectx.hex()
+    def user(self):
+        return self._changectx.user()
 
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
     def __init__(self, repo, path, changeid=None, fileid=None,
@@ -547,12 +549,10 @@
         '''opens an arbitrary revision of the file without
         opening a new filelog'''
         return filectx(self._repo, self._path, fileid=fileid,
                        filelog=self._filelog)
 
-    def user(self):
-        return self._changectx.user()
     def date(self):
         return self._changectx.date()
     def files(self):
         return self._changectx.files()
     def description(self):


More information about the Mercurial-devel mailing list