##// END OF EJS Templates
path: pass `path` to `peer` in `hg perf::discovery`...
marmoute -
r50632:4cedae99 default
parent child Browse files
Show More
@@ -997,11 +997,16 b' def perfdiscovery(ui, repo, path, **opts'
997 timer, fm = gettimer(ui, opts)
997 timer, fm = gettimer(ui, opts)
998
998
999 try:
999 try:
1000 from mercurial.utils.urlutil import get_unique_pull_path
1000 from mercurial.utils.urlutil import get_unique_pull_path_obj
1001
1001
1002 path = get_unique_pull_path(b'perfdiscovery', repo, ui, path)[0]
1002 path = get_unique_pull_path_obj(b'perfdiscovery', ui, path)
1003 except ImportError:
1003 except ImportError:
1004 path = ui.expandpath(path)
1004 try:
1005 from mercurial.utils.urlutil import get_unique_pull_path
1006
1007 path = get_unique_pull_path(b'perfdiscovery', repo, ui, path)[0]
1008 except ImportError:
1009 path = ui.expandpath(path)
1005
1010
1006 def s():
1011 def s():
1007 repos[1] = hg.peer(ui, opts, path)
1012 repos[1] = hg.peer(ui, opts, path)
General Comments 0
You need to be logged in to leave comments. Login now