Patchwork [23,of,41] basefilectx: move files from filectx

login
register
mail settings
Submitter Sean Farley
Date Aug. 12, 2013, 4:27 p.m.
Message ID <b6e7a94998c796c94140.1376324839@laptop.local>
Download mbox | patch
Permalink /patch/2150/
State Accepted
Commit 1c030c24e196458a20cd8dab05fece6e29b8cab3
Headers show

Comments

Sean Farley - Aug. 12, 2013, 4:27 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1376279652 18000
#      Sun Aug 11 22:54:12 2013 -0500
# Node ID b6e7a94998c796c94140ebd189f35f5d7a92182f
# Parent  bd322587bb2c1d432d27dc051ca10cbe06482ea4
basefilectx: move files from filectx

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -495,10 +495,12 @@ 
         return self._changectx.hex()
     def user(self):
         return self._changectx.user()
     def date(self):
         return self._changectx.date()
+    def files(self):
+        return self._changectx.files()
 
 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,
@@ -551,12 +553,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 files(self):
-        return self._changectx.files()
     def description(self):
         return self._changectx.description()
     def branch(self):
         return self._changectx.branch()
     def extra(self):