##// 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 #if dirstate-v1-tree
3 #if dirstate-v1-tree
4 #require rust
4 #require rust
@@ -6,6 +6,12 b''
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 #endif
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 $ hg init repo
15 $ hg init repo
10 $ cd repo
16 $ cd repo
11 $ echo a > a
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 #if dirstate-v1-tree
3 #if dirstate-v1-tree
4 #require rust
4 #require rust
@@ -6,6 +6,12 b''
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 #endif
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 Checking the size/permissions/file-type of files stored in the
15 Checking the size/permissions/file-type of files stored in the
10 dirstate after an update where the files are changed concurrently
16 dirstate after an update where the files are changed concurrently
11 outside of hg's control.
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 #if dirstate-v1-tree
3 #if dirstate-v1-tree
4 #require rust
4 #require rust
@@ -6,6 +6,12 b''
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 #endif
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 ------ Test dirstate._dirs refcounting
15 ------ Test dirstate._dirs refcounting
10
16
11 $ hg init t
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 #if dirstate-v1-tree
3 #if dirstate-v1-tree
4 #require rust
4 #require rust
@@ -6,6 +6,12 b''
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 #endif
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 $ hg init ignorerepo
15 $ hg init ignorerepo
10 $ cd ignorerepo
16 $ cd ignorerepo
11
17
@@ -1,6 +1,6 b''
1 #require unix-permissions no-root reporevlogstore
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 #if dirstate-v1-tree
5 #if dirstate-v1-tree
6 #require rust
6 #require rust
@@ -8,6 +8,12 b''
8 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
8 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
9 #endif
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 $ hg init t
17 $ hg init t
12 $ cd t
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 #if dirstate-v1-tree
3 #if dirstate-v1-tree
4 #require rust
4 #require rust
@@ -6,6 +6,12 b''
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 #endif
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 init
15 init
10
16
11 $ hg init t
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 #if dirstate-v1-tree
9 #if dirstate-v1-tree
4 #require rust
10 #require rust
@@ -6,6 +12,12 b''
6 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
12 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
7 #endif
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 $ hg init repo1
21 $ hg init repo1
10 $ cd repo1
22 $ cd repo1
11 $ mkdir a b a/1 b/1 b/2
23 $ mkdir a b a/1 b/1 b/2
@@ -1,6 +1,6 b''
1 #require symlink
1 #require symlink
2
2
3 #testcases dirstate-v1 dirstate-v1-tree
3 #testcases dirstate-v1 dirstate-v1-tree dirstate-v2
4
4
5 #if dirstate-v1-tree
5 #if dirstate-v1-tree
6 #require rust
6 #require rust
@@ -8,6 +8,12 b''
8 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
8 $ echo 'dirstate-tree.in-memory=1' >> $HGRCPATH
9 #endif
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 == tests added in 0.7 ==
17 == tests added in 0.7 ==
12
18
13 $ hg init test-symlinks-0.7; cd test-symlinks-0.7;
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