# HG changeset patch # User Mads Kiilerich # Date 1362055518 -3600 # Node ID 0ac00315875f320f0df544213ba7da151027483b # Parent 894a5897a9dd457c148447f1f71aab020d13eb75 largefiles: don't assume that .hg/largefiles/ still exists It might not have been created and it might have been removed. diff -r 894a5897a9dd -r 0ac00315875f hgext/largefiles/basestore.py --- a/hgext/largefiles/basestore.py Thu Feb 28 13:45:18 2013 +0100 +++ b/hgext/largefiles/basestore.py Thu Feb 28 13:45:18 2013 +0100 @@ -59,6 +59,8 @@ missing = [] ui = self.ui + util.makedirs(lfutil.storepath(self.repo, '')) + at = 0 for filename, hash in files: ui.progress(_('getting largefiles'), at, unit='lfile', diff -r 894a5897a9dd -r 0ac00315875f tests/test-largefiles-cache.t --- a/tests/test-largefiles-cache.t Thu Feb 28 13:45:18 2013 +0100 +++ b/tests/test-largefiles-cache.t Thu Feb 28 13:45:18 2013 +0100 @@ -84,8 +84,7 @@ added 1 changesets with 1 changes to 1 files (run 'hg update' to get a working copy) caching new largefiles - abort: *: '$TESTTMP/mirror2/.hg/largefiles/.7f7097b041ccf68cc5561e9600da4655d21c6d18.*' (glob) - [255] + 1 largefiles cached #if unix-permissions