[PATCH 4 of 6] fixing-import-cycle: changing imports in lfcommands

Pulkit Goyal 7895pulkit at gmail.com
Sun Apr 3 18:03:03 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1459720468 -19800
#      Mon Apr 04 03:24:28 2016 +0530
# Node ID e5d625b72755240df5c1dbcf7e6aa0b6c2257300
# Parent  b10f4e69cdc218f8b4843f9dcfeab40d96fb55c2
fixing-import-cycle: changing imports in lfcommands

diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py
--- a/hgext/largefiles/lfcommands.py
+++ b/hgext/largefiles/lfcommands.py
@@ -20,7 +20,7 @@
 from hgext.convert import filemap
 
 import lfutil
-import basestore
+import localstore
 
 # -- Commands ----------------------------------------------------------
 
@@ -337,7 +337,7 @@
     if not files:
         return
 
-    store = basestore._openstore(rsrc, rdst, put=True)
+    store = localstore._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 = localstore._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 = localstore._openstore(repo)
         ret = store.get(toget)
         return ret
 


More information about the Mercurial-devel mailing list