diff --git a/hgext/largefiles/basestore.py b/hgext/largefiles/basestore.py --- a/hgext/largefiles/basestore.py +++ b/hgext/largefiles/basestore.py @@ -165,6 +165,7 @@ def _openstore(repo, remote=None, put=Fa path = '' remote = repo else: + path, _branches = hg.parseurl(path) remote = hg.peer(repo, {}, path) # The path could be a scheme so use Mercurial's normal functionality diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t --- a/tests/test-largefiles.t +++ b/tests/test-largefiles.t @@ -1619,7 +1619,7 @@ Push a largefiles repository to a served > --config 'web.allow_push=*' --config web.push_ssl=False $ cat hg.pid >> $DAEMON_PIDS $ rm "${USERCACHE}"/* - $ hg push -R r8 http://localhost:$HGPORT2 + $ hg push -R r8 http://localhost:$HGPORT2/#default pushing to http://localhost:$HGPORT2/ searching for changes searching for changes @@ -1632,8 +1632,7 @@ Push a largefiles repository to a served Clone over http, no largefiles pulled on clone. - $ hg clone http://localhost:$HGPORT2/ http-clone -U - requesting all changes + $ hg clone http://localhost:$HGPORT2/#default http-clone -U adding changesets adding manifests adding file changes