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

login
register
mail settings
Submitter Matt Harbison
Date April 5, 2015, 2:34 a.m.
Message ID <e71eba8ccb98fb52a3e1.1428201262@Envy>
Download mbox | patch
Permalink /patch/8502/
State Accepted
Headers show

Comments

Matt Harbison - April 5, 2015, 2:34 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@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

Patch

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))