Show More
@@ -122,6 +122,12 b' class basectx(object):' | |||||
122 | def sub(self, path): |
|
122 | def sub(self, path): | |
123 | return subrepo.subrepo(self, path) |
|
123 | return subrepo.subrepo(self, path) | |
124 |
|
124 | |||
|
125 | def match(self, pats=[], include=None, exclude=None, default='glob'): | |||
|
126 | r = self._repo | |||
|
127 | return matchmod.match(r.root, r.getcwd(), pats, | |||
|
128 | include, exclude, default, | |||
|
129 | auditor=r.auditor, ctx=self) | |||
|
130 | ||||
125 | class changectx(basectx): |
|
131 | class changectx(basectx): | |
126 | """A changecontext object makes access to data related to a particular |
|
132 | """A changecontext object makes access to data related to a particular | |
127 | changeset convenient. It represents a read-only context already presnt in |
|
133 | changeset convenient. It represents a read-only context already presnt in | |
@@ -383,12 +389,6 b' class changectx(basectx):' | |||||
383 | if match.bad(fn, _('no such file in rev %s') % self) and match(fn): |
|
389 | if match.bad(fn, _('no such file in rev %s') % self) and match(fn): | |
384 | yield fn |
|
390 | yield fn | |
385 |
|
391 | |||
386 | def match(self, pats=[], include=None, exclude=None, default='glob'): |
|
|||
387 | r = self._repo |
|
|||
388 | return matchmod.match(r.root, r.getcwd(), pats, |
|
|||
389 | include, exclude, default, |
|
|||
390 | auditor=r.auditor, ctx=self) |
|
|||
391 |
|
||||
392 | def diff(self, ctx2=None, match=None, **opts): |
|
392 | def diff(self, ctx2=None, match=None, **opts): | |
393 | """Returns a diff generator for the given contexts and matcher""" |
|
393 | """Returns a diff generator for the given contexts and matcher""" | |
394 | if ctx2 is None: |
|
394 | if ctx2 is None: |
General Comments 0
You need to be logged in to leave comments.
Login now