mercurial/patch.py
changeset 33495 d78b7d734b63
parent 33270 f7b635716ef2
child 33584 ea8c2478c907
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))