[PATCH 36 of 48 RFC] commitablectx: move hidden from workingctx
Sean Farley
sean.michael.farley at gmail.com
Thu Sep 5 20:07:30 UTC 2013
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1376515517 18000
# Wed Aug 14 16:25:17 2013 -0500
# Node ID 512bb4cb19725056408573167fd195098d8bfc80
# Parent 77722ab0c3fc0815224a618fdeb0f6522a6de5ca
commitablectx: move hidden from workingctx
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1010,10 +1010,13 @@
phase = phases.draft # default phase to draft
for p in self.parents():
phase = max(phase, p.phase())
return phase
+ def hidden(self):
+ return False
+
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.
@@ -1036,13 +1039,10 @@
p = self._repo.dirstate.parents()
if p[1] == nullid:
p = p[:-1]
return [changectx(self._repo, x) for x in p]
- def hidden(self):
- return False
-
def children(self):
return []
def flags(self, path):
if '_manifest' in self.__dict__:
More information about the Mercurial-devel
mailing list