mercurial/copies.py
changeset 30188 8a864844d5a0
parent 30186 f7ed5af31242
child 30193 368e27eb1ffa
equal deleted inserted replaced
30187:3e86261bf110 30188:8a864844d5a0
   541         c2 = getfctx(of, m2[of])
   541         c2 = getfctx(of, m2[of])
   542         # c2 might be a plain new file on added on destination side that is
   542         # c2 might be a plain new file on added on destination side that is
   543         # unrelated to the droids we are looking for.
   543         # unrelated to the droids we are looking for.
   544         cr = _related(oc, c2, base.rev())
   544         cr = _related(oc, c2, base.rev())
   545         if cr and (of == f or of == c2.path()): # non-divergent
   545         if cr and (of == f or of == c2.path()): # non-divergent
   546             data['copy'][f] = of
   546             if of in mb:
       
   547                 data['copy'][f] = of
   547             return
   548             return
   548 
   549 
   549     if of in mb:
   550     if of in mb:
   550         data['diverge'].setdefault(of, []).append(f)
   551         data['diverge'].setdefault(of, []).append(f)
   551 
   552