##// END OF EJS Templates
dirstate-v2: Add a variant of some tests, that uses the new format...
Simon Sapin -
r48056:6763913f default
parent child Browse files
Show More
@@ -1,4 +1,4 b''
1 #testcases dirstate-v1 dirstate-v1-tree
1 #testcases dirstate-v1 dirstate-v1-tree dirstate-v2
2 2
3 3 #if dirstate-v1-tree
4 4 #require rust
@@ -6,6 +6,12 b''
6 6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 7 #endif
8 8
9 #if dirstate-v2
10 #require rust
11 $ echo '[format]' >> $HGRCPATH
12 $ echo 'exp-dirstate-v2=1' >> $HGRCPATH
13 #endif
14
9 15 $ hg init repo
10 16 $ cd repo
11 17 $ echo a > a
@@ -1,4 +1,4 b''
1 #testcases dirstate-v1 dirstate-v1-tree
1 #testcases dirstate-v1 dirstate-v1-tree dirstate-v2
2 2
3 3 #if dirstate-v1-tree
4 4 #require rust
@@ -6,6 +6,12 b''
6 6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 7 #endif
8 8
9 #if dirstate-v2
10 #require rust
11 $ echo '[format]' >> $HGRCPATH
12 $ echo 'exp-dirstate-v2=1' >> $HGRCPATH
13 #endif
14
9 15 Checking the size/permissions/file-type of files stored in the
10 16 dirstate after an update where the files are changed concurrently
11 17 outside of hg's control.
@@ -1,4 +1,4 b''
1 #testcases dirstate-v1 dirstate-v1-tree
1 #testcases dirstate-v1 dirstate-v1-tree dirstate-v2
2 2
3 3 #if dirstate-v1-tree
4 4 #require rust
@@ -6,6 +6,12 b''
6 6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 7 #endif
8 8
9 #if dirstate-v2
10 #require rust
11 $ echo '[format]' >> $HGRCPATH
12 $ echo 'exp-dirstate-v2=1' >> $HGRCPATH
13 #endif
14
9 15 ------ Test dirstate._dirs refcounting
10 16
11 17 $ hg init t
@@ -1,4 +1,4 b''
1 #testcases dirstate-v1 dirstate-v1-tree
1 #testcases dirstate-v1 dirstate-v1-tree dirstate-v2
2 2
3 3 #if dirstate-v1-tree
4 4 #require rust
@@ -6,6 +6,12 b''
6 6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 7 #endif
8 8
9 #if dirstate-v2
10 #require rust
11 $ echo '[format]' >> $HGRCPATH
12 $ echo 'exp-dirstate-v2=1' >> $HGRCPATH
13 #endif
14
9 15 $ hg init ignorerepo
10 16 $ cd ignorerepo
11 17
@@ -1,6 +1,6 b''
1 1 #require unix-permissions no-root reporevlogstore
2 2
3 #testcases dirstate-v1 dirstate-v1-tree
3 #testcases dirstate-v1 dirstate-v1-tree dirstate-v2
4 4
5 5 #if dirstate-v1-tree
6 6 #require rust
@@ -8,6 +8,12 b''
8 8 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
9 9 #endif
10 10
11 #if dirstate-v2
12 #require rust
13 $ echo '[format]' >> $HGRCPATH
14 $ echo 'exp-dirstate-v2=1' >> $HGRCPATH
15 #endif
16
11 17 $ hg init t
12 18 $ cd t
13 19
@@ -1,4 +1,4 b''
1 #testcases dirstate-v1 dirstate-v1-tree
1 #testcases dirstate-v1 dirstate-v1-tree dirstate-v2
2 2
3 3 #if dirstate-v1-tree
4 4 #require rust
@@ -6,6 +6,12 b''
6 6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 7 #endif
8 8
9 #if dirstate-v2
10 #require rust
11 $ echo '[format]' >> $HGRCPATH
12 $ echo 'exp-dirstate-v2=1' >> $HGRCPATH
13 #endif
14
9 15 init
10 16
11 17 $ hg init t
@@ -1,4 +1,10 b''
1 #testcases dirstate-v1 dirstate-v1-tree
1 #testcases dirstate-v1 dirstate-v1-tree dirstate-v2
2
3 #if no-rust
4 $ hg init repo0 --config format.exp-dirstate-v2=1
5 abort: dirstate v2 format requested by config but not supported (requires Rust extensions)
6 [255]
7 #endif
2 8
3 9 #if dirstate-v1-tree
4 10 #require rust
@@ -6,6 +12,12 b''
6 12 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 13 #endif
8 14
15 #if dirstate-v2
16 #require rust
17 $ echo '[format]' >> $HGRCPATH
18 $ echo 'exp-dirstate-v2=1' >> $HGRCPATH
19 #endif
20
9 21 $ hg init repo1
10 22 $ cd repo1
11 23 $ mkdir a b a/1 b/1 b/2
@@ -1,6 +1,6 b''
1 1 #require symlink
2 2
3 #testcases dirstate-v1 dirstate-v1-tree
3 #testcases dirstate-v1 dirstate-v1-tree dirstate-v2
4 4
5 5 #if dirstate-v1-tree
6 6 #require rust
@@ -8,6 +8,12 b''
8 8 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
9 9 #endif
10 10
11 #if dirstate-v2
12 #require rust
13 $ echo '[format]' >> $HGRCPATH
14 $ echo 'exp-dirstate-v2=1' >> $HGRCPATH
15 #endif
16
11 17 == tests added in 0.7 ==
12 18
13 19 $ hg init test-symlinks-0.7; cd test-symlinks-0.7;
General Comments 0
You need to be logged in to leave comments. Login now