hgext/mq.py
changeset 6802 04503b757935
parent 6762 f67d1468ac50
parent 6801 71e339714586
child 6917 b6fffcd97242
equal deleted inserted replaced
6800:cc7114d96548 6802:04503b757935
  1127                 if self.diffopts().git:
  1127                 if self.diffopts().git:
  1128                     for dst in aaa:
  1128                     for dst in aaa:
  1129                         f = repo.file(dst)
  1129                         f = repo.file(dst)
  1130                         src = f.renamed(man[dst])
  1130                         src = f.renamed(man[dst])
  1131                         if src:
  1131                         if src:
  1132                             copies[src[0]] = copies.get(dst, [])
  1132                             copies.setdefault(src[0], []).extend(copies.get(dst, []))
  1133                             if dst in a:
  1133                             if dst in a:
  1134                                 copies[src[0]].append(dst)
  1134                                 copies[src[0]].append(dst)
  1135                         # we can't copy a file created by the patch itself
  1135                         # we can't copy a file created by the patch itself
  1136                         if dst in copies:
  1136                         if dst in copies:
  1137                             del copies[dst]
  1137                             del copies[dst]