comparison mercurial/context.py @ 8813:db3c1ab0e632

commit: recurse into subrepositories
author Matt Mackall <mpm@selenic.com>
date Mon, 15 Jun 2009 02:45:38 -0500
parents 859f841937d0
children 10532b29cdee 431462bd8478
comparison
equal deleted inserted replaced
8812:859f841937d0 8813:db3c1ab0e632
181 if match(fn): 181 if match(fn):
182 yield fn 182 yield fn
183 for fn in sorted(fset): 183 for fn in sorted(fset):
184 if match.bad(fn, 'No such file in rev ' + str(self)) and match(fn): 184 if match.bad(fn, 'No such file in rev ' + str(self)) and match(fn):
185 yield fn 185 yield fn
186
187 def sub(self, path):
188 return subrepo.subrepo(self, path)
186 189
187 class filectx(object): 190 class filectx(object):
188 """A filecontext object makes access to data related to a particular 191 """A filecontext object makes access to data related to a particular
189 filerevision convenient.""" 192 filerevision convenient."""
190 def __init__(self, repo, path, changeid=None, fileid=None, 193 def __init__(self, repo, path, changeid=None, fileid=None,