Mercurial > hg
comparison hgext/largefiles/overrides.py @ 16731:dcfc70aab372
largefiles: fix addremove when largefile is missing (issue3227)
author | Na'Tosha Bard <natosha@unity3d.com> |
---|---|
date | Sun, 13 May 2012 12:11:50 +0200 |
parents | 46c15dff3497 |
children | 7d45730ea1b8 |
comparison
equal
deleted
inserted
replaced
16730:dd4ce44ff53c | 16731:dcfc70aab372 |
---|---|
167 lfutil.repoforget(repo, forget) | 167 lfutil.repoforget(repo, forget) |
168 # If this is being called by addremove, let the original addremove | 168 # If this is being called by addremove, let the original addremove |
169 # function handle this. | 169 # function handle this. |
170 if not getattr(repo, "_isaddremove", False): | 170 if not getattr(repo, "_isaddremove", False): |
171 lfutil.reporemove(repo, remove, unlink=True) | 171 lfutil.reporemove(repo, remove, unlink=True) |
172 else: | |
173 lfutil.reporemove(repo, remove, unlink=False) | |
172 finally: | 174 finally: |
173 wlock.release() | 175 wlock.release() |
174 | 176 |
175 # For overriding mercurial.hgweb.webcommands so that largefiles will | 177 # For overriding mercurial.hgweb.webcommands so that largefiles will |
176 # appear at their right place in the manifests. | 178 # appear at their right place in the manifests. |