Show More
@@ -915,7 +915,13 b' def perfdiscovery(ui, repo, path, **opts' | |||
|
915 | 915 | """benchmark discovery between local repo and the peer at given path""" |
|
916 | 916 | repos = [repo, None] |
|
917 | 917 | timer, fm = gettimer(ui, opts) |
|
918 | path = ui.expandpath(path) | |
|
918 | ||
|
919 | try: | |
|
920 | from mercurial.utils.urlutil import get_unique_pull_path | |
|
921 | ||
|
922 | path = get_unique_pull_path(b'perfdiscovery', repo, ui, path)[0] | |
|
923 | except ImportError: | |
|
924 | path = ui.expandpath(path) | |
|
919 | 925 | |
|
920 | 926 | def s(): |
|
921 | 927 | repos[1] = hg.peer(ui, opts, path) |
General Comments 0
You need to be logged in to leave comments.
Login now