changeset 46955:3000f2100711

remotefilelog: use `get_unique_pull_path` in `getflogheads` Another command moved to the new API, hooray. Differential Revision: https://phab.mercurial-scm.org/D10421
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 14 Apr 2021 20:15:09 +0200
parents 5d91eeac37ab
children c5c2936f6fb2
files tests/remotefilelog-getflogheads.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/remotefilelog-getflogheads.py	Wed Apr 14 19:30:48 2021 +0200
+++ b/tests/remotefilelog-getflogheads.py	Wed Apr 14 20:15:09 2021 +0200
@@ -5,6 +5,9 @@
     hg,
     registrar,
 )
+from mercurial.utils import (
+    urlutil,
+)
 
 cmdtable = {}
 command = registrar.command(cmdtable)
@@ -18,7 +21,7 @@
     Used for testing purpose
     """
 
-    dest = repo.ui.expandpath(b'default')
+    dest = urlutil.get_unique_pull_path(b'getflogheads', repo, ui)[0]
     peer = hg.peer(repo, {}, dest)
 
     try: