discard unexisting files - happens on hg rm

This commit is contained in:
Tarek Ziade 2011-02-27 17:16:32 +01:00
parent dcc311be76
commit 49eb37bb5d

View file

@ -59,7 +59,7 @@ def _get_files(repo, **kwargs):
for rev in xrange(repo[kwargs['node']], len(repo)): for rev in xrange(repo[kwargs['node']], len(repo)):
for file_ in repo[rev].files(): for file_ in repo[rev].files():
file_ = os.path.join(repo.root, file_) file_ = os.path.join(repo.root, file_)
if file_ in seen: if file_ in seen or not os.path.exists(file_):
continue continue
seen.add(file_) seen.add(file_)
if not file_.endswith('.py'): if not file_.endswith('.py'):