mercurial/context.py
changeset 18252 3f1552c6bf71
parent 18211 518c1403838f
child 18364 6252b4f1c4b4
equal deleted inserted replaced
18251:a6483f827512 18252:3f1552c6bf71
    10 import ancestor, mdiff, error, util, scmutil, subrepo, patch, encoding, phases
    10 import ancestor, mdiff, error, util, scmutil, subrepo, patch, encoding, phases
    11 import copies
    11 import copies
    12 import match as matchmod
    12 import match as matchmod
    13 import os, errno, stat
    13 import os, errno, stat
    14 import obsolete as obsmod
    14 import obsolete as obsmod
       
    15 import repoview
    15 
    16 
    16 propertycache = util.propertycache
    17 propertycache = util.propertycache
    17 
    18 
    18 class changectx(object):
    19 class changectx(object):
    19     """A changecontext object makes access to data related to a particular
    20     """A changecontext object makes access to data related to a particular
   209     def phasestr(self):
   210     def phasestr(self):
   210         return phases.phasenames[self.phase()]
   211         return phases.phasenames[self.phase()]
   211     def mutable(self):
   212     def mutable(self):
   212         return self.phase() > phases.public
   213         return self.phase() > phases.public
   213     def hidden(self):
   214     def hidden(self):
   214         return self._rev in self._repo.hiddenrevs
   215         return self._rev in repoview.filteredrevs(self._repo, 'hidden')
   215 
   216 
   216     def parents(self):
   217     def parents(self):
   217         """return contexts for each parent changeset"""
   218         """return contexts for each parent changeset"""
   218         return self._parents
   219         return self._parents
   219 
   220