Show More
@@ -489,8 +489,8 b' enabled adds the lfs requirement' | |||||
489 |
|
489 | |||
490 | # Test fctx.cmp fastpath - diff without LFS blobs |
|
490 | # Test fctx.cmp fastpath - diff without LFS blobs | |
491 |
|
491 | |||
492 |
$ hg init repo1 |
|
492 | $ hg init repo12 | |
493 |
$ cd repo1 |
|
493 | $ cd repo12 | |
494 | $ cat >> .hg/hgrc <<EOF |
|
494 | $ cat >> .hg/hgrc <<EOF | |
495 | > [lfs] |
|
495 | > [lfs] | |
496 | > threshold=1 |
|
496 | > threshold=1 | |
@@ -520,8 +520,8 b' enabled adds the lfs requirement' | |||||
520 |
|
520 | |||
521 | $ cd .. |
|
521 | $ cd .. | |
522 |
|
522 | |||
523 |
$ hg clone repo1 |
|
523 | $ hg clone repo12 repo13 --noupdate | |
524 |
$ cd repo1 |
|
524 | $ cd repo13 | |
525 | $ hg log --removed -p a -T '{desc}\n' --config diff.nobinary=1 --git |
|
525 | $ hg log --removed -p a -T '{desc}\n' --config diff.nobinary=1 --git | |
526 | 2 |
|
526 | 2 | |
527 | diff --git a/a b/a |
|
527 | diff --git a/a b/a | |
@@ -590,37 +590,37 b' enabled adds the lfs requirement' | |||||
590 | repo: repo9 |
|
590 | repo: repo9 | |
591 | repo: repo10 |
|
591 | repo: repo10 | |
592 |
|
592 | |||
593 |
repo1 |
|
593 | repo13 doesn't have any cached lfs files and its source never pushed its | |
594 | files. Therefore, the files don't exist in the remote store. Use the files in |
|
594 | files. Therefore, the files don't exist in the remote store. Use the files in | |
595 | the user cache. |
|
595 | the user cache. | |
596 |
|
596 | |||
597 |
$ test -d $TESTTMP/repo1 |
|
597 | $ test -d $TESTTMP/repo13/.hg/store/lfs/objects | |
598 | [1] |
|
598 | [1] | |
599 |
|
599 | |||
600 |
$ hg --config extensions.share= share repo1 |
|
600 | $ hg --config extensions.share= share repo13 repo14 | |
601 | updating working directory |
|
601 | updating working directory | |
602 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
602 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
603 |
$ hg -R repo1 |
|
603 | $ hg -R repo14 -q verify | |
604 |
|
604 | |||
605 |
$ hg clone repo1 |
|
605 | $ hg clone repo13 repo15 | |
606 | updating to branch default |
|
606 | updating to branch default | |
607 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
607 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
608 |
$ hg -R repo1 |
|
608 | $ hg -R repo15 -q verify | |
609 |
|
609 | |||
610 | If the source repo doesn't have the blob (maybe it was pulled or cloned with |
|
610 | If the source repo doesn't have the blob (maybe it was pulled or cloned with | |
611 | --noupdate), the blob is still accessible via the global cache to send to the |
|
611 | --noupdate), the blob is still accessible via the global cache to send to the | |
612 | remote store. |
|
612 | remote store. | |
613 |
|
613 | |||
614 |
$ rm -rf $TESTTMP/repo1 |
|
614 | $ rm -rf $TESTTMP/repo15/.hg/store/lfs | |
615 |
$ hg init repo1 |
|
615 | $ hg init repo16 | |
616 |
$ hg -R repo1 |
|
616 | $ hg -R repo15 push repo16 | |
617 |
pushing to repo1 |
|
617 | pushing to repo16 | |
618 | searching for changes |
|
618 | searching for changes | |
619 | adding changesets |
|
619 | adding changesets | |
620 | adding manifests |
|
620 | adding manifests | |
621 | adding file changes |
|
621 | adding file changes | |
622 | added 3 changesets with 2 changes to 1 files |
|
622 | added 3 changesets with 2 changes to 1 files | |
623 |
$ hg -R repo1 |
|
623 | $ hg -R repo15 -q verify | |
624 |
|
624 | |||
625 | Test damaged file scenarios. (This also damages the usercache because of the |
|
625 | Test damaged file scenarios. (This also damages the usercache because of the | |
626 | hardlinks.) |
|
626 | hardlinks.) |
General Comments 0
You need to be logged in to leave comments.
Login now