Show More
@@ -35,9 +35,13 b' def _findexactmatches(repo, added, remov' | |||||
35 | for i, fctx in enumerate(added): |
|
35 | for i, fctx in enumerate(added): | |
36 | repo.ui.progress(_('searching for exact renames'), i + len(removed), |
|
36 | repo.ui.progress(_('searching for exact renames'), i + len(removed), | |
37 | total=numfiles, unit=_('files')) |
|
37 | total=numfiles, unit=_('files')) | |
38 |
|
|
38 | adata = fctx.data() | |
|
39 | h = hashlib.sha1(adata).digest() | |||
39 | if h in hashes: |
|
40 | if h in hashes: | |
40 |
|
|
41 | rfctx = hashes[h] | |
|
42 | # compare between actual file contents for exact identity | |||
|
43 | if adata == rfctx.data(): | |||
|
44 | yield (rfctx, fctx) | |||
41 |
|
45 | |||
42 | # Done |
|
46 | # Done | |
43 | repo.ui.progress(_('searching for exact renames'), None) |
|
47 | repo.ui.progress(_('searching for exact renames'), None) |
General Comments 0
You need to be logged in to leave comments.
Login now