changeset 15570:0f208626d503 stable

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.
author Martin Geisler <mg@aragost.com>
date Thu, 24 Nov 2011 18:11:43 +0100
parents 3992c7df85f2
children 809788118aa2
files hgext/largefiles/lfutil.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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