# HG changeset patch # User Martin Geisler # Date 2011-11-24 17:11:43 # Node ID 0f208626d503e7ba070233b49ac2c3862aa6e59e # Parent 3992c7df85f2e404ae24af721c9ef09d1cc830f4 largefiles: add comment about non-atomic working directory When updating the working copy with a normal 'hg update', we also don't use atomic writes. diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -212,6 +212,8 @@ def copyfromcache(repo, hash, filename): if path is None: return False util.makedirs(os.path.dirname(repo.wjoin(filename))) + # The write may fail before the file is fully written, but we + # don't use atomic writes in the working copy. shutil.copy(path, repo.wjoin(filename)) return True