Show More
@@ -1,118 +1,118 b'' | |||||
1 | #require no-windows |
|
1 | #require no-windows | |
2 |
|
2 | |||
3 | $ . "$TESTDIR/remotefilelog-library.sh" |
|
3 | $ . "$TESTDIR/remotefilelog-library.sh" | |
4 |
|
4 | |||
5 | $ hg init master |
|
5 | $ hg init master | |
6 | $ cd master |
|
6 | $ cd master | |
7 | $ cat >> .hg/hgrc <<EOF |
|
7 | $ cat >> .hg/hgrc <<EOF | |
8 | > [remotefilelog] |
|
8 | > [remotefilelog] | |
9 | > server=True |
|
9 | > server=True | |
10 | > EOF |
|
10 | > EOF | |
11 | $ echo x > x |
|
11 | $ echo x > x | |
12 | $ hg commit -qAm x |
|
12 | $ hg commit -qAm x | |
13 | $ mkdir dir |
|
13 | $ mkdir dir | |
14 | $ echo y > dir/y |
|
14 | $ echo y > dir/y | |
15 | $ hg commit -qAm y |
|
15 | $ hg commit -qAm y | |
16 |
|
16 | |||
17 | $ cd .. |
|
17 | $ cd .. | |
18 |
|
18 | |||
19 | Shallow clone from full |
|
19 | Shallow clone from full | |
20 |
|
20 | |||
21 | $ hgcloneshallow ssh://user@dummy/master shallow --noupdate |
|
21 | $ hgcloneshallow ssh://user@dummy/master shallow --noupdate | |
22 | streaming all changes |
|
22 | streaming all changes | |
23 | 2 files to transfer, 473 bytes of data |
|
23 | 2 files to transfer, 473 bytes of data | |
24 | transferred 473 bytes in * seconds (*/sec) (glob) |
|
24 | transferred 473 bytes in * seconds (*/sec) (glob) | |
25 | searching for changes |
|
25 | searching for changes | |
26 | no changes found |
|
26 | no changes found | |
27 | $ cd shallow |
|
27 | $ cd shallow | |
28 | $ cat .hg/requires |
|
28 | $ cat .hg/requires | |
29 | dotencode |
|
29 | dotencode | |
30 | exp-remotefilelog-repo-req-1 |
|
30 | exp-remotefilelog-repo-req-1 | |
31 | fncache |
|
31 | fncache | |
32 | generaldelta |
|
32 | generaldelta | |
33 | revlogv1 |
|
33 | revlogv1 | |
34 | sparserevlog |
|
34 | sparserevlog | |
35 | store |
|
35 | store | |
36 |
|
36 | |||
37 | $ hg update |
|
37 | $ hg update | |
38 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
38 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
39 | 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob) |
|
39 | 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob) | |
40 |
|
40 | |||
41 | Log on a file without -f |
|
41 | Log on a file without -f | |
42 |
|
42 | |||
43 | $ hg log dir/y |
|
43 | $ hg log dir/y | |
44 | warning: file log can be slow on large repos - use -f to speed it up |
|
44 | warning: file log can be slow on large repos - use -f to speed it up | |
45 | changeset: 1:2e73264fab97 |
|
45 | changeset: 1:2e73264fab97 | |
46 | tag: tip |
|
46 | tag: tip | |
47 | user: test |
|
47 | user: test | |
48 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
48 | date: Thu Jan 01 00:00:00 1970 +0000 | |
49 | summary: y |
|
49 | summary: y | |
50 |
|
50 | |||
51 | Log on a file with -f |
|
51 | Log on a file with -f | |
52 |
|
52 | |||
53 | $ hg log -f dir/y |
|
53 | $ hg log -f dir/y | |
54 | changeset: 1:2e73264fab97 |
|
54 | changeset: 1:2e73264fab97 | |
55 | tag: tip |
|
55 | tag: tip | |
56 | user: test |
|
56 | user: test | |
57 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
57 | date: Thu Jan 01 00:00:00 1970 +0000 | |
58 | summary: y |
|
58 | summary: y | |
59 |
|
59 | |||
60 | Log on a file with kind in path |
|
60 | Log on a file with kind in path | |
61 | $ hg log -r "filelog('path:dir/y')" |
|
61 | $ hg log -r "filelog('path:dir/y')" | |
62 | changeset: 1:2e73264fab97 |
|
62 | changeset: 1:2e73264fab97 | |
63 | tag: tip |
|
63 | tag: tip | |
64 | user: test |
|
64 | user: test | |
65 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
65 | date: Thu Jan 01 00:00:00 1970 +0000 | |
66 | summary: y |
|
66 | summary: y | |
67 |
|
67 | |||
68 | Log on multiple files with -f |
|
68 | Log on multiple files with -f | |
69 |
|
69 | |||
70 | $ hg log -f dir/y x |
|
70 | $ hg log -f dir/y x | |
71 | changeset: 1:2e73264fab97 |
|
71 | changeset: 1:2e73264fab97 | |
72 | tag: tip |
|
72 | tag: tip | |
73 | user: test |
|
73 | user: test | |
74 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
74 | date: Thu Jan 01 00:00:00 1970 +0000 | |
75 | summary: y |
|
75 | summary: y | |
76 |
|
76 | |||
77 | changeset: 0:b292c1e3311f |
|
77 | changeset: 0:b292c1e3311f | |
78 | user: test |
|
78 | user: test | |
79 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
79 | date: Thu Jan 01 00:00:00 1970 +0000 | |
80 | summary: x |
|
80 | summary: x | |
81 |
|
81 | |||
82 | Log on a directory |
|
82 | Log on a directory | |
83 |
|
83 | |||
84 | $ hg log dir |
|
84 | $ hg log dir | |
85 | changeset: 1:2e73264fab97 |
|
85 | changeset: 1:2e73264fab97 | |
86 | tag: tip |
|
86 | tag: tip | |
87 | user: test |
|
87 | user: test | |
88 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
88 | date: Thu Jan 01 00:00:00 1970 +0000 | |
89 | summary: y |
|
89 | summary: y | |
90 |
|
90 | |||
91 | Log on a file from inside a directory |
|
91 | Log on a file from inside a directory | |
92 |
|
92 | |||
93 | $ cd dir |
|
93 | $ cd dir | |
94 | $ hg log y |
|
94 | $ hg log y | |
95 | warning: file log can be slow on large repos - use -f to speed it up |
|
95 | warning: file log can be slow on large repos - use -f to speed it up | |
96 | changeset: 1:2e73264fab97 |
|
96 | changeset: 1:2e73264fab97 | |
97 | tag: tip |
|
97 | tag: tip | |
98 | user: test |
|
98 | user: test | |
99 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
99 | date: Thu Jan 01 00:00:00 1970 +0000 | |
100 | summary: y |
|
100 | summary: y | |
101 |
|
101 | |||
102 | Log on a file via -fr |
|
102 | Log on a file via -fr | |
103 | $ cd .. |
|
103 | $ cd .. | |
104 | $ hg log -fr tip dir/ --template '{rev}\n' |
|
104 | $ hg log -fr tip dir/ --template '{rev}\n' | |
105 | 1 |
|
105 | 1 | |
106 |
|
106 | |||
107 | Trace renames |
|
107 | Trace renames | |
108 | $ hg mv x z |
|
108 | $ hg mv x z | |
109 | $ hg commit -m move |
|
109 | $ hg commit -m move | |
110 | $ hg log -f z -T '{desc}\n' -G |
|
110 | $ hg log -f z -T '{desc} {file_copies}\n' -G | |
111 | @ move |
|
111 | @ move z (x\x14\x06\xe7A\x18bv\x94&\x84\x17I\x1f\x01\x8aJ\x881R\xf0) (esc) | |
112 | : |
|
112 | : | |
113 | o x |
|
113 | o x | |
114 |
|
114 | |||
115 |
|
115 | |||
116 | Verify remotefilelog handles rename metadata stripping when comparing file sizes |
|
116 | Verify remotefilelog handles rename metadata stripping when comparing file sizes | |
117 | $ hg debugrebuilddirstate |
|
117 | $ hg debugrebuilddirstate | |
118 | $ hg status |
|
118 | $ hg status |
General Comments 0
You need to be logged in to leave comments.
Login now