remotefilelog: use `get_unique_pull_path` in `getflogheads`
Another command moved to the new API, hooray.
Differential Revision: https://phab.mercurial-scm.org/D10421
--- 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: