diff -r fae708cb32d1 -r 4be754832829 hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py Sat Nov 08 00:48:41 2014 +0900 +++ b/hgext/largefiles/lfutil.py Sat Nov 08 00:48:41 2014 +0900 @@ -204,7 +204,7 @@ def copytostoreabsolute(repo, file, hash): if inusercache(repo.ui, hash): link(usercachepath(repo.ui, hash), storepath(repo, hash)) - elif not getattr(repo, "_isconverting", False): + else: util.makedirs(os.path.dirname(storepath(repo, hash))) dst = util.atomictempfile(storepath(repo, hash), createmode=repo.store.createmode) @@ -408,6 +408,9 @@ synclfdirstate(repo, lfdirstate, lfile, False) lfdirstate.write() + # As part of committing, copy all of the largefiles into the cache. + copyalltostore(repo, node) + def getlfilestoupdate(oldstandins, newstandins): changedstandins = set(oldstandins).symmetric_difference(set(newstandins)) filelist = []