[PATCH 4 of 5] largefiles: use lfutil.findstorepath() when verifying a local repo

Matt Harbison mharbison72 at gmail.com
Sat Apr 4 21:34:22 CDT 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1428190476 14400
#      Sat Apr 04 19:34:36 2015 -0400
# Node ID e71eba8ccb98fb52a3e1ae16a61b79134390c8d6
# Parent  638946441587a61e307669e61244045916d99d1d
largefiles: use lfutil.findstorepath() when verifying a local repo

diff --git a/hgext/largefiles/localstore.py b/hgext/largefiles/localstore.py
--- a/hgext/largefiles/localstore.py
+++ b/hgext/largefiles/localstore.py
@@ -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))


More information about the Mercurial-devel mailing list