##// END OF EJS Templates
basectx: move sub from changectx
Sean Farley -
r19562:389d7767 default
parent child Browse files
Show More
@@ -119,6 +119,9 b' class basectx(object):'
119 except error.LookupError:
119 except error.LookupError:
120 return ''
120 return ''
121
121
122 def sub(self, path):
123 return subrepo.subrepo(self, path)
124
122 class changectx(basectx):
125 class changectx(basectx):
123 """A changecontext object makes access to data related to a particular
126 """A changecontext object makes access to data related to a particular
124 changeset convenient. It represents a read-only context already presnt in
127 changeset convenient. It represents a read-only context already presnt in
@@ -380,9 +383,6 b' class changectx(basectx):'
380 if match.bad(fn, _('no such file in rev %s') % self) and match(fn):
383 if match.bad(fn, _('no such file in rev %s') % self) and match(fn):
381 yield fn
384 yield fn
382
385
383 def sub(self, path):
384 return subrepo.subrepo(self, path)
385
386 def match(self, pats=[], include=None, exclude=None, default='glob'):
386 def match(self, pats=[], include=None, exclude=None, default='glob'):
387 r = self._repo
387 r = self._repo
388 return matchmod.match(r.root, r.getcwd(), pats,
388 return matchmod.match(r.root, r.getcwd(), pats,
General Comments 0
You need to be logged in to leave comments. Login now