[PATCH 30 of 36] context: move dirs from changectx
Sean Farley
sean.michael.farley at gmail.com
Wed Aug 7 13:13:30 CDT 2013
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1375746116 18000
# Mon Aug 05 18:41:56 2013 -0500
# Node ID 93fd17be01b527c69d82fe9918e908dd8475ebc3
# Parent 44620c65e3d5d85dafc037a824b2f61028a710f6
context: move dirs from changectx
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -140,10 +140,13 @@
@propertycache
def _dirs(self):
return scmutil.dirs(self._manifest)
+ def dirs(self):
+ return self._dirs
+
class changectx(context):
"""A changecontext object makes access to data related to a particular
changeset convenient. It represents a read-only context already presnt in
the repo."""
def __init__(self, repo, changeid=''):
@@ -395,13 +398,10 @@
# specified pattern is a directory
continue
if match.bad(fn, _('no such file in rev %s') % self) and match(fn):
yield fn
- def dirs(self):
- return self._dirs
-
def dirty(self):
return False
class filectx(object):
"""A filecontext object makes access to data related to a particular
More information about the Mercurial-devel
mailing list