remotefilelog: use `get_unique_pull_path` in `getflogheads`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 14 Apr 2021 20:15:09 +0200
changeset 46955 3000f2100711
parent 46954 5d91eeac37ab
child 46956 c5c2936f6fb2
remotefilelog: use `get_unique_pull_path` in `getflogheads` Another command moved to the new API, hooray. Differential Revision: https://phab.mercurial-scm.org/D10421
tests/remotefilelog-getflogheads.py
--- 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: