mercurial/patch.py
branchstable
changeset 12576 1c9bb7e00f71
parent 12575 9b3913baba0c
child 12577 05210e955bef
equal deleted inserted replaced
12575:9b3913baba0c 12576:1c9bb7e00f71
  1567                 else:
  1567                 else:
  1568                     if opts.git:
  1568                     if opts.git:
  1569                         header.append('new file mode %s\n' % mode)
  1569                         header.append('new file mode %s\n' % mode)
  1570                     elif ctx2.flags(f):
  1570                     elif ctx2.flags(f):
  1571                         losedatafn(f)
  1571                         losedatafn(f)
       
  1572                 # In theory, if tn was copied or renamed we should check
       
  1573                 # if the source is binary too but the copy record already
       
  1574                 # forces git mode.
  1572                 if util.binary(tn):
  1575                 if util.binary(tn):
  1573                     if opts.git:
  1576                     if opts.git:
  1574                         dodiff = 'binary'
  1577                         dodiff = 'binary'
  1575                     else:
  1578                     else:
  1576                         losedatafn(f)
  1579                         losedatafn(f)