largefiles: fix deletion of multiple missing largefiles (
issue3329)
--- a/hgext/largefiles/overrides.py Fri May 11 15:15:50 2012 +0200
+++ b/hgext/largefiles/overrides.py Fri May 11 15:32:22 2012 +0200
@@ -552,7 +552,8 @@
for lfile in modified:
lfutil.updatestandin(repo, lfutil.standin(lfile))
for lfile in missing:
- os.unlink(repo.wjoin(lfutil.standin(lfile)))
+ if (os.path.exists(repo.wjoin(lfutil.standin(lfile)))):
+ os.unlink(repo.wjoin(lfutil.standin(lfile)))
try:
ctx = repo[opts.get('rev')]