# HG changeset patch # User Augie Fackler # Date 1391545669 18000 # Node ID f0137d994c831a9380908dae6a4d50a6df50f001 # Parent 74daabdf5ab51315cfbb296e99f5145835910ec4 context: add a getfileset() method so fewer things need fileset directly Allows me to break an import cycle in a subsequent change. diff -r 74daabdf5ab5 -r f0137d994c83 mercurial/context.py --- a/mercurial/context.py Tue Feb 04 18:09:20 2014 -0500 +++ b/mercurial/context.py Tue Feb 04 15:27:49 2014 -0500 @@ -12,6 +12,7 @@ import os, errno, stat import obsolete as obsmod import repoview +import fileset propertycache = util.propertycache @@ -79,6 +80,9 @@ def mutable(self): return self.phase() > phases.public + def getfileset(self, expr): + return fileset.getfileset(self, expr) + def obsolete(self): """True if the changeset is obsolete""" return self.rev() in obsmod.getrevs(self._repo, 'obsolete')