Patchwork [36,of,48,RFC] commitablectx: move hidden from workingctx

login
register
mail settings
Submitter Sean Farley
Date Sept. 5, 2013, 8:07 p.m.
Message ID <512bb4cb197250564085.1378411650@laptop.local>
Download mbox | patch
Permalink /patch/2373/
State Accepted
Commit 56ba14d4bc029fa14d7762c08ab0b76d8b7dc5cb
Headers show

Comments

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

Patch

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__: