Mercurial > hg
diff hgext/largefiles/remotestore.py @ 35564:cf841f2b5a72
largefiles: add support for 'largefiles://' url scheme
This changesets allows Mercurial to transparently download content from the
configured largefile store. This handle all authentication and largefile
protocol details.
The target usecase is to leverage largefile infrastructure for clone bundle. See
next changeset for details
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 21 Dec 2017 13:57:57 +0100 |
parents | dcdc17551653 |
children | 247e9bf4ecdc |
line wrap: on
line diff
--- a/hgext/largefiles/remotestore.py Thu Dec 21 13:53:26 2017 +0100 +++ b/hgext/largefiles/remotestore.py Thu Dec 21 13:57:57 2017 +0100 @@ -27,7 +27,9 @@ '''a largefile store accessed over a network''' def __init__(self, ui, repo, url): super(remotestore, self).__init__(ui, repo, url) - self._lstore = localstore.localstore(self.ui, self.repo, self.repo) + self._lstore = None + if repo is not None: + self._lstore = localstore.localstore(self.ui, self.repo, self.repo) def put(self, source, hash): if self.sendfile(source, hash):