equal
deleted
inserted
replaced
46 ui.status(_('relinking %s to %s\n') % (src.store.path, repo.store.path)) |
46 ui.status(_('relinking %s to %s\n') % (src.store.path, repo.store.path)) |
47 locallock = repo.lock() |
47 locallock = repo.lock() |
48 try: |
48 try: |
49 remotelock = src.lock() |
49 remotelock = src.lock() |
50 try: |
50 try: |
51 candidates = collect(src.store.path, ui) |
51 candidates = sorted(collect(src.store.path, ui)) |
52 targets = prune(candidates, src.store.path, repo.store.path, ui) |
52 targets = prune(candidates, src.store.path, repo.store.path, ui) |
53 do_relink(src.store.path, repo.store.path, targets, ui) |
53 do_relink(src.store.path, repo.store.path, targets, ui) |
54 finally: |
54 finally: |
55 remotelock.release() |
55 remotelock.release() |
56 finally: |
56 finally: |