largefiles: use lfutil.findstorepath() when verifying a local repo
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 04 Apr 2015 19:34:36 -0400
changeset 24630 c082a4756ed7
parent 24629 8dc2533f03ef
child 24631 2a3f24786d09
largefiles: use lfutil.findstorepath() when verifying a local repo
hgext/largefiles/localstore.py
--- a/hgext/largefiles/localstore.py	Sat Apr 04 19:31:40 2015 -0400
+++ b/hgext/largefiles/localstore.py	Sat Apr 04 19:34:36 2015 -0400
@@ -55,9 +55,9 @@
             return False
 
         expecthash = fctx.data()[0:40]
-        storepath = lfutil.storepath(self.remote, expecthash)
+        storepath, exists = lfutil.findstorepath(self.remote, expecthash)
         verified.add(key)
-        if not lfutil.instore(self.remote, expecthash):
+        if not exists:
             self.ui.warn(
                 _('changeset %s: %s references missing %s\n')
                 % (cset, filename, storepath))