mercurial/copies.py
changeset 42229 5a3979529740
parent 42228 df7ad90edbd4
child 42230 fdbeacb9d456
equal deleted inserted replaced
42228:df7ad90edbd4 42229:5a3979529740
   132         if v in t:
   132         if v in t:
   133             # found a chain, i.e. cases 3 & 4.
   133             # found a chain, i.e. cases 3 & 4.
   134             if t[v] != k:
   134             if t[v] != k:
   135                 # file wasn't renamed back to itself (i.e. case 4, not 3)
   135                 # file wasn't renamed back to itself (i.e. case 4, not 3)
   136                 t[k] = t[v]
   136                 t[k] = t[v]
   137         if v in src:
   137         elif v in src:
   138             # file is a copy of an existing file, i.e. case 6.
   138             # file is a copy of an existing file, i.e. case 6.
   139             t[k] = v
   139             t[k] = v
   140 
   140 
   141     for k, v in list(t.items()):
   141     for k, v in list(t.items()):
   142         # remove criss-crossed copies, i.e. case 3
   142         # remove criss-crossed copies, i.e. case 3