Skip to content
Snippets Groups Projects
Commit 785bbc86 authored by Matt Mackall's avatar Matt Mackall
Browse files

scmutil: match no longer accepts repo objects

parent 35c2cc32
No related branches found
No related tags found
No related merge requests found
......@@ -558,9 +558,9 @@
ret.append(p)
return ret
def match(ctxorrepo, pats=[], opts={}, globbed=False, default='relpath'):
def match(ctx, pats=[], opts={}, globbed=False, default='relpath'):
if pats == ("",):
pats = []
if not globbed and default == 'relpath':
pats = expandpats(pats or [])
......@@ -562,14 +562,8 @@
if pats == ("",):
pats = []
if not globbed and default == 'relpath':
pats = expandpats(pats or [])
if hasattr(ctxorrepo, 'match'):
ctx = ctxorrepo
else:
# will eventually abort here
ctx = ctxorrepo[None]
m = ctx.match(pats, opts.get('include'), opts.get('exclude'),
default)
def badfn(f, msg):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment