comparison mercurial/cmdutil.py @ 45865:96ca817ec192

errors: raise InputError when given non-existent paths etc Differential Revision: https://phab.mercurial-scm.org/D9328
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Nov 2020 13:22:40 -0800
parents 527ce85c2e60
children 89a2afe31e82
comparison
equal deleted inserted replaced
45864:f96fa4de5055 45865:96ca817ec192
457 b'(use "hg commit" instead)' 457 b'(use "hg commit" instead)'
458 ) 458 )
459 ) 459 )
460 460
461 def fail(f, msg): 461 def fail(f, msg):
462 raise error.Abort(b'%s: %s' % (f, msg)) 462 raise error.InputError(b'%s: %s' % (f, msg))
463 463
464 force = opts.get(b'force') 464 force = opts.get(b'force')
465 if not force: 465 if not force:
466 match = matchmod.badmatch(match, fail) 466 match = matchmod.badmatch(match, fail)
467 467