comparison mercurial/localrepo.py @ 45846: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 80f32ec8653a
children 89a2afe31e82
comparison
equal deleted inserted replaced
45845:f96fa4de5055 45846:96ca817ec192
2843 """ 2843 """
2844 if extra is None: 2844 if extra is None:
2845 extra = {} 2845 extra = {}
2846 2846
2847 def fail(f, msg): 2847 def fail(f, msg):
2848 raise error.Abort(b'%s: %s' % (f, msg)) 2848 raise error.InputError(b'%s: %s' % (f, msg))
2849 2849
2850 if not match: 2850 if not match:
2851 match = matchmod.always() 2851 match = matchmod.always()
2852 2852
2853 if not force: 2853 if not force: