[PATCH 10 of 12] workingctx: remove old customized status method

Sean Farley sean.michael.farley at gmail.com
Mon May 19 15:32:17 CDT 2014


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1398380918 18000
#      Thu Apr 24 18:08:38 2014 -0500
# Node ID 29e9974217e33164493bd4fbe7417ae297d410c6
# Parent  616777bf8bd5dde9ba157e674a6236711bf978a6
workingctx: remove old customized status method

This is unneeded now that basectx has the ability to calculate the status
between two context objects.

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1436,23 +1436,10 @@ class workingctx(committablectx):
                     self._repo.ui.warn('%s: %s\n' %
                                        (self._repo.dirstate.pathto(f), msg))
             match.bad = bad
         return match
 
-    def status(self, ignored=False, clean=False, unknown=False, match=None):
-        """Explicit status query
-        Unless this method is used to query the working copy status, the
-        _status property will implicitly read the status using its default
-        arguments."""
-        listignored, listclean, listunknown = ignored, clean, unknown
-        s = self._dirstatestatus(match=match, ignored=listignored,
-                                 clean=listclean, unknown=listunknown)
-
-        s[0] = self._filtersuspectsymlink(s[0])
-        self._status = s
-        return s
-
 
 class committablefilectx(basefilectx):
     """A committablefilectx provides common functionality for a file context
     that wants the ability to commit, e.g. workingfilectx or memfilectx."""
     def __init__(self, repo, path, filelog=None, ctx=None):


More information about the Mercurial-devel mailing list