[PATCH 37 of 48 RFC] commitablectx: move children from workingctx
Sean Farley
sean.michael.farley at gmail.com
Thu Sep 5 15:07:31 CDT 2013
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1376515526 18000
# Wed Aug 14 16:25:26 2013 -0500
# Node ID 9b3ddba67aec58a5f2d27af04015114de43b7878
# Parent 512bb4cb19725056408573167fd195098d8bfc80
commitablectx: move children from workingctx
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:
More information about the Mercurial-devel
mailing list