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