Show More
@@ -350,8 +350,8 b' def annotate(ui, repo, *pats, **opts):' | |||
|
350 | 350 | def bad(x, y): |
|
351 | 351 | raise util.Abort("%s: %s" % (x, y)) |
|
352 | 352 | |
|
353 | m = scmutil.match(ctx, pats, opts) | |
|
354 | m.bad = bad | |
|
353 | m = scmutil.match(ctx, pats, opts, badfn=bad) | |
|
354 | ||
|
355 | 355 | follow = not opts.get('no_follow') |
|
356 | 356 | diffopts = patch.difffeatureopts(ui, opts, section='annotate', |
|
357 | 357 | whitespace=True) |
@@ -4442,8 +4442,8 b' def locate(ui, repo, *pats, **opts):' | |||
|
4442 | 4442 | |
|
4443 | 4443 | ret = 1 |
|
4444 | 4444 | ctx = repo[rev] |
|
4445 |
m = scmutil.match(ctx, pats, opts, default='relglob' |
|
|
4446 |
|
|
|
4445 | m = scmutil.match(ctx, pats, opts, default='relglob', | |
|
4446 | badfn=lambda x, y: False) | |
|
4447 | 4447 | |
|
4448 | 4448 | for abs in ctx.matches(m): |
|
4449 | 4449 | if opts.get('fullpath'): |
General Comments 0
You need to be logged in to leave comments.
Login now