[PATCH 31 of 35 V2] context: move dirty from changectx

Sean Farley sean.michael.farley at gmail.com
Wed Aug 7 18:51:45 CDT 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1375746161 18000
#      Mon Aug 05 18:42:41 2013 -0500
# Node ID 3a28dc78de7f225d29db6427c035e1f962414b59
# Parent  6971f5efab751e3ec3a655da3dfe088dc6db9f6a
context: move dirty from changectx

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -143,10 +143,13 @@
         return scmutil.dirs(self._manifest)
 
     def dirs(self):
         return self._dirs
 
+    def dirty(self):
+        return False
+
 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=''):
@@ -404,13 +407,10 @@
                 # specified pattern is a directory
                 continue
             if match.bad(fn, _('no such file in rev %s') % self) and match(fn):
                 yield fn
 
-    def dirty(self):
-        return False
-
 class filectx(object):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
     def __init__(self, repo, path, changeid=None, fileid=None,
                  filelog=None, changectx=None):


More information about the Mercurial-devel mailing list