Show More
@@ -1,999 +1,996 | |||||
1 | $ cat <<EOF >> $HGRCPATH |
|
1 | $ cat <<EOF >> $HGRCPATH | |
2 | > [extensions] |
|
2 | > [extensions] | |
3 | > keyword = |
|
3 | > keyword = | |
4 | > mq = |
|
4 | > mq = | |
5 | > notify = |
|
5 | > notify = | |
6 | > record = |
|
6 | > record = | |
7 | > transplant = |
|
7 | > transplant = | |
8 | > [ui] |
|
8 | > [ui] | |
9 | > interactive = true |
|
9 | > interactive = true | |
10 | > EOF |
|
10 | > EOF | |
11 |
|
11 | |||
12 | Run kwdemo before [keyword] files are set up |
|
12 | Run kwdemo before [keyword] files are set up | |
13 | as it would succeed without uisetup otherwise |
|
13 | as it would succeed without uisetup otherwise | |
14 |
|
14 | |||
15 | $ hg --quiet kwdemo |
|
15 | $ hg --quiet kwdemo | |
16 | [extensions] |
|
16 | [extensions] | |
17 | keyword = |
|
17 | keyword = | |
18 | [keyword] |
|
18 | [keyword] | |
19 | demo.txt = |
|
19 | demo.txt = | |
20 | [keywordmaps] |
|
20 | [keywordmaps] | |
21 | Author = {author|user} |
|
21 | Author = {author|user} | |
22 | Date = {date|utcdate} |
|
22 | Date = {date|utcdate} | |
23 | Header = {root}/{file},v {node|short} {date|utcdate} {author|user} |
|
23 | Header = {root}/{file},v {node|short} {date|utcdate} {author|user} | |
24 | Id = {file|basename},v {node|short} {date|utcdate} {author|user} |
|
24 | Id = {file|basename},v {node|short} {date|utcdate} {author|user} | |
25 | RCSFile = {file|basename},v |
|
25 | RCSFile = {file|basename},v | |
26 | RCSfile = {file|basename},v |
|
26 | RCSfile = {file|basename},v | |
27 | Revision = {node|short} |
|
27 | Revision = {node|short} | |
28 | Source = {root}/{file},v |
|
28 | Source = {root}/{file},v | |
29 | $Author: test $ |
|
29 | $Author: test $ | |
30 | $Date: ????/??/?? ??:??:?? $ (glob) |
|
30 | $Date: ????/??/?? ??:??:?? $ (glob) | |
31 | $Header: */demo.txt,v ???????????? ????/??/?? ??:??:?? test $ (glob) |
|
31 | $Header: */demo.txt,v ???????????? ????/??/?? ??:??:?? test $ (glob) | |
32 | $Id: demo.txt,v ???????????? ????/??/?? ??:??:?? test $ (glob) |
|
32 | $Id: demo.txt,v ???????????? ????/??/?? ??:??:?? test $ (glob) | |
33 | $RCSFile: demo.txt,v $ |
|
33 | $RCSFile: demo.txt,v $ | |
34 | $RCSfile: demo.txt,v $ |
|
34 | $RCSfile: demo.txt,v $ | |
35 | $Revision: ???????????? $ (glob) |
|
35 | $Revision: ???????????? $ (glob) | |
36 | $Source: */demo.txt,v $ (glob) |
|
36 | $Source: */demo.txt,v $ (glob) | |
37 |
|
37 | |||
38 | $ hg --quiet kwdemo "Branch = {branches}" |
|
38 | $ hg --quiet kwdemo "Branch = {branches}" | |
39 | [extensions] |
|
39 | [extensions] | |
40 | keyword = |
|
40 | keyword = | |
41 | [keyword] |
|
41 | [keyword] | |
42 | demo.txt = |
|
42 | demo.txt = | |
43 | [keywordmaps] |
|
43 | [keywordmaps] | |
44 | Branch = {branches} |
|
44 | Branch = {branches} | |
45 | $Branch: demobranch $ |
|
45 | $Branch: demobranch $ | |
46 |
|
46 | |||
47 | $ cat <<EOF >> $HGRCPATH |
|
47 | $ cat <<EOF >> $HGRCPATH | |
48 | > [keyword] |
|
48 | > [keyword] | |
49 | > ** = |
|
49 | > ** = | |
50 | > b = ignore |
|
50 | > b = ignore | |
51 | > i = ignore |
|
51 | > i = ignore | |
52 | > [hooks] |
|
52 | > [hooks] | |
|
53 | > EOF | |||
|
54 | $ cp $HGRCPATH $HGRCPATH.nohooks | |||
|
55 | > cat <<EOF >> $HGRCPATH | |||
53 | > commit= |
|
56 | > commit= | |
54 | > commit.test=cp a hooktest |
|
57 | > commit.test=cp a hooktest | |
55 | > EOF |
|
58 | > EOF | |
56 |
|
59 | |||
57 | $ hg init Test-bndl |
|
60 | $ hg init Test-bndl | |
58 | $ cd Test-bndl |
|
61 | $ cd Test-bndl | |
59 |
|
62 | |||
60 | kwshrink should exit silently in empty/invalid repo |
|
63 | kwshrink should exit silently in empty/invalid repo | |
61 |
|
64 | |||
62 | $ hg kwshrink |
|
65 | $ hg kwshrink | |
63 |
|
66 | |||
64 | Symlinks cannot be created on Windows. |
|
67 | Symlinks cannot be created on Windows. | |
65 | A bundle to test this was made with: |
|
68 | A bundle to test this was made with: | |
66 | hg init t |
|
69 | hg init t | |
67 | cd t |
|
70 | cd t | |
68 | echo a > a |
|
71 | echo a > a | |
69 | ln -s a sym |
|
72 | ln -s a sym | |
70 | hg add sym |
|
73 | hg add sym | |
71 | hg ci -m addsym -u mercurial |
|
74 | hg ci -m addsym -u mercurial | |
72 | hg bundle --base null ../test-keyword.hg |
|
75 | hg bundle --base null ../test-keyword.hg | |
73 |
|
76 | |||
74 | $ hg pull -u "$TESTDIR"/test-keyword.hg |
|
77 | $ hg pull -u "$TESTDIR"/test-keyword.hg | |
75 | pulling from *test-keyword.hg (glob) |
|
78 | pulling from *test-keyword.hg (glob) | |
76 | requesting all changes |
|
79 | requesting all changes | |
77 | adding changesets |
|
80 | adding changesets | |
78 | adding manifests |
|
81 | adding manifests | |
79 | adding file changes |
|
82 | adding file changes | |
80 | added 1 changesets with 1 changes to 1 files |
|
83 | added 1 changesets with 1 changes to 1 files | |
81 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
84 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
82 |
|
85 | |||
83 | $ echo 'expand $Id$' > a |
|
86 | $ echo 'expand $Id$' > a | |
84 | $ echo 'do not process $Id:' >> a |
|
87 | $ echo 'do not process $Id:' >> a | |
85 | $ echo 'xxx $' >> a |
|
88 | $ echo 'xxx $' >> a | |
86 | $ echo 'ignore $Id$' > b |
|
89 | $ echo 'ignore $Id$' > b | |
87 |
|
90 | |||
88 | Output files as they were created |
|
91 | Output files as they were created | |
89 |
|
92 | |||
90 | $ cat a b |
|
93 | $ cat a b | |
91 | expand $Id$ |
|
94 | expand $Id$ | |
92 | do not process $Id: |
|
95 | do not process $Id: | |
93 | xxx $ |
|
96 | xxx $ | |
94 | ignore $Id$ |
|
97 | ignore $Id$ | |
95 |
|
98 | |||
96 | no kwfiles |
|
99 | no kwfiles | |
97 |
|
100 | |||
98 | $ hg kwfiles |
|
101 | $ hg kwfiles | |
99 |
|
102 | |||
100 | untracked candidates |
|
103 | untracked candidates | |
101 |
|
104 | |||
102 | $ hg -v kwfiles --unknown |
|
105 | $ hg -v kwfiles --unknown | |
103 | k a |
|
106 | k a | |
104 |
|
107 | |||
105 | Add files and check status |
|
108 | Add files and check status | |
106 |
|
109 | |||
107 | $ hg addremove |
|
110 | $ hg addremove | |
108 | adding a |
|
111 | adding a | |
109 | adding b |
|
112 | adding b | |
110 | $ hg status |
|
113 | $ hg status | |
111 | A a |
|
114 | A a | |
112 | A b |
|
115 | A b | |
113 |
|
116 | |||
114 |
|
117 | |||
115 | Default keyword expansion including commit hook |
|
118 | Default keyword expansion including commit hook | |
116 | Interrupted commit should not change state or run commit hook |
|
119 | Interrupted commit should not change state or run commit hook | |
117 |
|
120 | |||
118 | $ hg --debug commit |
|
121 | $ hg --debug commit | |
119 | abort: empty commit message |
|
122 | abort: empty commit message | |
120 | [255] |
|
123 | [255] | |
121 | $ hg status |
|
124 | $ hg status | |
122 | A a |
|
125 | A a | |
123 | A b |
|
126 | A b | |
124 |
|
127 | |||
125 | Commit with several checks |
|
128 | Commit with several checks | |
126 |
|
129 | |||
127 | $ hg --debug commit -mabsym -u 'User Name <user@example.com>' |
|
130 | $ hg --debug commit -mabsym -u 'User Name <user@example.com>' | |
128 | a |
|
131 | a | |
129 | b |
|
132 | b | |
130 | overwriting a expanding keywords |
|
133 | overwriting a expanding keywords | |
131 | running hook commit.test: cp a hooktest |
|
134 | running hook commit.test: cp a hooktest | |
132 | committed changeset 1:ef63ca68695bc9495032c6fda1350c71e6d256e9 |
|
135 | committed changeset 1:ef63ca68695bc9495032c6fda1350c71e6d256e9 | |
133 | $ hg status |
|
136 | $ hg status | |
134 | ? hooktest |
|
137 | ? hooktest | |
135 | $ hg debugrebuildstate |
|
138 | $ hg debugrebuildstate | |
136 | $ hg --quiet identify |
|
139 | $ hg --quiet identify | |
137 | ef63ca68695b |
|
140 | ef63ca68695b | |
138 |
|
141 | |||
139 | cat files in working directory with keywords expanded |
|
142 | cat files in working directory with keywords expanded | |
140 |
|
143 | |||
141 | $ cat a b |
|
144 | $ cat a b | |
142 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
145 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
143 | do not process $Id: |
|
146 | do not process $Id: | |
144 | xxx $ |
|
147 | xxx $ | |
145 | ignore $Id$ |
|
148 | ignore $Id$ | |
146 |
|
149 | |||
147 | hg cat files and symlink, no expansion |
|
150 | hg cat files and symlink, no expansion | |
148 |
|
151 | |||
149 | $ hg cat sym a b && echo |
|
152 | $ hg cat sym a b && echo | |
150 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
153 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
151 | do not process $Id: |
|
154 | do not process $Id: | |
152 | xxx $ |
|
155 | xxx $ | |
153 | ignore $Id$ |
|
156 | ignore $Id$ | |
154 | a* (glob) |
|
157 | a* (glob) | |
155 |
|
158 | |||
156 | Test hook execution |
|
159 | Test hook execution | |
157 |
|
160 | |||
158 | $ diff a hooktest |
|
161 | $ diff a hooktest | |
159 |
|
162 | |||
160 | Removing commit hook from config |
|
163 | $ cp $HGRCPATH.nohooks $HGRCPATH | |
161 |
|
||||
162 | $ sed -e '/\[hooks\]/,$ d' "$HGRCPATH" > $HGRCPATH.nohook |
|
|||
163 | $ mv "$HGRCPATH".nohook "$HGRCPATH" |
|
|||
164 |
$ |
|
164 | $ rm hooktest | |
165 |
|
165 | |||
166 | bundle |
|
166 | bundle | |
167 |
|
167 | |||
168 | $ hg bundle --base null ../kw.hg |
|
168 | $ hg bundle --base null ../kw.hg | |
169 | 2 changesets found |
|
169 | 2 changesets found | |
170 | $ cd .. |
|
170 | $ cd .. | |
171 | $ hg init Test |
|
171 | $ hg init Test | |
172 | $ cd Test |
|
172 | $ cd Test | |
173 |
|
173 | |||
174 | Notify on pull to check whether keywords stay as is in email |
|
174 | Notify on pull to check whether keywords stay as is in email | |
175 | ie. if patch.diff wrapper acts as it should |
|
175 | ie. if patch.diff wrapper acts as it should | |
176 |
|
176 | |||
177 | $ cat <<EOF >> $HGRCPATH |
|
177 | $ cat <<EOF >> $HGRCPATH | |
178 | > [hooks] |
|
178 | > [hooks] | |
179 | > incoming.notify = python:hgext.notify.hook |
|
179 | > incoming.notify = python:hgext.notify.hook | |
180 | > [notify] |
|
180 | > [notify] | |
181 | > sources = pull |
|
181 | > sources = pull | |
182 | > diffstat = False |
|
182 | > diffstat = False | |
183 | > [reposubs] |
|
183 | > [reposubs] | |
184 | > * = Test |
|
184 | > * = Test | |
185 | > EOF |
|
185 | > EOF | |
186 |
|
186 | |||
187 | Pull from bundle and trigger notify |
|
187 | Pull from bundle and trigger notify | |
188 |
|
188 | |||
189 | $ hg pull -u ../kw.hg |
|
189 | $ hg pull -u ../kw.hg | |
190 | pulling from ../kw.hg |
|
190 | pulling from ../kw.hg | |
191 | requesting all changes |
|
191 | requesting all changes | |
192 | adding changesets |
|
192 | adding changesets | |
193 | adding manifests |
|
193 | adding manifests | |
194 | adding file changes |
|
194 | adding file changes | |
195 | added 2 changesets with 3 changes to 3 files |
|
195 | added 2 changesets with 3 changes to 3 files | |
196 | Content-Type: text/plain; charset="us-ascii" |
|
196 | Content-Type: text/plain; charset="us-ascii" | |
197 | MIME-Version: 1.0 |
|
197 | MIME-Version: 1.0 | |
198 | Content-Transfer-Encoding: 7bit |
|
198 | Content-Transfer-Encoding: 7bit | |
199 | Date: * (glob) |
|
199 | Date: * (glob) | |
200 | Subject: changeset in * (glob) |
|
200 | Subject: changeset in * (glob) | |
201 | From: mercurial |
|
201 | From: mercurial | |
202 | X-Hg-Notification: changeset a2392c293916 |
|
202 | X-Hg-Notification: changeset a2392c293916 | |
203 | Message-Id: <hg.a2392c293916*> (glob) |
|
203 | Message-Id: <hg.a2392c293916*> (glob) | |
204 | To: Test |
|
204 | To: Test | |
205 |
|
205 | |||
206 | changeset a2392c293916 in * (glob) |
|
206 | changeset a2392c293916 in * (glob) | |
207 | details: *cmd=changeset;node=a2392c293916 (glob) |
|
207 | details: *cmd=changeset;node=a2392c293916 (glob) | |
208 | description: |
|
208 | description: | |
209 | addsym |
|
209 | addsym | |
210 |
|
210 | |||
211 | diffs (6 lines): |
|
211 | diffs (6 lines): | |
212 |
|
212 | |||
213 | diff -r 000000000000 -r a2392c293916 sym |
|
213 | diff -r 000000000000 -r a2392c293916 sym | |
214 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
214 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
215 | +++ b/sym Sat Feb 09 20:25:47 2008 +0100 |
|
215 | +++ b/sym Sat Feb 09 20:25:47 2008 +0100 | |
216 | @@ -0,0 +1,1 @@ |
|
216 | @@ -0,0 +1,1 @@ | |
217 | +a |
|
217 | +a | |
218 | \ No newline at end of file |
|
218 | \ No newline at end of file | |
219 | Content-Type: text/plain; charset="us-ascii" |
|
219 | Content-Type: text/plain; charset="us-ascii" | |
220 | MIME-Version: 1.0 |
|
220 | MIME-Version: 1.0 | |
221 | Content-Transfer-Encoding: 7bit |
|
221 | Content-Transfer-Encoding: 7bit | |
222 | Date:* (glob) |
|
222 | Date:* (glob) | |
223 | Subject: changeset in* (glob) |
|
223 | Subject: changeset in* (glob) | |
224 | From: User Name <user@example.com> |
|
224 | From: User Name <user@example.com> | |
225 | X-Hg-Notification: changeset ef63ca68695b |
|
225 | X-Hg-Notification: changeset ef63ca68695b | |
226 | Message-Id: <hg.ef63ca68695b*> (glob) |
|
226 | Message-Id: <hg.ef63ca68695b*> (glob) | |
227 | To: Test |
|
227 | To: Test | |
228 |
|
228 | |||
229 | changeset ef63ca68695b in * (glob) |
|
229 | changeset ef63ca68695b in * (glob) | |
230 | details: *cmd=changeset;node=ef63ca68695b (glob) |
|
230 | details: *cmd=changeset;node=ef63ca68695b (glob) | |
231 | description: |
|
231 | description: | |
232 | absym |
|
232 | absym | |
233 |
|
233 | |||
234 | diffs (12 lines): |
|
234 | diffs (12 lines): | |
235 |
|
235 | |||
236 | diff -r a2392c293916 -r ef63ca68695b a |
|
236 | diff -r a2392c293916 -r ef63ca68695b a | |
237 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
237 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
238 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
238 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
239 | @@ -0,0 +1,3 @@ |
|
239 | @@ -0,0 +1,3 @@ | |
240 | +expand $Id$ |
|
240 | +expand $Id$ | |
241 | +do not process $Id: |
|
241 | +do not process $Id: | |
242 | +xxx $ |
|
242 | +xxx $ | |
243 | diff -r a2392c293916 -r ef63ca68695b b |
|
243 | diff -r a2392c293916 -r ef63ca68695b b | |
244 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
244 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
245 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
245 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 | |
246 | @@ -0,0 +1,1 @@ |
|
246 | @@ -0,0 +1,1 @@ | |
247 | +ignore $Id$ |
|
247 | +ignore $Id$ | |
248 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
248 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
249 |
|
249 | |||
250 | Remove notify config |
|
250 | $ cp $HGRCPATH.nohooks $HGRCPATH | |
251 |
|
||||
252 | $ sed -e '/\[hooks\]/,$ d' "$HGRCPATH" > $HGRCPATH.nonotify |
|
|||
253 | $ mv "$HGRCPATH".nonotify "$HGRCPATH" |
|
|||
254 |
|
251 | |||
255 | Touch files and check with status |
|
252 | Touch files and check with status | |
256 |
|
253 | |||
257 | $ touch a b |
|
254 | $ touch a b | |
258 | $ hg status |
|
255 | $ hg status | |
259 |
|
256 | |||
260 | Update and expand |
|
257 | Update and expand | |
261 |
|
258 | |||
262 | $ rm sym a b |
|
259 | $ rm sym a b | |
263 | $ hg update -C |
|
260 | $ hg update -C | |
264 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
261 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
265 | $ cat a b |
|
262 | $ cat a b | |
266 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
263 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
267 | do not process $Id: |
|
264 | do not process $Id: | |
268 | xxx $ |
|
265 | xxx $ | |
269 | ignore $Id$ |
|
266 | ignore $Id$ | |
270 |
|
267 | |||
271 | Check whether expansion is filewise |
|
268 | Check whether expansion is filewise | |
272 |
|
269 | |||
273 | $ echo '$Id$' > c |
|
270 | $ echo '$Id$' > c | |
274 | $ echo 'tests for different changenodes' >> c |
|
271 | $ echo 'tests for different changenodes' >> c | |
275 |
|
272 | |||
276 | commit file c |
|
273 | commit file c | |
277 |
|
274 | |||
278 | $ hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>' |
|
275 | $ hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>' | |
279 | adding c |
|
276 | adding c | |
280 |
|
277 | |||
281 | force expansion |
|
278 | force expansion | |
282 |
|
279 | |||
283 | $ hg -v kwexpand |
|
280 | $ hg -v kwexpand | |
284 | overwriting a expanding keywords |
|
281 | overwriting a expanding keywords | |
285 | overwriting c expanding keywords |
|
282 | overwriting c expanding keywords | |
286 |
|
283 | |||
287 | compare changenodes in a and c |
|
284 | compare changenodes in a and c | |
288 |
|
285 | |||
289 | $ cat a c |
|
286 | $ cat a c | |
290 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
287 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
291 | do not process $Id: |
|
288 | do not process $Id: | |
292 | xxx $ |
|
289 | xxx $ | |
293 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
|
290 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ | |
294 | tests for different changenodes |
|
291 | tests for different changenodes | |
295 |
|
292 | |||
296 | record chunk |
|
293 | record chunk | |
297 |
|
294 | |||
298 | $ python -c \ |
|
295 | $ python -c \ | |
299 | > 'l=open("a").readlines();l.insert(1,"foo\n");l.append("bar\n");open("a","w").writelines(l);' |
|
296 | > 'l=open("a").readlines();l.insert(1,"foo\n");l.append("bar\n");open("a","w").writelines(l);' | |
300 | $ hg record -d '1 10' -m rectest<<EOF |
|
297 | $ hg record -d '1 10' -m rectest<<EOF | |
301 | > y |
|
298 | > y | |
302 | > y |
|
299 | > y | |
303 | > n |
|
300 | > n | |
304 | > EOF |
|
301 | > EOF | |
305 | diff --git a/a b/a |
|
302 | diff --git a/a b/a | |
306 | 2 hunks, 2 lines changed |
|
303 | 2 hunks, 2 lines changed | |
307 | examine changes to 'a'? [Ynsfdaq?] |
|
304 | examine changes to 'a'? [Ynsfdaq?] | |
308 | @@ -1,3 +1,4 @@ |
|
305 | @@ -1,3 +1,4 @@ | |
309 | expand $Id$ |
|
306 | expand $Id$ | |
310 | +foo |
|
307 | +foo | |
311 | do not process $Id: |
|
308 | do not process $Id: | |
312 | xxx $ |
|
309 | xxx $ | |
313 | record change 1/2 to 'a'? [Ynsfdaq?] |
|
310 | record change 1/2 to 'a'? [Ynsfdaq?] | |
314 | @@ -2,2 +3,3 @@ |
|
311 | @@ -2,2 +3,3 @@ | |
315 | do not process $Id: |
|
312 | do not process $Id: | |
316 | xxx $ |
|
313 | xxx $ | |
317 | +bar |
|
314 | +bar | |
318 | record change 2/2 to 'a'? [Ynsfdaq?] |
|
315 | record change 2/2 to 'a'? [Ynsfdaq?] | |
319 |
|
316 | |||
320 | $ hg identify |
|
317 | $ hg identify | |
321 | d17e03c92c97+ tip |
|
318 | d17e03c92c97+ tip | |
322 | $ hg status |
|
319 | $ hg status | |
323 | M a |
|
320 | M a | |
324 |
|
321 | |||
325 | Cat modified file a |
|
322 | Cat modified file a | |
326 |
|
323 | |||
327 | $ cat a |
|
324 | $ cat a | |
328 | expand $Id: a,v d17e03c92c97 1970/01/01 00:00:01 test $ |
|
325 | expand $Id: a,v d17e03c92c97 1970/01/01 00:00:01 test $ | |
329 | foo |
|
326 | foo | |
330 | do not process $Id: |
|
327 | do not process $Id: | |
331 | xxx $ |
|
328 | xxx $ | |
332 | bar |
|
329 | bar | |
333 |
|
330 | |||
334 | Diff remaining chunk |
|
331 | Diff remaining chunk | |
335 |
|
332 | |||
336 | $ hg diff |
|
333 | $ hg diff | |
337 | diff -r d17e03c92c97 a |
|
334 | diff -r d17e03c92c97 a | |
338 | --- a/a Wed Dec 31 23:59:51 1969 -0000 |
|
335 | --- a/a Wed Dec 31 23:59:51 1969 -0000 | |
339 | +++ b/a * (glob) |
|
336 | +++ b/a * (glob) | |
340 | @@ -2,3 +2,4 @@ |
|
337 | @@ -2,3 +2,4 @@ | |
341 | foo |
|
338 | foo | |
342 | do not process $Id: |
|
339 | do not process $Id: | |
343 | xxx $ |
|
340 | xxx $ | |
344 | +bar |
|
341 | +bar | |
345 |
|
342 | |||
346 | $ hg rollback |
|
343 | $ hg rollback | |
347 | rolling back to revision 2 (undo commit) |
|
344 | rolling back to revision 2 (undo commit) | |
348 |
|
345 | |||
349 | Record all chunks in file a |
|
346 | Record all chunks in file a | |
350 |
|
347 | |||
351 | $ echo foo > msg |
|
348 | $ echo foo > msg | |
352 |
|
349 | |||
353 | - do not use "hg record -m" here! |
|
350 | - do not use "hg record -m" here! | |
354 |
|
351 | |||
355 | $ hg record -l msg -d '1 11'<<EOF |
|
352 | $ hg record -l msg -d '1 11'<<EOF | |
356 | > y |
|
353 | > y | |
357 | > y |
|
354 | > y | |
358 | > y |
|
355 | > y | |
359 | > EOF |
|
356 | > EOF | |
360 | diff --git a/a b/a |
|
357 | diff --git a/a b/a | |
361 | 2 hunks, 2 lines changed |
|
358 | 2 hunks, 2 lines changed | |
362 | examine changes to 'a'? [Ynsfdaq?] |
|
359 | examine changes to 'a'? [Ynsfdaq?] | |
363 | @@ -1,3 +1,4 @@ |
|
360 | @@ -1,3 +1,4 @@ | |
364 | expand $Id$ |
|
361 | expand $Id$ | |
365 | +foo |
|
362 | +foo | |
366 | do not process $Id: |
|
363 | do not process $Id: | |
367 | xxx $ |
|
364 | xxx $ | |
368 | record change 1/2 to 'a'? [Ynsfdaq?] |
|
365 | record change 1/2 to 'a'? [Ynsfdaq?] | |
369 | @@ -2,2 +3,3 @@ |
|
366 | @@ -2,2 +3,3 @@ | |
370 | do not process $Id: |
|
367 | do not process $Id: | |
371 | xxx $ |
|
368 | xxx $ | |
372 | +bar |
|
369 | +bar | |
373 | record change 2/2 to 'a'? [Ynsfdaq?] |
|
370 | record change 2/2 to 'a'? [Ynsfdaq?] | |
374 |
|
371 | |||
375 | File a should be clean |
|
372 | File a should be clean | |
376 |
|
373 | |||
377 | $ hg status -A a |
|
374 | $ hg status -A a | |
378 | C a |
|
375 | C a | |
379 | $ rm msg |
|
376 | $ rm msg | |
380 |
|
377 | |||
381 | rollback and revert expansion |
|
378 | rollback and revert expansion | |
382 |
|
379 | |||
383 | $ cat a |
|
380 | $ cat a | |
384 | expand $Id: a,v 59f969a3b52c 1970/01/01 00:00:01 test $ |
|
381 | expand $Id: a,v 59f969a3b52c 1970/01/01 00:00:01 test $ | |
385 | foo |
|
382 | foo | |
386 | do not process $Id: |
|
383 | do not process $Id: | |
387 | xxx $ |
|
384 | xxx $ | |
388 | bar |
|
385 | bar | |
389 | $ hg --verbose rollback |
|
386 | $ hg --verbose rollback | |
390 | rolling back to revision 2 (undo commit) |
|
387 | rolling back to revision 2 (undo commit) | |
391 | overwriting a expanding keywords |
|
388 | overwriting a expanding keywords | |
392 | $ hg status a |
|
389 | $ hg status a | |
393 | M a |
|
390 | M a | |
394 | $ cat a |
|
391 | $ cat a | |
395 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
392 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
396 | foo |
|
393 | foo | |
397 | do not process $Id: |
|
394 | do not process $Id: | |
398 | xxx $ |
|
395 | xxx $ | |
399 | bar |
|
396 | bar | |
400 | $ echo '$Id$' > y |
|
397 | $ echo '$Id$' > y | |
401 | $ echo '$Id$' > z |
|
398 | $ echo '$Id$' > z | |
402 | $ hg add y |
|
399 | $ hg add y | |
403 | $ hg commit -Am "rollback only" z |
|
400 | $ hg commit -Am "rollback only" z | |
404 | $ cat z |
|
401 | $ cat z | |
405 | $Id: z,v 45a5d3adce53 1970/01/01 00:00:00 test $ |
|
402 | $Id: z,v 45a5d3adce53 1970/01/01 00:00:00 test $ | |
406 | $ hg --verbose rollback |
|
403 | $ hg --verbose rollback | |
407 | rolling back to revision 2 (undo commit) |
|
404 | rolling back to revision 2 (undo commit) | |
408 | overwriting z shrinking keywords |
|
405 | overwriting z shrinking keywords | |
409 |
|
406 | |||
410 | Only z should be overwritten |
|
407 | Only z should be overwritten | |
411 |
|
408 | |||
412 | $ hg status a y z |
|
409 | $ hg status a y z | |
413 | M a |
|
410 | M a | |
414 | A y |
|
411 | A y | |
415 | A z |
|
412 | A z | |
416 | $ cat z |
|
413 | $ cat z | |
417 | $Id$ |
|
414 | $Id$ | |
418 | $ hg forget y z |
|
415 | $ hg forget y z | |
419 | $ rm y z |
|
416 | $ rm y z | |
420 |
|
417 | |||
421 | $ hg update -C |
|
418 | $ hg update -C | |
422 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
419 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
423 |
|
420 | |||
424 | Test patch queue repo |
|
421 | Test patch queue repo | |
425 |
|
422 | |||
426 | $ hg init --mq |
|
423 | $ hg init --mq | |
427 | $ hg qimport -r tip -n mqtest.diff |
|
424 | $ hg qimport -r tip -n mqtest.diff | |
428 | $ hg commit --mq -m mqtest |
|
425 | $ hg commit --mq -m mqtest | |
429 |
|
426 | |||
430 | Keywords should not be expanded in patch |
|
427 | Keywords should not be expanded in patch | |
431 |
|
428 | |||
432 | $ cat .hg/patches/mqtest.diff |
|
429 | $ cat .hg/patches/mqtest.diff | |
433 | # HG changeset patch |
|
430 | # HG changeset patch | |
434 | # User User Name <user@example.com> |
|
431 | # User User Name <user@example.com> | |
435 | # Date 1 0 |
|
432 | # Date 1 0 | |
436 | # Node ID 40a904bbbe4cd4ab0a1f28411e35db26341a40ad |
|
433 | # Node ID 40a904bbbe4cd4ab0a1f28411e35db26341a40ad | |
437 | # Parent ef63ca68695bc9495032c6fda1350c71e6d256e9 |
|
434 | # Parent ef63ca68695bc9495032c6fda1350c71e6d256e9 | |
438 | cndiff |
|
435 | cndiff | |
439 |
|
436 | |||
440 | diff -r ef63ca68695b -r 40a904bbbe4c c |
|
437 | diff -r ef63ca68695b -r 40a904bbbe4c c | |
441 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
438 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
442 | +++ b/c Thu Jan 01 00:00:01 1970 +0000 |
|
439 | +++ b/c Thu Jan 01 00:00:01 1970 +0000 | |
443 | @@ -0,0 +1,2 @@ |
|
440 | @@ -0,0 +1,2 @@ | |
444 | +$Id$ |
|
441 | +$Id$ | |
445 | +tests for different changenodes |
|
442 | +tests for different changenodes | |
446 |
|
443 | |||
447 | $ hg qpop |
|
444 | $ hg qpop | |
448 | popping mqtest.diff |
|
445 | popping mqtest.diff | |
449 | patch queue now empty |
|
446 | patch queue now empty | |
450 |
|
447 | |||
451 | qgoto, implying qpush, should expand |
|
448 | qgoto, implying qpush, should expand | |
452 |
|
449 | |||
453 | $ hg qgoto mqtest.diff |
|
450 | $ hg qgoto mqtest.diff | |
454 | applying mqtest.diff |
|
451 | applying mqtest.diff | |
455 | now at: mqtest.diff |
|
452 | now at: mqtest.diff | |
456 | $ cat c |
|
453 | $ cat c | |
457 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
|
454 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ | |
458 | tests for different changenodes |
|
455 | tests for different changenodes | |
459 | $ hg cat c |
|
456 | $ hg cat c | |
460 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
|
457 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ | |
461 | tests for different changenodes |
|
458 | tests for different changenodes | |
462 |
|
459 | |||
463 | Keywords should not be expanded in filelog |
|
460 | Keywords should not be expanded in filelog | |
464 |
|
461 | |||
465 | $ hg --config 'extensions.keyword=!' cat c |
|
462 | $ hg --config 'extensions.keyword=!' cat c | |
466 | $Id$ |
|
463 | $Id$ | |
467 | tests for different changenodes |
|
464 | tests for different changenodes | |
468 |
|
465 | |||
469 | qpop and move on |
|
466 | qpop and move on | |
470 |
|
467 | |||
471 | $ hg qpop |
|
468 | $ hg qpop | |
472 | popping mqtest.diff |
|
469 | popping mqtest.diff | |
473 | patch queue now empty |
|
470 | patch queue now empty | |
474 |
|
471 | |||
475 | Copy and show added kwfiles |
|
472 | Copy and show added kwfiles | |
476 |
|
473 | |||
477 | $ hg cp a c |
|
474 | $ hg cp a c | |
478 | $ hg kwfiles |
|
475 | $ hg kwfiles | |
479 | a |
|
476 | a | |
480 | c |
|
477 | c | |
481 |
|
478 | |||
482 | Commit and show expansion in original and copy |
|
479 | Commit and show expansion in original and copy | |
483 |
|
480 | |||
484 | $ hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>' |
|
481 | $ hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>' | |
485 | c |
|
482 | c | |
486 | c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292 |
|
483 | c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292 | |
487 | overwriting c expanding keywords |
|
484 | overwriting c expanding keywords | |
488 | committed changeset 2:25736cf2f5cbe41f6be4e6784ef6ecf9f3bbcc7d |
|
485 | committed changeset 2:25736cf2f5cbe41f6be4e6784ef6ecf9f3bbcc7d | |
489 | $ cat a c |
|
486 | $ cat a c | |
490 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
487 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
491 | do not process $Id: |
|
488 | do not process $Id: | |
492 | xxx $ |
|
489 | xxx $ | |
493 | expand $Id: c,v 25736cf2f5cb 1970/01/01 00:00:01 user $ |
|
490 | expand $Id: c,v 25736cf2f5cb 1970/01/01 00:00:01 user $ | |
494 | do not process $Id: |
|
491 | do not process $Id: | |
495 | xxx $ |
|
492 | xxx $ | |
496 |
|
493 | |||
497 | Touch copied c and check its status |
|
494 | Touch copied c and check its status | |
498 |
|
495 | |||
499 | $ touch c |
|
496 | $ touch c | |
500 | $ hg status |
|
497 | $ hg status | |
501 |
|
498 | |||
502 | Copy kwfile to keyword ignored file unexpanding keywords |
|
499 | Copy kwfile to keyword ignored file unexpanding keywords | |
503 |
|
500 | |||
504 | $ hg --verbose copy a i |
|
501 | $ hg --verbose copy a i | |
505 | copying a to i |
|
502 | copying a to i | |
506 | overwriting i shrinking keywords |
|
503 | overwriting i shrinking keywords | |
507 | $ head -n 1 i |
|
504 | $ head -n 1 i | |
508 | expand $Id$ |
|
505 | expand $Id$ | |
509 | $ hg forget i |
|
506 | $ hg forget i | |
510 | $ rm i |
|
507 | $ rm i | |
511 |
|
508 | |||
512 | Copy ignored file to ignored file: no overwriting |
|
509 | Copy ignored file to ignored file: no overwriting | |
513 |
|
510 | |||
514 | $ hg --verbose copy b i |
|
511 | $ hg --verbose copy b i | |
515 | copying b to i |
|
512 | copying b to i | |
516 | $ hg forget i |
|
513 | $ hg forget i | |
517 | $ rm i |
|
514 | $ rm i | |
518 |
|
515 | |||
519 | cp symlink (becomes regular file), and hg copy after |
|
516 | cp symlink (becomes regular file), and hg copy after | |
520 |
|
517 | |||
521 | $ cp sym i |
|
518 | $ cp sym i | |
522 | $ ls -l i |
|
519 | $ ls -l i | |
523 | -rw-r--r-- * (glob) |
|
520 | -rw-r--r-- * (glob) | |
524 | $ head -1 i |
|
521 | $ head -1 i | |
525 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
522 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
526 | $ hg copy --after --verbose sym i |
|
523 | $ hg copy --after --verbose sym i | |
527 | copying sym to i |
|
524 | copying sym to i | |
528 | overwriting i shrinking keywords |
|
525 | overwriting i shrinking keywords | |
529 | $ head -1 i |
|
526 | $ head -1 i | |
530 | expand $Id$ |
|
527 | expand $Id$ | |
531 | $ hg forget i |
|
528 | $ hg forget i | |
532 | $ rm i |
|
529 | $ rm i | |
533 |
|
530 | |||
534 | Test different options of hg kwfiles |
|
531 | Test different options of hg kwfiles | |
535 |
|
532 | |||
536 | $ hg kwfiles |
|
533 | $ hg kwfiles | |
537 | a |
|
534 | a | |
538 | c |
|
535 | c | |
539 | $ hg -v kwfiles --ignore |
|
536 | $ hg -v kwfiles --ignore | |
540 | I b |
|
537 | I b | |
541 | I sym |
|
538 | I sym | |
542 | $ hg kwfiles --all |
|
539 | $ hg kwfiles --all | |
543 | K a |
|
540 | K a | |
544 | K c |
|
541 | K c | |
545 | I b |
|
542 | I b | |
546 | I sym |
|
543 | I sym | |
547 |
|
544 | |||
548 | Diff specific revision |
|
545 | Diff specific revision | |
549 |
|
546 | |||
550 | $ hg diff --rev 1 |
|
547 | $ hg diff --rev 1 | |
551 | diff -r ef63ca68695b c |
|
548 | diff -r ef63ca68695b c | |
552 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
549 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
553 | +++ b/c * (glob) |
|
550 | +++ b/c * (glob) | |
554 | @@ -0,0 +1,3 @@ |
|
551 | @@ -0,0 +1,3 @@ | |
555 | +expand $Id$ |
|
552 | +expand $Id$ | |
556 | +do not process $Id: |
|
553 | +do not process $Id: | |
557 | +xxx $ |
|
554 | +xxx $ | |
558 |
|
555 | |||
559 | Status after rollback: |
|
556 | Status after rollback: | |
560 |
|
557 | |||
561 | $ hg rollback |
|
558 | $ hg rollback | |
562 | rolling back to revision 1 (undo commit) |
|
559 | rolling back to revision 1 (undo commit) | |
563 | $ hg status |
|
560 | $ hg status | |
564 | A c |
|
561 | A c | |
565 | $ hg update --clean |
|
562 | $ hg update --clean | |
566 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
563 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
567 |
|
564 | |||
568 | Custom keywordmaps as argument to kwdemo |
|
565 | Custom keywordmaps as argument to kwdemo | |
569 |
|
566 | |||
570 | $ hg --quiet kwdemo "Xinfo = {author}: {desc}" |
|
567 | $ hg --quiet kwdemo "Xinfo = {author}: {desc}" | |
571 | [extensions] |
|
568 | [extensions] | |
572 | keyword = |
|
569 | keyword = | |
573 | [keyword] |
|
570 | [keyword] | |
574 | ** = |
|
571 | ** = | |
575 | b = ignore |
|
572 | b = ignore | |
576 | demo.txt = |
|
573 | demo.txt = | |
577 | i = ignore |
|
574 | i = ignore | |
578 | [keywordmaps] |
|
575 | [keywordmaps] | |
579 | Xinfo = {author}: {desc} |
|
576 | Xinfo = {author}: {desc} | |
580 | $Xinfo: test: hg keyword configuration and expansion example $ |
|
577 | $Xinfo: test: hg keyword configuration and expansion example $ | |
581 |
|
578 | |||
582 | Configure custom keywordmaps |
|
579 | Configure custom keywordmaps | |
583 |
|
580 | |||
584 | $ cat <<EOF >>$HGRCPATH |
|
581 | $ cat <<EOF >>$HGRCPATH | |
585 | > [keywordmaps] |
|
582 | > [keywordmaps] | |
586 | > Id = {file} {node|short} {date|rfc822date} {author|user} |
|
583 | > Id = {file} {node|short} {date|rfc822date} {author|user} | |
587 | > Xinfo = {author}: {desc} |
|
584 | > Xinfo = {author}: {desc} | |
588 | > EOF |
|
585 | > EOF | |
589 |
|
586 | |||
590 | Cat and hg cat files before custom expansion |
|
587 | Cat and hg cat files before custom expansion | |
591 |
|
588 | |||
592 | $ cat a b |
|
589 | $ cat a b | |
593 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
590 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
594 | do not process $Id: |
|
591 | do not process $Id: | |
595 | xxx $ |
|
592 | xxx $ | |
596 | ignore $Id$ |
|
593 | ignore $Id$ | |
597 | $ hg cat sym a b && echo |
|
594 | $ hg cat sym a b && echo | |
598 | expand $Id: a ef63ca68695b Thu, 01 Jan 1970 00:00:00 +0000 user $ |
|
595 | expand $Id: a ef63ca68695b Thu, 01 Jan 1970 00:00:00 +0000 user $ | |
599 | do not process $Id: |
|
596 | do not process $Id: | |
600 | xxx $ |
|
597 | xxx $ | |
601 | ignore $Id$ |
|
598 | ignore $Id$ | |
602 | a* (glob) |
|
599 | a* (glob) | |
603 |
|
600 | |||
604 | Write custom keyword and prepare multiline commit message |
|
601 | Write custom keyword and prepare multiline commit message | |
605 |
|
602 | |||
606 | $ echo '$Xinfo$' >> a |
|
603 | $ echo '$Xinfo$' >> a | |
607 | $ cat <<EOF >> log |
|
604 | $ cat <<EOF >> log | |
608 | > firstline |
|
605 | > firstline | |
609 | > secondline |
|
606 | > secondline | |
610 | > EOF |
|
607 | > EOF | |
611 |
|
608 | |||
612 | Interrupted commit should not change state |
|
609 | Interrupted commit should not change state | |
613 |
|
610 | |||
614 | $ hg commit |
|
611 | $ hg commit | |
615 | abort: empty commit message |
|
612 | abort: empty commit message | |
616 | [255] |
|
613 | [255] | |
617 | $ hg status |
|
614 | $ hg status | |
618 | M a |
|
615 | M a | |
619 | ? c |
|
616 | ? c | |
620 | ? log |
|
617 | ? log | |
621 |
|
618 | |||
622 | Commit with multiline message and custom expansion |
|
619 | Commit with multiline message and custom expansion | |
623 |
|
620 | |||
624 | $ hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>' |
|
621 | $ hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>' | |
625 | a |
|
622 | a | |
626 | overwriting a expanding keywords |
|
623 | overwriting a expanding keywords | |
627 | committed changeset 2:bb948857c743469b22bbf51f7ec8112279ca5d83 |
|
624 | committed changeset 2:bb948857c743469b22bbf51f7ec8112279ca5d83 | |
628 | $ rm log |
|
625 | $ rm log | |
629 |
|
626 | |||
630 | Stat, verify and show custom expansion (firstline) |
|
627 | Stat, verify and show custom expansion (firstline) | |
631 |
|
628 | |||
632 | $ hg status |
|
629 | $ hg status | |
633 | ? c |
|
630 | ? c | |
634 | $ hg verify |
|
631 | $ hg verify | |
635 | checking changesets |
|
632 | checking changesets | |
636 | checking manifests |
|
633 | checking manifests | |
637 | crosschecking files in changesets and manifests |
|
634 | crosschecking files in changesets and manifests | |
638 | checking files |
|
635 | checking files | |
639 | 3 files, 3 changesets, 4 total revisions |
|
636 | 3 files, 3 changesets, 4 total revisions | |
640 | $ cat a b |
|
637 | $ cat a b | |
641 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
638 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
642 | do not process $Id: |
|
639 | do not process $Id: | |
643 | xxx $ |
|
640 | xxx $ | |
644 | $Xinfo: User Name <user@example.com>: firstline $ |
|
641 | $Xinfo: User Name <user@example.com>: firstline $ | |
645 | ignore $Id$ |
|
642 | ignore $Id$ | |
646 | $ hg cat sym a b && echo |
|
643 | $ hg cat sym a b && echo | |
647 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
644 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
648 | do not process $Id: |
|
645 | do not process $Id: | |
649 | xxx $ |
|
646 | xxx $ | |
650 | $Xinfo: User Name <user@example.com>: firstline $ |
|
647 | $Xinfo: User Name <user@example.com>: firstline $ | |
651 | ignore $Id$ |
|
648 | ignore $Id$ | |
652 | a* (glob) |
|
649 | a* (glob) | |
653 |
|
650 | |||
654 | annotate |
|
651 | annotate | |
655 |
|
652 | |||
656 | $ hg annotate a |
|
653 | $ hg annotate a | |
657 | 1: expand $Id$ |
|
654 | 1: expand $Id$ | |
658 | 1: do not process $Id: |
|
655 | 1: do not process $Id: | |
659 | 1: xxx $ |
|
656 | 1: xxx $ | |
660 | 2: $Xinfo$ |
|
657 | 2: $Xinfo$ | |
661 |
|
658 | |||
662 | remove with status checks |
|
659 | remove with status checks | |
663 |
|
660 | |||
664 | $ hg debugrebuildstate |
|
661 | $ hg debugrebuildstate | |
665 | $ hg remove a |
|
662 | $ hg remove a | |
666 | $ hg --debug commit -m rma |
|
663 | $ hg --debug commit -m rma | |
667 | committed changeset 3:d14c712653769de926994cf7fbb06c8fbd68f012 |
|
664 | committed changeset 3:d14c712653769de926994cf7fbb06c8fbd68f012 | |
668 | $ hg status |
|
665 | $ hg status | |
669 | ? c |
|
666 | ? c | |
670 |
|
667 | |||
671 | Rollback, revert, and check expansion |
|
668 | Rollback, revert, and check expansion | |
672 |
|
669 | |||
673 | $ hg rollback |
|
670 | $ hg rollback | |
674 | rolling back to revision 2 (undo commit) |
|
671 | rolling back to revision 2 (undo commit) | |
675 | $ hg status |
|
672 | $ hg status | |
676 | R a |
|
673 | R a | |
677 | ? c |
|
674 | ? c | |
678 | $ hg revert --no-backup --rev tip a |
|
675 | $ hg revert --no-backup --rev tip a | |
679 | $ cat a |
|
676 | $ cat a | |
680 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
677 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
681 | do not process $Id: |
|
678 | do not process $Id: | |
682 | xxx $ |
|
679 | xxx $ | |
683 | $Xinfo: User Name <user@example.com>: firstline $ |
|
680 | $Xinfo: User Name <user@example.com>: firstline $ | |
684 |
|
681 | |||
685 | Clone to test global and local configurations |
|
682 | Clone to test global and local configurations | |
686 |
|
683 | |||
687 | $ cd .. |
|
684 | $ cd .. | |
688 |
|
685 | |||
689 | Expansion in destinaton with global configuration |
|
686 | Expansion in destinaton with global configuration | |
690 |
|
687 | |||
691 | $ hg --quiet clone Test globalconf |
|
688 | $ hg --quiet clone Test globalconf | |
692 | $ cat globalconf/a |
|
689 | $ cat globalconf/a | |
693 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
690 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
694 | do not process $Id: |
|
691 | do not process $Id: | |
695 | xxx $ |
|
692 | xxx $ | |
696 | $Xinfo: User Name <user@example.com>: firstline $ |
|
693 | $Xinfo: User Name <user@example.com>: firstline $ | |
697 |
|
694 | |||
698 | No expansion in destination with local configuration in origin only |
|
695 | No expansion in destination with local configuration in origin only | |
699 |
|
696 | |||
700 | $ hg --quiet --config 'keyword.**=ignore' clone Test localconf |
|
697 | $ hg --quiet --config 'keyword.**=ignore' clone Test localconf | |
701 | $ cat localconf/a |
|
698 | $ cat localconf/a | |
702 | expand $Id$ |
|
699 | expand $Id$ | |
703 | do not process $Id: |
|
700 | do not process $Id: | |
704 | xxx $ |
|
701 | xxx $ | |
705 | $Xinfo$ |
|
702 | $Xinfo$ | |
706 |
|
703 | |||
707 | Clone to test incoming |
|
704 | Clone to test incoming | |
708 |
|
705 | |||
709 | $ hg clone -r1 Test Test-a |
|
706 | $ hg clone -r1 Test Test-a | |
710 | requesting all changes |
|
707 | requesting all changes | |
711 | adding changesets |
|
708 | adding changesets | |
712 | adding manifests |
|
709 | adding manifests | |
713 | adding file changes |
|
710 | adding file changes | |
714 | added 2 changesets with 3 changes to 3 files |
|
711 | added 2 changesets with 3 changes to 3 files | |
715 | updating to branch default |
|
712 | updating to branch default | |
716 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
713 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
717 | $ cd Test-a |
|
714 | $ cd Test-a | |
718 | $ cat <<EOF >> .hg/hgrc |
|
715 | $ cat <<EOF >> .hg/hgrc | |
719 | > [paths] |
|
716 | > [paths] | |
720 | > default = ../Test |
|
717 | > default = ../Test | |
721 | > EOF |
|
718 | > EOF | |
722 | $ hg incoming |
|
719 | $ hg incoming | |
723 | comparing with */Test (glob) |
|
720 | comparing with */Test (glob) | |
724 | searching for changes |
|
721 | searching for changes | |
725 | changeset: 2:bb948857c743 |
|
722 | changeset: 2:bb948857c743 | |
726 | tag: tip |
|
723 | tag: tip | |
727 | user: User Name <user@example.com> |
|
724 | user: User Name <user@example.com> | |
728 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
725 | date: Thu Jan 01 00:00:02 1970 +0000 | |
729 | summary: firstline |
|
726 | summary: firstline | |
730 |
|
727 | |||
731 | Imported patch should not be rejected |
|
728 | Imported patch should not be rejected | |
732 |
|
729 | |||
733 | $ sed -e 's/Id.*/& rejecttest/' a > a.new |
|
730 | $ python -c \ | |
734 | $ mv a.new a |
|
731 | > 'import re; s=re.sub("(Id.*)","\\1 rejecttest",open("a").read()); open("a","wb").write(s);' | |
735 | $ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' |
|
732 | $ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' | |
736 | a |
|
733 | a | |
737 | overwriting a expanding keywords |
|
734 | overwriting a expanding keywords | |
738 | committed changeset 2:85e279d709ffc28c9fdd1b868570985fc3d87082 |
|
735 | committed changeset 2:85e279d709ffc28c9fdd1b868570985fc3d87082 | |
739 | $ hg export -o ../rejecttest.diff tip |
|
736 | $ hg export -o ../rejecttest.diff tip | |
740 | $ cd ../Test |
|
737 | $ cd ../Test | |
741 | $ hg import ../rejecttest.diff |
|
738 | $ hg import ../rejecttest.diff | |
742 | applying ../rejecttest.diff |
|
739 | applying ../rejecttest.diff | |
743 | $ cat a b |
|
740 | $ cat a b | |
744 | expand $Id: a 4e0994474d25 Thu, 01 Jan 1970 00:00:03 +0000 user $ rejecttest |
|
741 | expand $Id: a 4e0994474d25 Thu, 01 Jan 1970 00:00:03 +0000 user $ rejecttest | |
745 | do not process $Id: rejecttest |
|
742 | do not process $Id: rejecttest | |
746 | xxx $ |
|
743 | xxx $ | |
747 | $Xinfo: User Name <user@example.com>: rejects? $ |
|
744 | $Xinfo: User Name <user@example.com>: rejects? $ | |
748 | ignore $Id$ |
|
745 | ignore $Id$ | |
749 |
|
746 | |||
750 | $ hg rollback |
|
747 | $ hg rollback | |
751 | rolling back to revision 2 (undo commit) |
|
748 | rolling back to revision 2 (undo commit) | |
752 | $ hg update --clean |
|
749 | $ hg update --clean | |
753 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
750 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
754 |
|
751 | |||
755 | kwexpand/kwshrink on selected files |
|
752 | kwexpand/kwshrink on selected files | |
756 |
|
753 | |||
757 | $ mkdir x |
|
754 | $ mkdir x | |
758 | $ hg copy a x/a |
|
755 | $ hg copy a x/a | |
759 | $ hg --verbose kwexpand a |
|
756 | $ hg --verbose kwexpand a | |
760 | overwriting a expanding keywords |
|
757 | overwriting a expanding keywords | |
761 |
|
758 | |||
762 | kwexpand x/a should abort |
|
759 | kwexpand x/a should abort | |
763 |
|
760 | |||
764 | $ hg --verbose kwexpand x/a |
|
761 | $ hg --verbose kwexpand x/a | |
765 | abort: outstanding uncommitted changes |
|
762 | abort: outstanding uncommitted changes | |
766 | [255] |
|
763 | [255] | |
767 | $ cd x |
|
764 | $ cd x | |
768 | $ hg --debug commit -m xa -d '3 0' -u 'User Name <user@example.com>' |
|
765 | $ hg --debug commit -m xa -d '3 0' -u 'User Name <user@example.com>' | |
769 | x/a |
|
766 | x/a | |
770 | x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e |
|
767 | x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e | |
771 | overwriting x/a expanding keywords |
|
768 | overwriting x/a expanding keywords | |
772 | committed changeset 3:b4560182a3f9a358179fd2d835c15e9da379c1e4 |
|
769 | committed changeset 3:b4560182a3f9a358179fd2d835c15e9da379c1e4 | |
773 | $ cat a |
|
770 | $ cat a | |
774 | expand $Id: x/a b4560182a3f9 Thu, 01 Jan 1970 00:00:03 +0000 user $ |
|
771 | expand $Id: x/a b4560182a3f9 Thu, 01 Jan 1970 00:00:03 +0000 user $ | |
775 | do not process $Id: |
|
772 | do not process $Id: | |
776 | xxx $ |
|
773 | xxx $ | |
777 | $Xinfo: User Name <user@example.com>: xa $ |
|
774 | $Xinfo: User Name <user@example.com>: xa $ | |
778 |
|
775 | |||
779 | kwshrink a inside directory x |
|
776 | kwshrink a inside directory x | |
780 |
|
777 | |||
781 | $ hg --verbose kwshrink a |
|
778 | $ hg --verbose kwshrink a | |
782 | overwriting x/a shrinking keywords |
|
779 | overwriting x/a shrinking keywords | |
783 | $ cat a |
|
780 | $ cat a | |
784 | expand $Id$ |
|
781 | expand $Id$ | |
785 | do not process $Id: |
|
782 | do not process $Id: | |
786 | xxx $ |
|
783 | xxx $ | |
787 | $Xinfo$ |
|
784 | $Xinfo$ | |
788 | $ cd .. |
|
785 | $ cd .. | |
789 |
|
786 | |||
790 | kwexpand nonexistent |
|
787 | kwexpand nonexistent | |
791 |
|
788 | |||
792 | $ hg kwexpand nonexistent |
|
789 | $ hg kwexpand nonexistent | |
793 | nonexistent:* (glob) |
|
790 | nonexistent:* (glob) | |
794 |
|
791 | |||
795 |
|
792 | |||
796 | hg serve |
|
793 | hg serve | |
797 | - expand with hgweb file |
|
794 | - expand with hgweb file | |
798 | - no expansion with hgweb annotate/changeset/filediff |
|
795 | - no expansion with hgweb annotate/changeset/filediff | |
799 | - check errors |
|
796 | - check errors | |
800 |
|
797 | |||
801 | $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
798 | $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log | |
802 | $ cat hg.pid >> $DAEMON_PIDS |
|
799 | $ cat hg.pid >> $DAEMON_PIDS | |
803 | $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/file/tip/a/?style=raw' |
|
800 | $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/file/tip/a/?style=raw' | |
804 | 200 Script output follows |
|
801 | 200 Script output follows | |
805 |
|
802 | |||
806 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
803 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
807 | do not process $Id: |
|
804 | do not process $Id: | |
808 | xxx $ |
|
805 | xxx $ | |
809 | $Xinfo: User Name <user@example.com>: firstline $ |
|
806 | $Xinfo: User Name <user@example.com>: firstline $ | |
810 | $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/annotate/tip/a/?style=raw' |
|
807 | $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/annotate/tip/a/?style=raw' | |
811 | 200 Script output follows |
|
808 | 200 Script output follows | |
812 |
|
809 | |||
813 |
|
810 | |||
814 | user@1: expand $Id$ |
|
811 | user@1: expand $Id$ | |
815 | user@1: do not process $Id: |
|
812 | user@1: do not process $Id: | |
816 | user@1: xxx $ |
|
813 | user@1: xxx $ | |
817 | user@2: $Xinfo$ |
|
814 | user@2: $Xinfo$ | |
818 |
|
815 | |||
819 |
|
816 | |||
820 |
|
817 | |||
821 |
|
818 | |||
822 | $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/rev/tip/?style=raw' |
|
819 | $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/rev/tip/?style=raw' | |
823 | 200 Script output follows |
|
820 | 200 Script output follows | |
824 |
|
821 | |||
825 |
|
822 | |||
826 | # HG changeset patch |
|
823 | # HG changeset patch | |
827 | # User User Name <user@example.com> |
|
824 | # User User Name <user@example.com> | |
828 | # Date 3 0 |
|
825 | # Date 3 0 | |
829 | # Node ID b4560182a3f9a358179fd2d835c15e9da379c1e4 |
|
826 | # Node ID b4560182a3f9a358179fd2d835c15e9da379c1e4 | |
830 | # Parent bb948857c743469b22bbf51f7ec8112279ca5d83 |
|
827 | # Parent bb948857c743469b22bbf51f7ec8112279ca5d83 | |
831 | xa |
|
828 | xa | |
832 |
|
829 | |||
833 | diff -r bb948857c743 -r b4560182a3f9 x/a |
|
830 | diff -r bb948857c743 -r b4560182a3f9 x/a | |
834 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
831 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
835 | +++ b/x/a Thu Jan 01 00:00:03 1970 +0000 |
|
832 | +++ b/x/a Thu Jan 01 00:00:03 1970 +0000 | |
836 | @@ -0,0 +1,4 @@ |
|
833 | @@ -0,0 +1,4 @@ | |
837 | +expand $Id$ |
|
834 | +expand $Id$ | |
838 | +do not process $Id: |
|
835 | +do not process $Id: | |
839 | +xxx $ |
|
836 | +xxx $ | |
840 | +$Xinfo$ |
|
837 | +$Xinfo$ | |
841 |
|
838 | |||
842 | $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/diff/bb948857c743/a?style=raw' |
|
839 | $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/diff/bb948857c743/a?style=raw' | |
843 | 200 Script output follows |
|
840 | 200 Script output follows | |
844 |
|
841 | |||
845 |
|
842 | |||
846 | diff -r ef63ca68695b -r bb948857c743 a |
|
843 | diff -r ef63ca68695b -r bb948857c743 a | |
847 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
844 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
848 | +++ b/a Thu Jan 01 00:00:02 1970 +0000 |
|
845 | +++ b/a Thu Jan 01 00:00:02 1970 +0000 | |
849 | @@ -1,3 +1,4 @@ |
|
846 | @@ -1,3 +1,4 @@ | |
850 | expand $Id$ |
|
847 | expand $Id$ | |
851 | do not process $Id: |
|
848 | do not process $Id: | |
852 | xxx $ |
|
849 | xxx $ | |
853 | +$Xinfo$ |
|
850 | +$Xinfo$ | |
854 |
|
851 | |||
855 |
|
852 | |||
856 |
|
853 | |||
857 |
|
854 | |||
858 | $ cat errors.log |
|
855 | $ cat errors.log | |
859 |
|
856 | |||
860 | Prepare merge and resolve tests |
|
857 | Prepare merge and resolve tests | |
861 |
|
858 | |||
862 | $ echo '$Id$' > m |
|
859 | $ echo '$Id$' > m | |
863 | $ hg add m |
|
860 | $ hg add m | |
864 | $ hg commit -m 4kw |
|
861 | $ hg commit -m 4kw | |
865 | $ echo foo >> m |
|
862 | $ echo foo >> m | |
866 | $ hg commit -m 5foo |
|
863 | $ hg commit -m 5foo | |
867 |
|
864 | |||
868 | simplemerge |
|
865 | simplemerge | |
869 |
|
866 | |||
870 | $ hg update 4 |
|
867 | $ hg update 4 | |
871 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
868 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
872 | $ echo foo >> m |
|
869 | $ echo foo >> m | |
873 | $ hg commit -m 6foo |
|
870 | $ hg commit -m 6foo | |
874 | created new head |
|
871 | created new head | |
875 | $ hg merge |
|
872 | $ hg merge | |
876 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
873 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
877 | (branch merge, don't forget to commit) |
|
874 | (branch merge, don't forget to commit) | |
878 | $ hg commit -m simplemerge |
|
875 | $ hg commit -m simplemerge | |
879 | $ cat m |
|
876 | $ cat m | |
880 | $Id: m 27d48ee14f67 Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
877 | $Id: m 27d48ee14f67 Thu, 01 Jan 1970 00:00:00 +0000 test $ | |
881 | foo |
|
878 | foo | |
882 |
|
879 | |||
883 | conflict: keyword should stay outside conflict zone |
|
880 | conflict: keyword should stay outside conflict zone | |
884 |
|
881 | |||
885 | $ hg update 4 |
|
882 | $ hg update 4 | |
886 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
883 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
887 | $ echo bar >> m |
|
884 | $ echo bar >> m | |
888 | $ hg commit -m 8bar |
|
885 | $ hg commit -m 8bar | |
889 | created new head |
|
886 | created new head | |
890 | $ hg merge |
|
887 | $ hg merge | |
891 | merging m |
|
888 | merging m | |
892 | warning: conflicts during merge. |
|
889 | warning: conflicts during merge. | |
893 | merging m failed! |
|
890 | merging m failed! | |
894 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
891 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
895 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
892 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
896 | [1] |
|
893 | [1] | |
897 | $ cat m |
|
894 | $ cat m | |
898 | $Id$ |
|
895 | $Id$ | |
899 | <<<<<<< local |
|
896 | <<<<<<< local | |
900 | bar |
|
897 | bar | |
901 | ======= |
|
898 | ======= | |
902 | foo |
|
899 | foo | |
903 | >>>>>>> other |
|
900 | >>>>>>> other | |
904 |
|
901 | |||
905 | resolve to local |
|
902 | resolve to local | |
906 |
|
903 | |||
907 | $ HGMERGE=internal:local hg resolve -a |
|
904 | $ HGMERGE=internal:local hg resolve -a | |
908 | $ hg commit -m localresolve |
|
905 | $ hg commit -m localresolve | |
909 | $ cat m |
|
906 | $ cat m | |
910 | $Id: m 41efa6d38e9b Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
907 | $Id: m 41efa6d38e9b Thu, 01 Jan 1970 00:00:00 +0000 test $ | |
911 | bar |
|
908 | bar | |
912 |
|
909 | |||
913 | Test restricted mode with transplant -b |
|
910 | Test restricted mode with transplant -b | |
914 |
|
911 | |||
915 | $ hg update 6 |
|
912 | $ hg update 6 | |
916 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
913 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
917 | $ hg branch foo |
|
914 | $ hg branch foo | |
918 | marked working directory as branch foo |
|
915 | marked working directory as branch foo | |
919 | $ mv a a.bak |
|
916 | $ mv a a.bak | |
920 | $ echo foobranch > a |
|
917 | $ echo foobranch > a | |
921 | $ cat a.bak >> a |
|
918 | $ cat a.bak >> a | |
922 | $ rm a.bak |
|
919 | $ rm a.bak | |
923 | $ hg commit -m 9foobranch |
|
920 | $ hg commit -m 9foobranch | |
924 | $ hg update default |
|
921 | $ hg update default | |
925 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
922 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
926 | $ hg -y transplant -b foo tip |
|
923 | $ hg -y transplant -b foo tip | |
927 | applying 4aa30d025d50 |
|
924 | applying 4aa30d025d50 | |
928 | 4aa30d025d50 transplanted to 5a4da427c162 |
|
925 | 4aa30d025d50 transplanted to 5a4da427c162 | |
929 |
|
926 | |||
930 | Expansion in changeset but not in file |
|
927 | Expansion in changeset but not in file | |
931 |
|
928 | |||
932 | $ hg tip -p |
|
929 | $ hg tip -p | |
933 | changeset: 11:5a4da427c162 |
|
930 | changeset: 11:5a4da427c162 | |
934 | tag: tip |
|
931 | tag: tip | |
935 | parent: 9:41efa6d38e9b |
|
932 | parent: 9:41efa6d38e9b | |
936 | user: test |
|
933 | user: test | |
937 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
934 | date: Thu Jan 01 00:00:00 1970 +0000 | |
938 | summary: 9foobranch |
|
935 | summary: 9foobranch | |
939 |
|
936 | |||
940 | diff -r 41efa6d38e9b -r 5a4da427c162 a |
|
937 | diff -r 41efa6d38e9b -r 5a4da427c162 a | |
941 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
938 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
942 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
939 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
943 | @@ -1,3 +1,4 @@ |
|
940 | @@ -1,3 +1,4 @@ | |
944 | +foobranch |
|
941 | +foobranch | |
945 | expand $Id$ |
|
942 | expand $Id$ | |
946 | do not process $Id: |
|
943 | do not process $Id: | |
947 | xxx $ |
|
944 | xxx $ | |
948 |
|
945 | |||
949 | $ head -n 2 a |
|
946 | $ head -n 2 a | |
950 | foobranch |
|
947 | foobranch | |
951 | expand $Id: a 5a4da427c162 Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
948 | expand $Id: a 5a4da427c162 Thu, 01 Jan 1970 00:00:00 +0000 test $ | |
952 |
|
949 | |||
953 | Turn off expansion |
|
950 | Turn off expansion | |
954 |
|
951 | |||
955 | $ hg -q rollback |
|
952 | $ hg -q rollback | |
956 | $ hg -q update -C |
|
953 | $ hg -q update -C | |
957 |
|
954 | |||
958 | kwshrink with unknown file u |
|
955 | kwshrink with unknown file u | |
959 |
|
956 | |||
960 | $ cp a u |
|
957 | $ cp a u | |
961 | $ hg --verbose kwshrink |
|
958 | $ hg --verbose kwshrink | |
962 | overwriting a shrinking keywords |
|
959 | overwriting a shrinking keywords | |
963 | overwriting m shrinking keywords |
|
960 | overwriting m shrinking keywords | |
964 | overwriting x/a shrinking keywords |
|
961 | overwriting x/a shrinking keywords | |
965 |
|
962 | |||
966 | Keywords shrunk in working directory, but not yet disabled |
|
963 | Keywords shrunk in working directory, but not yet disabled | |
967 | - cat shows unexpanded keywords |
|
964 | - cat shows unexpanded keywords | |
968 | - hg cat shows expanded keywords |
|
965 | - hg cat shows expanded keywords | |
969 |
|
966 | |||
970 | $ cat a b |
|
967 | $ cat a b | |
971 | expand $Id$ |
|
968 | expand $Id$ | |
972 | do not process $Id: |
|
969 | do not process $Id: | |
973 | xxx $ |
|
970 | xxx $ | |
974 | $Xinfo$ |
|
971 | $Xinfo$ | |
975 | ignore $Id$ |
|
972 | ignore $Id$ | |
976 | $ hg cat sym a b && echo |
|
973 | $ hg cat sym a b && echo | |
977 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
974 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
978 | do not process $Id: |
|
975 | do not process $Id: | |
979 | xxx $ |
|
976 | xxx $ | |
980 | $Xinfo: User Name <user@example.com>: firstline $ |
|
977 | $Xinfo: User Name <user@example.com>: firstline $ | |
981 | ignore $Id$ |
|
978 | ignore $Id$ | |
982 | a* (glob) |
|
979 | a* (glob) | |
983 |
|
980 | |||
984 | Now disable keyword expansion |
|
981 | Now disable keyword expansion | |
985 |
|
982 | |||
986 | $ rm "$HGRCPATH" |
|
983 | $ rm "$HGRCPATH" | |
987 | $ cat a b |
|
984 | $ cat a b | |
988 | expand $Id$ |
|
985 | expand $Id$ | |
989 | do not process $Id: |
|
986 | do not process $Id: | |
990 | xxx $ |
|
987 | xxx $ | |
991 | $Xinfo$ |
|
988 | $Xinfo$ | |
992 | ignore $Id$ |
|
989 | ignore $Id$ | |
993 | $ hg cat sym a b && echo |
|
990 | $ hg cat sym a b && echo | |
994 | expand $Id$ |
|
991 | expand $Id$ | |
995 | do not process $Id: |
|
992 | do not process $Id: | |
996 | xxx $ |
|
993 | xxx $ | |
997 | $Xinfo$ |
|
994 | $Xinfo$ | |
998 | ignore $Id$ |
|
995 | ignore $Id$ | |
999 | a* (glob) |
|
996 | a* (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now