Mercurial > hg
comparison hgext/largefiles/overrides.py @ 18140:e388273f3ad1 stable
largefiles revert: update lfdirstate with result from first cleanliness check
Largefiles revert do for some reason have two lfdirstates and lfdirstatestatus
invocations in one function. The result from the first lfdirstate check was
however not written back to the lfdirstate, and some files was thus checked
twice.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 13 Dec 2012 19:19:06 +0100 |
parents | afa7e6fa820b |
children | 11d1a9143adb |
comparison
equal
deleted
inserted
replaced
18139:03faf12fbee7 | 18140:e388273f3ad1 |
---|---|
563 wlock = repo.wlock() | 563 wlock = repo.wlock() |
564 try: | 564 try: |
565 lfdirstate = lfutil.openlfdirstate(ui, repo) | 565 lfdirstate = lfutil.openlfdirstate(ui, repo) |
566 (modified, added, removed, missing, unknown, ignored, clean) = \ | 566 (modified, added, removed, missing, unknown, ignored, clean) = \ |
567 lfutil.lfdirstatestatus(lfdirstate, repo, repo['.'].rev()) | 567 lfutil.lfdirstatestatus(lfdirstate, repo, repo['.'].rev()) |
568 lfdirstate.write() | |
568 for lfile in modified: | 569 for lfile in modified: |
569 lfutil.updatestandin(repo, lfutil.standin(lfile)) | 570 lfutil.updatestandin(repo, lfutil.standin(lfile)) |
570 for lfile in missing: | 571 for lfile in missing: |
571 if (os.path.exists(repo.wjoin(lfutil.standin(lfile)))): | 572 if (os.path.exists(repo.wjoin(lfutil.standin(lfile)))): |
572 os.unlink(repo.wjoin(lfutil.standin(lfile))) | 573 os.unlink(repo.wjoin(lfutil.standin(lfile))) |