# HG changeset patch # User Sean Farley # Date 1376516434 18000 # Node ID 8f48f5969b475a3140ed9cc78513065cba2e533d # Parent 9fbc193b23586a2bef51deaec37859524ccbb06a commitablectx: move dirs from workingctx diff -r 9fbc193b2358 -r 8f48f5969b47 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."""