diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -1414,7 +1414,13 @@ opts = _byteskwargs(opts) timer, fm = gettimer(ui, opts) - path = ui.getpath(dest, default=(b'default-push', b'default')) + try: + from mercurial.utils.urlutil import get_unique_push_path + + path = get_unique_push_path(repo, ui, dest) + except ImportError: + path = ui.getpath(dest, default=(b'default-push', b'default')) + if not path: raise error.Abort( b'default repository not configured!',