changeset 32241:651ee1681964

filectx: add a rawflags method The new method returns the low-level revlog flag. We already have "rawdata" so a "rawflags" makes sense. Both "rawflags" and "rawdata" will be used in a later patch.
author Jun Wu <quark@fb.com>
date Tue, 09 May 2017 16:34:12 -0700
parents 842ea95d45dc
children 067985c26773
files mercurial/context.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Tue May 09 19:53:31 2017 -0700
+++ b/mercurial/context.py	Tue May 09 16:34:12 2017 -0700
@@ -1141,6 +1141,10 @@
     def rawdata(self):
         return self._filelog.revision(self._filenode, raw=True)
 
+    def rawflags(self):
+        """low-level revlog flags"""
+        return self._filelog.flags(self._filerev)
+
     def data(self):
         try:
             return self._filelog.read(self._filenode)