Mercurial > public > mercurial-scm > hg
diff hgext/largefiles/lfcommands.py @ 29305:814076f4ace3
largefiles: move basestore._openstore into new module to remove cycle
author | liscju <piotr.listkiewicz@gmail.com> |
---|---|
date | Sat, 04 Jun 2016 16:53:44 +0200 |
parents | 30863ca01c6b |
children | 8c378a7d2aa6 |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Thu Jun 02 22:39:01 2016 +0100 +++ b/hgext/largefiles/lfcommands.py Sat Jun 04 16:53:44 2016 +0200 @@ -20,7 +20,7 @@ from hgext.convert import filemap import lfutil -import basestore +import storefactory # -- Commands ---------------------------------------------------------- @@ -337,7 +337,7 @@ if not files: return - store = basestore._openstore(rsrc, rdst, put=True) + store = storefactory._openstore(rsrc, rdst, put=True) at = 0 ui.debug("sending statlfile command for %d largefiles\n" % len(files)) @@ -368,7 +368,7 @@ else: revs = ['.'] - store = basestore._openstore(repo) + store = storefactory._openstore(repo) return store.verify(revs, contents=contents) def cachelfiles(ui, repo, node, filelist=None): @@ -394,7 +394,7 @@ toget.append((lfile, expectedhash)) if toget: - store = basestore._openstore(repo) + store = storefactory._openstore(repo) ret = store.get(toget) return ret