changeset 24630:c082a4756ed7

largefiles: use lfutil.findstorepath() when verifying a local repo
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 04 Apr 2015 19:34:36 -0400
parents 8dc2533f03ef
children 2a3f24786d09
files hgext/largefiles/localstore.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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))