Patchwork [37,of,48,RFC] commitablectx: move children from workingctx

login
register
mail settings
Submitter Sean Farley
Date Sept. 5, 2013, 8:07 p.m.
Message ID <9b3ddba67aec58a5f2d2.1378411651@laptop.local>
Download mbox | patch
Permalink /patch/2375/
State Accepted
Commit ba4c01c34df90242d50c5feb9678382e18211a06
Headers show

Comments

Sean Farley - Sept. 5, 2013, 8:07 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1376515526 18000
#      Wed Aug 14 16:25:26 2013 -0500
# Node ID 9b3ddba67aec58a5f2d27af04015114de43b7878
# Parent  512bb4cb19725056408573167fd195098d8bfc80
commitablectx: move children from workingctx

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1013,10 +1013,13 @@ 
         return phase
 
     def hidden(self):
         return False
 
+    def children(self):
+        return []
+
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
     the current working directory convenient.
     date - any valid date string or (unixtime, offset), or None.
     user - username string, or None.
@@ -1039,13 +1042,10 @@ 
         p = self._repo.dirstate.parents()
         if p[1] == nullid:
             p = p[:-1]
         return [changectx(self._repo, x) for x in p]
 
-    def children(self):
-        return []
-
     def flags(self, path):
         if '_manifest' in self.__dict__:
             try:
                 return self._manifest.flags(path)
             except KeyError: