comparison mercurial/commands.py @ 48032:12966768595a

errors: use InputError for bad path arguments to `hg annotate` Differential Revision: https://phab.mercurial-scm.org/D11498
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 23 Sep 2021 09:42:20 -0700
parents 7d908ee19b5b
children b067d22dc6ad
comparison
equal deleted inserted replaced
48031:5b89626c11e9 48032:12966768595a
524 for fn, sep, get, fmt in opmap 524 for fn, sep, get, fmt in opmap
525 if opts.get(opnamemap.get(fn, fn)) or fn in datahint 525 if opts.get(opnamemap.get(fn, fn)) or fn in datahint
526 ) 526 )
527 527
528 def bad(x, y): 528 def bad(x, y):
529 raise error.Abort(b"%s: %s" % (x, y)) 529 raise error.InputError(b"%s: %s" % (x, y))
530 530
531 m = scmutil.match(ctx, pats, opts, badfn=bad) 531 m = scmutil.match(ctx, pats, opts, badfn=bad)
532 532
533 follow = not opts.get(b'no_follow') 533 follow = not opts.get(b'no_follow')
534 diffopts = patch.difffeatureopts( 534 diffopts = patch.difffeatureopts(