commitablectx: move dirs from workingctx
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 14 Aug 2013 16:40:34 -0500
changeset 19700 8f48f5969b47
parent 19699 9fbc193b2358
child 19701 f0f8380ec516
commitablectx: move dirs from workingctx
mercurial/context.py
--- a/mercurial/context.py	Wed Aug 14 16:40:27 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 16:40:34 2013 -0500
@@ -1059,6 +1059,9 @@
             self._repo.dirstate.drop(f)
         self._repo.dirstate.setparents(node)
 
+    def dirs(self):
+        return self._repo.dirstate.dirs()
+
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
     the current working directory convenient.
@@ -1185,9 +1188,6 @@
             finally:
                 wlock.release()
 
-    def dirs(self):
-        return self._repo.dirstate.dirs()
-
 class workingfilectx(basefilectx):
     """A workingfilectx object makes access to data related to a particular
        file in the working directory convenient."""