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