##// END OF EJS Templates
largefiles: fix revert on missing largefile (issue3217)
Na'Tosha Bard -
r15983:32b9aee3 stable
parent child Browse files
Show More
@@ -535,6 +535,8 b' def override_revert(orig, ui, repo, *pat'
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')]
@@ -564,6 +564,8 b' Test hg remove removes empty largefiles '
564 $ echo hack3 >> normal3
564 $ echo hack3 >> normal3
565 $ echo hack4 >> sub/normal4
565 $ echo hack4 >> sub/normal4
566 $ echo hack4 >> sub/large4
566 $ echo hack4 >> sub/large4
567 $ rm sub2/large6
568 $ hg revert sub2/large6
567 $ hg rm sub2/large6
569 $ hg rm sub2/large6
568 $ echo new >> sub2/large8
570 $ echo new >> sub2/large8
569 $ hg add --large sub2/large8
571 $ hg add --large sub2/large8
General Comments 0
You need to be logged in to leave comments. Login now