hgext/relink.py
changeset 10226 e3e41e5e7ff4
parent 10221 489b0caf21ed
parent 10225 6521605bc200
child 10264 d6512b3e9ac0
equal deleted inserted replaced
10223:51421ab573de 10226:e3e41e5e7ff4
    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: