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.
--- 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)