Mercurial > hg
comparison mercurial/copies.py @ 6426:e2c49ef2dd6e
copies: don't double-detect items in the directory copy check
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 29 Mar 2008 12:39:47 -0500 |
parents | 2d9328a2f81f |
children | 532ca442b903 |
comparison
equal
deleted
inserted
replaced
6425:2d9328a2f81f | 6426:e2c49ef2dd6e |
---|---|
183 if f not in fullcopy: | 183 if f not in fullcopy: |
184 for d in dirmove: | 184 for d in dirmove: |
185 if f.startswith(d): | 185 if f.startswith(d): |
186 # new file added in a directory that was moved, move it | 186 # new file added in a directory that was moved, move it |
187 df = dirmove[d] + f[len(d):] | 187 df = dirmove[d] + f[len(d):] |
188 copy[f] = df | 188 if df not in copy: |
189 repo.ui.debug(_(" file %s -> %s\n") % (f, copy[f])) | 189 copy[f] = df |
190 repo.ui.debug(_(" file %s -> %s\n") % (f, copy[f])) | |
190 break | 191 break |
191 | 192 |
192 return copy, diverge | 193 return copy, diverge |