diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1059,6 +1059,9 @@ class commitablectx(basectx): 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 @@ class workingctx(commitablectx): 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."""