Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/lfutil.py @ 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 | e89385e4ef8d |
children | 809788118aa2 |
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