##// END OF EJS Templates
errors: use InputError for bad path arguments to `hg annotate`...
Martin von Zweigbergk -
r48846:12966768 default
parent child Browse files
Show More
@@ -526,7 +526,7 b' def annotate(ui, repo, *pats, **opts):'
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
@@ -455,7 +455,7 b' missing file'
455
455
456 $ hg ann nosuchfile
456 $ hg ann nosuchfile
457 abort: nosuchfile: no such file in rev e9e6b4fa872f
457 abort: nosuchfile: no such file in rev e9e6b4fa872f
458 [255]
458 [10]
459
459
460 annotate file without '\n' on last line
460 annotate file without '\n' on last line
461
461
@@ -458,7 +458,7 b' missing file'
458
458
459 $ hg ann nosuchfile
459 $ hg ann nosuchfile
460 abort: nosuchfile: no such file in rev e9e6b4fa872f
460 abort: nosuchfile: no such file in rev e9e6b4fa872f
461 [255]
461 [10]
462
462
463 annotate file without '\n' on last line
463 annotate file without '\n' on last line
464
464
General Comments 0
You need to be logged in to leave comments. Login now