filectx: add a rawflags method
authorJun Wu <quark@fb.com>
Tue, 09 May 2017 16:34:12 -0700
changeset 32241 651ee1681964
parent 32240 842ea95d45dc
child 32242 067985c26773
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.
mercurial/context.py
--- 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)