##// END OF EJS Templates
perf-discovery: use `get_unique_pull_path`...
marmoute -
r47735:92029a43 default
parent child Browse files
Show More
@@ -915,7 +915,13 b' def perfdiscovery(ui, repo, path, **opts'
915 """benchmark discovery between local repo and the peer at given path"""
915 """benchmark discovery between local repo and the peer at given path"""
916 repos = [repo, None]
916 repos = [repo, None]
917 timer, fm = gettimer(ui, opts)
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 def s():
926 def s():
921 repos[1] = hg.peer(ui, opts, path)
927 repos[1] = hg.peer(ui, opts, path)
General Comments 0
You need to be logged in to leave comments. Login now