changeset 19561:7806e63598b0

basectx: move flags from changectx
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 05 Aug 2013 18:28:54 -0500
parents f256e1108053
children 389d7767630d
files mercurial/context.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Mon Aug 05 18:28:40 2013 -0500
+++ b/mercurial/context.py	Mon Aug 05 18:28:54 2013 -0500
@@ -113,6 +113,12 @@
     def filenode(self, path):
         return self._fileinfo(path)[0]
 
+    def flags(self, path):
+        try:
+            return self._fileinfo(path)[1]
+        except error.LookupError:
+            return ''
+
 class changectx(basectx):
     """A changecontext object makes access to data related to a particular
     changeset convenient. It represents a read-only context already presnt in
@@ -334,12 +340,6 @@
             troubles.append('divergent')
         return troubles
 
-    def flags(self, path):
-        try:
-            return self._fileinfo(path)[1]
-        except error.LookupError:
-            return ''
-
     def filectx(self, path, fileid=None, filelog=None):
         """get a file context from this changeset"""
         if fileid is None: