mercurial/patch.py
changeset 40282 e4f82db071a4
parent 39616 5a2bf7f941fa
child 41365 876494fd967d
equal deleted inserted replaced
40281:29b0e9cd02f4 40282:e4f82db071a4
  2478                 endofline = token[len(chomp):]
  2478                 endofline = token[len(chomp):]
  2479                 token = chomp.rstrip() # detect spaces at the end
  2479                 token = chomp.rstrip() # detect spaces at the end
  2480                 endspaces = chomp[len(token):]
  2480                 endspaces = chomp[len(token):]
  2481             # scan tabs
  2481             # scan tabs
  2482             for maybetab in tabsplitter.findall(token):
  2482             for maybetab in tabsplitter.findall(token):
  2483                 if '\t' == maybetab[0]:
  2483                 if b'\t' == maybetab[0:1]:
  2484                     currentlabel = 'diff.tab'
  2484                     currentlabel = 'diff.tab'
  2485                 else:
  2485                 else:
  2486                     if changed:
  2486                     if changed:
  2487                         currentlabel = label + '.changed'
  2487                         currentlabel = label + '.changed'
  2488                     else:
  2488                     else: