comparison mercurial/patch.py @ 33495:d78b7d734b63

patch: use devel.all-warnings to replace devel.all It appears to be a misspell in patch.py.
author Jun Wu <quark@fb.com>
date Wed, 12 Jul 2017 15:24:47 -0700
parents f7b635716ef2
children ea8c2478c907
comparison
equal deleted inserted replaced
33494:30f2715be123 33495:d78b7d734b63
2565 date1 = util.datestr(ctx1.date()) 2565 date1 = util.datestr(ctx1.date())
2566 date2 = util.datestr(ctx2.date()) 2566 date2 = util.datestr(ctx2.date())
2567 2567
2568 gitmode = {'l': '120000', 'x': '100755', '': '100644'} 2568 gitmode = {'l': '120000', 'x': '100755', '': '100644'}
2569 2569
2570 if relroot != '' and (repo.ui.configbool('devel', 'all') 2570 if relroot != '' and (repo.ui.configbool('devel', 'all-warnings')
2571 or repo.ui.configbool('devel', 'check-relroot')): 2571 or repo.ui.configbool('devel', 'check-relroot')):
2572 for f in modified + added + removed + copy.keys() + copy.values(): 2572 for f in modified + added + removed + copy.keys() + copy.values():
2573 if f is not None and not f.startswith(relroot): 2573 if f is not None and not f.startswith(relroot):
2574 raise AssertionError( 2574 raise AssertionError(
2575 "file %s doesn't start with relroot %s" % (f, relroot)) 2575 "file %s doesn't start with relroot %s" % (f, relroot))