equal
deleted
inserted
replaced
995 """benchmark discovery between local repo and the peer at given path""" |
995 """benchmark discovery between local repo and the peer at given path""" |
996 repos = [repo, None] |
996 repos = [repo, None] |
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) |
1008 |
1013 |
1009 def d(): |
1014 def d(): |