largefiles: add comment about non-atomic working directory stable
authorMartin Geisler <mg@aragost.com>
Thu, 24 Nov 2011 18:11:43 +0100
branchstable
changeset 15570 0f208626d503
parent 15565 3992c7df85f2
child 15571 809788118aa2
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.
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Wed Nov 23 16:25:44 2011 -0600
+++ b/hgext/largefiles/lfutil.py	Thu Nov 24 18:11:43 2011 +0100
@@ -212,6 +212,8 @@
     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