mercurial/context.py
changeset 32278 8a660af9dbe3
parent 32197 2cfdf5241096
child 32279 c38c15d4ce48
equal deleted inserted replaced
32277:1ada3d18e7fb 32278:8a660af9dbe3
   760 
   760 
   761     def filerev(self):
   761     def filerev(self):
   762         return self._filerev
   762         return self._filerev
   763     def filenode(self):
   763     def filenode(self):
   764         return self._filenode
   764         return self._filenode
       
   765     @propertycache
       
   766     def _flags(self):
       
   767         return self._changectx.flags(self._path)
   765     def flags(self):
   768     def flags(self):
   766         return self._changectx.flags(self._path)
   769         return self._flags
   767     def filelog(self):
   770     def filelog(self):
   768         return self._filelog
   771         return self._filelog
   769     def rev(self):
   772     def rev(self):
   770         return self._changeid
   773         return self._changeid
   771     def linkrev(self):
   774     def linkrev(self):
  2059 
  2062 
  2060     def data(self):
  2063     def data(self):
  2061         return self._data
  2064         return self._data
  2062     def size(self):
  2065     def size(self):
  2063         return len(self.data())
  2066         return len(self.data())
  2064     def flags(self):
       
  2065         return self._flags
       
  2066     def renamed(self):
  2067     def renamed(self):
  2067         return self._copied
  2068         return self._copied
  2068 
  2069 
  2069     def remove(self, ignoremissing=False):
  2070     def remove(self, ignoremissing=False):
  2070         """wraps unlink for a repo's working directory"""
  2071         """wraps unlink for a repo's working directory"""