# HG changeset patch # User Jun Wu # Date 2017-05-09 23:34:12 # Node ID 651ee1681964e822e3278ef44ea50a5114ea35d4 # Parent 842ea95d45dc0d5bb66408292f594bf22ee60a51 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. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1141,6 +1141,10 @@ class filectx(basefilectx): 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)