Patchwork [31,of,36] context: move dirty from changectx

login
register
mail settings
Submitter Sean Farley
Date Aug. 7, 2013, 6:13 p.m.
Message ID <a5f653299fe868847e7f.1375899211@laptop.local>
Download mbox | patch
Permalink /patch/2048/
State Superseded
Commit 32d9e7df8c5b310aa121e46d55e9f4fae13a29e2
Delegated to: Augie Fackler
Headers show

Comments

Sean Farley - Aug. 7, 2013, 6:13 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1375746161 18000
#      Mon Aug 05 18:42:41 2013 -0500
# Node ID a5f653299fe868847e7fd22d94ecb6505bc34a93
# Parent  93fd17be01b527c69d82fe9918e908dd8475ebc3
context: move dirty from changectx

Patch

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=''):
@@ -398,13 +401,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):