Mercurial > hg
comparison hgext/largefiles/overrides.py @ 15983:32b9aee3602c stable
largefiles: fix revert on missing largefile (issue3217)
author | Na'Tosha Bard <natosha@unity3d.com> |
---|---|
date | Wed, 25 Jan 2012 16:52:16 +0100 |
parents | bf502ccc46d7 |
children | 67a5bc8aeb1d 3e1efb458e8b |
comparison
equal
deleted
inserted
replaced
15982:bf502ccc46d7 | 15983:32b9aee3602c |
---|---|
533 lfdirstate = lfutil.openlfdirstate(ui, repo) | 533 lfdirstate = lfutil.openlfdirstate(ui, repo) |
534 (modified, added, removed, missing, unknown, ignored, clean) = \ | 534 (modified, added, removed, missing, unknown, ignored, clean) = \ |
535 lfutil.lfdirstate_status(lfdirstate, repo, repo['.'].rev()) | 535 lfutil.lfdirstate_status(lfdirstate, repo, repo['.'].rev()) |
536 for lfile in modified: | 536 for lfile in modified: |
537 lfutil.updatestandin(repo, lfutil.standin(lfile)) | 537 lfutil.updatestandin(repo, lfutil.standin(lfile)) |
538 for lfile in missing: | |
539 os.unlink(repo.wjoin(lfutil.standin(lfile))) | |
538 | 540 |
539 try: | 541 try: |
540 ctx = repo[opts.get('rev')] | 542 ctx = repo[opts.get('rev')] |
541 oldmatch = None # for the closure | 543 oldmatch = None # for the closure |
542 def override_match(ctx, pats=[], opts={}, globbed=False, | 544 def override_match(ctx, pats=[], opts={}, globbed=False, |