changeset 19705:79792c8ea6da

commitablefilectx: move children from workingfilectx
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 15 Aug 2013 13:42:56 -0500
parents bad0bd99ac96
children 591cbff13a7f
files mercurial/context.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Thu Aug 15 13:42:33 2013 -0500
+++ b/mercurial/context.py	Thu Aug 15 13:42:56 2013 -0500
@@ -1226,6 +1226,9 @@
         return [filectx(self._repo, p, fileid=n, filelog=l)
                 for p, n, l in pl if n != nullid]
 
+    def children(self):
+        return []
+
 class workingfilectx(commitablefilectx):
     """A workingfilectx object makes access to data related to a particular
        file in the working directory convenient."""
@@ -1244,9 +1247,6 @@
             return None
         return rp, self._changectx._parents[0]._manifest.get(rp, nullid)
 
-    def children(self):
-        return []
-
     def size(self):
         return os.lstat(self._repo.wjoin(self._path)).st_size
     def date(self):