changeset 19700:8f48f5969b47

commitablectx: move dirs from workingctx
author Sean Farley <sean.michael.farley@gmail.com>
date Wed, 14 Aug 2013 16:40:34 -0500
parents 9fbc193b2358
children f0f8380ec516
files mercurial/context.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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."""