Skip to content
Snippets Groups Projects
Commit 3000f2100711 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

remotefilelog: use `get_unique_pull_path` in `getflogheads`

Another command moved to the new API, hooray.

Differential Revision: https://phab.mercurial-scm.org/D10421
parent 5d91eeac37ab
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
hg, hg,
registrar, registrar,
) )
from mercurial.utils import (
urlutil,
)
cmdtable = {} cmdtable = {}
command = registrar.command(cmdtable) command = registrar.command(cmdtable)
...@@ -18,7 +21,7 @@ ...@@ -18,7 +21,7 @@
Used for testing purpose 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) peer = hg.peer(repo, {}, dest)
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment