Mercurial > hg
annotate tests/test-lfs-largefiles.t @ 40915:e64a28e2a1f2
test: enable sparse-revlog for test-wireproto-command-capabilities.t
We are about to enable sparse-revlog globally. To help with reviewing the
tests change, we isolate them in individual changesets.
Differential Revision: https://phab.mercurial-scm.org/D5342
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 12 Nov 2018 01:18:58 +0100 |
parents | c35d3cb758a4 |
children | a0886a4d6dce |
rev | line source |
---|---|
40896
c35d3cb758a4
test: enable sparse-revlog for test-lfs-largefiles.t
Boris Feld <boris.feld@octobus.net>
parents:
40368
diff
changeset
|
1 TRANSITIONAL CONFIG |
c35d3cb758a4
test: enable sparse-revlog for test-lfs-largefiles.t
Boris Feld <boris.feld@octobus.net>
parents:
40368
diff
changeset
|
2 $ cat << EOF >> $HGRCPATH |
c35d3cb758a4
test: enable sparse-revlog for test-lfs-largefiles.t
Boris Feld <boris.feld@octobus.net>
parents:
40368
diff
changeset
|
3 > [format] |
c35d3cb758a4
test: enable sparse-revlog for test-lfs-largefiles.t
Boris Feld <boris.feld@octobus.net>
parents:
40368
diff
changeset
|
4 > sparse-revlog = yes |
c35d3cb758a4
test: enable sparse-revlog for test-lfs-largefiles.t
Boris Feld <boris.feld@octobus.net>
parents:
40368
diff
changeset
|
5 > EOF |
c35d3cb758a4
test: enable sparse-revlog for test-lfs-largefiles.t
Boris Feld <boris.feld@octobus.net>
parents:
40368
diff
changeset
|
6 |
38021
538e850ae737
tests: mark tests that fail when using chg as #require no-chg
Kyle Lippincott <spectral@google.com>
parents:
37348
diff
changeset
|
7 #require no-reposimplestore no-chg |
37348
f4e84dfc06fd
tests: skip largefiles and lfs tests when using simple store
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36650
diff
changeset
|
8 |
35102
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
9 This tests the interaction between the largefiles and lfs extensions, and |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
10 conversion from largefiles -> lfs. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
11 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
12 $ cat >> $HGRCPATH << EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
13 > [extensions] |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
14 > largefiles = |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
15 > |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
16 > [lfs] |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
17 > # standin files are 41 bytes. Stay bigger for clarity. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
18 > threshold = 42 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
19 > EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
20 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
21 Setup a repo with a normal file and a largefile, above and below the lfs |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
22 threshold to test lfconvert. *.txt start life as a normal file; *.bin start as |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
23 an lfs/largefile. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
24 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
25 $ hg init largefiles |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
26 $ cd largefiles |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
27 $ echo 'normal' > normal.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
28 $ echo 'normal above lfs threshold 0000000000000000000000000' > lfs.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
29 $ hg ci -Am 'normal.txt' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
30 adding lfs.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
31 adding normal.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
32 $ echo 'largefile' > large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
33 $ echo 'largefile above lfs threshold 0000000000000000000000' > lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
34 $ hg add --large large.bin lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
35 $ hg ci -m 'add largefiles' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
36 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
37 $ cat >> $HGRCPATH << EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
38 > [extensions] |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
39 > lfs = |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
40 > EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
41 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
42 Add an lfs file and normal file that collide with files on the other branch. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
43 large.bin is added as a normal file, and is named as such only to clash with the |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
44 largefile on the other branch. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
45 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
46 $ hg up -q '.^' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
47 $ echo 'below lfs threshold' > large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
48 $ echo 'lfs above the lfs threshold for length 0000000000000' > lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
49 $ hg ci -Am 'add with lfs extension' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
50 adding large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
51 adding lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
52 created new head |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
53 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
54 $ hg log -G |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
55 @ changeset: 2:e989d0fa3764 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
56 | tag: tip |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
57 | parent: 0:29361292f54d |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
58 | user: test |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
59 | date: Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
60 | summary: add with lfs extension |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
61 | |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
62 | o changeset: 1:6513aaab9ca0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
63 |/ user: test |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
64 | date: Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
65 | summary: add largefiles |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
66 | |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
67 o changeset: 0:29361292f54d |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
68 user: test |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
69 date: Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
70 summary: normal.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
71 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
72 -------------------------------------------------------------------------------- |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
73 Merge largefiles into lfs branch |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
74 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
75 The largefiles extension will prompt to use the normal or largefile when merged |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
76 into the lfs files. `hg manifest` will show standins if present. They aren't, |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
77 because largefiles merge doesn't merge content. If it did, selecting (n)ormal |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
78 would convert to lfs on commit, if appropriate. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
79 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
80 BUG: Largefiles isn't running the merge tool, like when two lfs files are |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
81 merged. This is probably by design, but it should probably at least prompt if |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
82 content should be taken from (l)ocal or (o)ther as well. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
83 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
84 $ hg --config ui.interactive=True merge 6513aaab9ca0 <<EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
85 > n |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
86 > n |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
87 > EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
88 remote turned local normal file large.bin into a largefile |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
89 use (l)argefile or keep (n)ormal file? n |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
90 remote turned local normal file lfs.bin into a largefile |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
91 use (l)argefile or keep (n)ormal file? n |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
92 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
93 (branch merge, don't forget to commit) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
94 $ hg ci -m 'merge lfs with largefiles -> normal' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
95 $ hg manifest |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
96 large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
97 lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
98 lfs.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
99 normal.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
100 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
101 The merged lfs.bin resolved to lfs because the (n)ormal option was picked. The |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
102 lfs.txt file is unchanged by the merge, because it was added before lfs was |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
103 enabled, and the content didn't change. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
104 $ hg debugdata lfs.bin 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
105 version https://git-lfs.github.com/spec/v1 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
106 oid sha256:81c7492b2c05e130431f65a87651b54a30c5da72c99ce35a1e9b9872a807312b |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
107 size 53 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
108 x-is-binary 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
109 $ hg debugdata lfs.txt 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
110 normal above lfs threshold 0000000000000000000000000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
111 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
112 Another filelog entry is NOT made by the merge, so nothing is committed as lfs. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
113 $ hg log -r . -T '{join(lfs_files, ", ")}\n' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
114 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
115 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
116 Replay the last merge, but pick (l)arge this time. The manifest will show any |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
117 standins. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
118 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
119 $ hg up -Cq e989d0fa3764 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
120 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
121 $ hg --config ui.interactive=True merge 6513aaab9ca0 <<EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
122 > l |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
123 > l |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
124 > EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
125 remote turned local normal file large.bin into a largefile |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
126 use (l)argefile or keep (n)ormal file? l |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
127 remote turned local normal file lfs.bin into a largefile |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
128 use (l)argefile or keep (n)ormal file? l |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
129 getting changed largefiles |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
130 2 largefiles updated, 0 removed |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
131 2 files updated, 0 files merged, 2 files removed, 0 files unresolved |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
132 (branch merge, don't forget to commit) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
133 $ hg ci -m 'merge lfs with largefiles -> large' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
134 created new head |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
135 $ hg manifest |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
136 .hglf/large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
137 .hglf/lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
138 lfs.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
139 normal.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
140 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
141 -------------------------------------------------------------------------------- |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
142 Merge lfs into largefiles branch |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
143 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
144 $ hg up -Cq 6513aaab9ca0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
145 $ hg --config ui.interactive=True merge e989d0fa3764 <<EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
146 > n |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
147 > n |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
148 > EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
149 remote turned local largefile large.bin into a normal file |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
150 keep (l)argefile or use (n)ormal file? n |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
151 remote turned local largefile lfs.bin into a normal file |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
152 keep (l)argefile or use (n)ormal file? n |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
153 getting changed largefiles |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
154 0 largefiles updated, 0 removed |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
155 2 files updated, 0 files merged, 2 files removed, 0 files unresolved |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
156 (branch merge, don't forget to commit) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
157 $ hg ci -m 'merge largefiles with lfs -> normal' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
158 created new head |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
159 $ hg manifest |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
160 large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
161 lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
162 lfs.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
163 normal.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
164 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
165 The merged lfs.bin got converted to lfs because the (n)ormal option was picked. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
166 The lfs.txt file is unchanged by the merge, because it was added before lfs was |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
167 enabled. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
168 $ hg debugdata lfs.bin 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
169 version https://git-lfs.github.com/spec/v1 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
170 oid sha256:81c7492b2c05e130431f65a87651b54a30c5da72c99ce35a1e9b9872a807312b |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
171 size 53 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
172 x-is-binary 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
173 $ hg debugdata lfs.txt 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
174 normal above lfs threshold 0000000000000000000000000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
175 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
176 Another filelog entry is NOT made by the merge, so nothing is committed as lfs. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
177 $ hg log -r . -T '{join(lfs_files, ", ")}\n' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
178 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
179 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
180 Replay the last merge, but pick (l)arge this time. The manifest will show the |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
181 standins. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
182 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
183 $ hg up -Cq 6513aaab9ca0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
184 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
185 $ hg --config ui.interactive=True merge e989d0fa3764 <<EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
186 > l |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
187 > l |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
188 > EOF |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
189 remote turned local largefile large.bin into a normal file |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
190 keep (l)argefile or use (n)ormal file? l |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
191 remote turned local largefile lfs.bin into a normal file |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
192 keep (l)argefile or use (n)ormal file? l |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
193 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
194 (branch merge, don't forget to commit) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
195 $ hg ci -m 'merge largefiles with lfs -> large' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
196 created new head |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
197 $ hg manifest |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
198 .hglf/large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
199 .hglf/lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
200 lfs.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
201 normal.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
202 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
203 -------------------------------------------------------------------------------- |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
204 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
205 When both largefiles and lfs are configured to add by size, the tie goes to |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
206 largefiles since it hooks cmdutil.add() and lfs hooks the filelog write in the |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
207 commit. By the time the commit occurs, the tracked file is smaller than the |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
208 threshold (assuming it is > 41, so the standins don't become lfs objects). |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
209 |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
38021
diff
changeset
|
210 $ "$PYTHON" -c 'import sys ; sys.stdout.write("y\n" * 1048576)' > large_by_size.bin |
35102
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
211 $ hg --config largefiles.minsize=1 ci -Am 'large by size' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
212 adding large_by_size.bin as a largefile |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
213 $ hg manifest |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
214 .hglf/large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
215 .hglf/large_by_size.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
216 .hglf/lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
217 lfs.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
218 normal.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
219 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
220 $ hg rm large_by_size.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
221 $ hg ci -m 'remove large_by_size.bin' |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
222 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
223 Largefiles doesn't do anything special with diff, so it falls back to diffing |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
224 the standins. Extdiff also is standin based comparison. Diff and extdiff both |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
225 work on the original file for lfs objects. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
226 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
227 Largefile -> lfs transition |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
228 $ hg diff -r 1 -r 3 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
229 diff -r 6513aaab9ca0 -r dcc5ce63e252 .hglf/large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
230 --- a/.hglf/large.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
231 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
232 @@ -1,1 +0,0 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
233 -cef9a458373df9b0743a0d3c14d0c66fb19b8629 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
234 diff -r 6513aaab9ca0 -r dcc5ce63e252 .hglf/lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
235 --- a/.hglf/lfs.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
236 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
237 @@ -1,1 +0,0 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
238 -557fb6309cef935e1ac2c8296508379e4b15a6e6 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
239 diff -r 6513aaab9ca0 -r dcc5ce63e252 large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
240 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
241 +++ b/large.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
242 @@ -0,0 +1,1 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
243 +below lfs threshold |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
244 diff -r 6513aaab9ca0 -r dcc5ce63e252 lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
245 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
246 +++ b/lfs.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
247 @@ -0,0 +1,1 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
248 +lfs above the lfs threshold for length 0000000000000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
249 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
250 lfs -> largefiles transition |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
251 $ hg diff -r 2 -r 6 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
252 diff -r e989d0fa3764 -r 95e1e80325c8 .hglf/large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
253 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
254 +++ b/.hglf/large.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
255 @@ -0,0 +1,1 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
256 +cef9a458373df9b0743a0d3c14d0c66fb19b8629 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
257 diff -r e989d0fa3764 -r 95e1e80325c8 .hglf/lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
258 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
259 +++ b/.hglf/lfs.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
260 @@ -0,0 +1,1 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
261 +557fb6309cef935e1ac2c8296508379e4b15a6e6 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
262 diff -r e989d0fa3764 -r 95e1e80325c8 large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
263 --- a/large.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
264 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
265 @@ -1,1 +0,0 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
266 -below lfs threshold |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
267 diff -r e989d0fa3764 -r 95e1e80325c8 lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
268 --- a/lfs.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
269 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
270 @@ -1,1 +0,0 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
271 -lfs above the lfs threshold for length 0000000000000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
272 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
273 A largefiles repo can be converted to lfs. The lfconvert command uses the |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
274 convert extension under the hood with --to-normal. So the --config based |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
275 parameters are available, but not --authormap, --branchmap, etc. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
276 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
277 $ cd .. |
35199
80bb15769c73
test-lfs: drop a hack for ignoring convert devel-warnings
Matt Harbison <matt_harbison@yahoo.com>
parents:
35178
diff
changeset
|
278 $ hg lfconvert --to-normal largefiles nolargefiles 2>&1 |
35102
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
279 initializing destination nolargefiles |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
280 0 additional largefiles cached |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
281 scanning source... |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
282 sorting... |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
283 converting... |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
284 8 normal.txt |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
285 7 add largefiles |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
286 6 add with lfs extension |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
287 5 merge lfs with largefiles -> normal |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
288 4 merge lfs with largefiles -> large |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
289 3 merge largefiles with lfs -> normal |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
290 2 merge largefiles with lfs -> large |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
291 1 large by size |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
292 0 remove large_by_size.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
293 $ cd nolargefiles |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
294 |
40368
fad6068249d9
lfs: don't add extension to hgrc after conversion (BC)
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
295 The requirement is added to the destination repo. |
35102
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
296 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
297 $ cat .hg/requires |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
298 dotencode |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
299 fncache |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
300 generaldelta |
35178
f8f939a2926c
lfs: add a repo requirement for this extension when converting to lfs
Matt Harbison <matt_harbison@yahoo.com>
parents:
35104
diff
changeset
|
301 lfs |
35102
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
302 revlogv1 |
40896
c35d3cb758a4
test: enable sparse-revlog for test-lfs-largefiles.t
Boris Feld <boris.feld@octobus.net>
parents:
40368
diff
changeset
|
303 sparserevlog |
35102
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
304 store |
35178
f8f939a2926c
lfs: add a repo requirement for this extension when converting to lfs
Matt Harbison <matt_harbison@yahoo.com>
parents:
35104
diff
changeset
|
305 |
35102
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
306 $ hg log -r 'all()' -G -T '{rev} {join(lfs_files, ", ")} ({desc})\n' |
35999
8c7d5e90e6bd
lfs: teach '{lfs_files}' to handle removed files
Matt Harbison <matt_harbison@yahoo.com>
parents:
35215
diff
changeset
|
307 o 8 large_by_size.bin (remove large_by_size.bin) |
35102
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
308 | |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
309 o 7 large_by_size.bin (large by size) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
310 | |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
311 o 6 (merge largefiles with lfs -> large) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
312 |\ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
313 +---o 5 (merge largefiles with lfs -> normal) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
314 | |/ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
315 +---o 4 lfs.bin (merge lfs with largefiles -> large) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
316 | |/ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
317 +---o 3 (merge lfs with largefiles -> normal) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
318 | |/ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
319 | o 2 lfs.bin (add with lfs extension) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
320 | | |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
321 o | 1 lfs.bin (add largefiles) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
322 |/ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
323 o 0 lfs.txt (normal.txt) |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
324 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
325 $ hg debugdata lfs.bin 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
326 version https://git-lfs.github.com/spec/v1 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
327 oid sha256:2172a5bd492dd41ec533b9bb695f7691b6351719407ac797f0ccad5348c81e62 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
328 size 53 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
329 x-is-binary 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
330 $ hg debugdata lfs.bin 1 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
331 version https://git-lfs.github.com/spec/v1 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
332 oid sha256:81c7492b2c05e130431f65a87651b54a30c5da72c99ce35a1e9b9872a807312b |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
333 size 53 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
334 x-is-binary 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
335 $ hg debugdata lfs.bin 2 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
336 version https://git-lfs.github.com/spec/v1 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
337 oid sha256:2172a5bd492dd41ec533b9bb695f7691b6351719407ac797f0ccad5348c81e62 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
338 size 53 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
339 x-is-binary 0 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
340 $ hg debugdata lfs.bin 3 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
341 abort: invalid revision identifier 3 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
342 [255] |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
343 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
344 No diffs when comparing merge and p1 that kept p1's changes. Diff of lfs to |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
345 largefiles no longer operates in standin files. |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
346 |
36650
9318babff83b
tests: prevent enormous output spew in test-lfs-largefiles.t
Augie Fackler <augie@google.com>
parents:
35999
diff
changeset
|
347 This `head -n 20` looks dumb (since we expect no output), but if something |
9318babff83b
tests: prevent enormous output spew in test-lfs-largefiles.t
Augie Fackler <augie@google.com>
parents:
35999
diff
changeset
|
348 breaks you can get 1048576 lines of +y in the output, which takes a looooooong |
9318babff83b
tests: prevent enormous output spew in test-lfs-largefiles.t
Augie Fackler <augie@google.com>
parents:
35999
diff
changeset
|
349 time to print. |
9318babff83b
tests: prevent enormous output spew in test-lfs-largefiles.t
Augie Fackler <augie@google.com>
parents:
35999
diff
changeset
|
350 $ hg diff -r 2:3 | head -n 20 |
35102
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
351 $ hg diff -r 2:6 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
352 diff -r e989d0fa3764 -r 752e3a0d8488 large.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
353 --- a/large.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
354 +++ b/large.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
355 @@ -1,1 +1,1 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
356 -below lfs threshold |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
357 +largefile |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
358 diff -r e989d0fa3764 -r 752e3a0d8488 lfs.bin |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
359 --- a/lfs.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
360 +++ b/lfs.bin Thu Jan 01 00:00:00 1970 +0000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
361 @@ -1,1 +1,1 @@ |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
362 -lfs above the lfs threshold for length 0000000000000 |
ec7f0bb95277
test-lfs: add tests demonstrating the interaction with largefiles
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
363 +largefile above lfs threshold 0000000000000000000000 |