Show More
@@ -1,343 +1,340 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | cat <<EOF >> $HGRCPATH |
|
3 | cat <<EOF >> $HGRCPATH | |
4 | [extensions] |
|
4 | [extensions] | |
5 | hgext.keyword = |
|
5 | hgext.keyword = | |
6 | hgext.mq = |
|
6 | hgext.mq = | |
7 | hgext.notify = |
|
7 | hgext.notify = | |
8 | [keyword] |
|
8 | [keyword] | |
9 | * = |
|
9 | * = | |
10 | b = ignore |
|
10 | b = ignore | |
11 | [hooks] |
|
11 | [hooks] | |
12 | commit= |
|
12 | commit= | |
13 | commit.test=cp a hooktest |
|
13 | commit.test=cp a hooktest | |
14 | EOF |
|
14 | EOF | |
15 |
|
15 | |||
16 | echo % help |
|
|||
17 | hg help keyword |
|
|||
18 |
|
||||
19 | echo % hg kwdemo |
|
16 | echo % hg kwdemo | |
20 | hg --quiet kwdemo --default \ |
|
17 | hg --quiet kwdemo --default \ | |
21 | | sed -e 's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!' \ |
|
18 | | sed -e 's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!' \ | |
22 | -e 's/,v [a-z0-9][a-z0-9]* /,v xxxxxxxxxxxx /' \ |
|
19 | -e 's/,v [a-z0-9][a-z0-9]* /,v xxxxxxxxxxxx /' \ | |
23 | -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \ |
|
20 | -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \ | |
24 | -e 's! 20[0-9][0-9]/[01][0-9]/[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]! 2000/00/00 00:00:00!' |
|
21 | -e 's! 20[0-9][0-9]/[01][0-9]/[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]! 2000/00/00 00:00:00!' | |
25 |
|
22 | |||
26 | hg --quiet kwdemo "Branch = {branches}" |
|
23 | hg --quiet kwdemo "Branch = {branches}" | |
27 |
|
24 | |||
28 | hg init Test-bndl |
|
25 | hg init Test-bndl | |
29 | cd Test-bndl |
|
26 | cd Test-bndl | |
30 |
|
27 | |||
31 | echo % kwshrink should exit silently in empty/invalid repo |
|
28 | echo % kwshrink should exit silently in empty/invalid repo | |
32 | hg kwshrink |
|
29 | hg kwshrink | |
33 |
|
30 | |||
34 | # Symlinks cannot be created on Windows. The bundle was made with: |
|
31 | # Symlinks cannot be created on Windows. The bundle was made with: | |
35 | # |
|
32 | # | |
36 | # hg init t |
|
33 | # hg init t | |
37 | # cd t |
|
34 | # cd t | |
38 | # echo a > a |
|
35 | # echo a > a | |
39 | # ln -s a sym |
|
36 | # ln -s a sym | |
40 | # hg add sym |
|
37 | # hg add sym | |
41 | # hg ci -m addsym -u mercurial |
|
38 | # hg ci -m addsym -u mercurial | |
42 | # hg bundle --base null ../test-keyword.hg |
|
39 | # hg bundle --base null ../test-keyword.hg | |
43 | # |
|
40 | # | |
44 | hg pull -u "$TESTDIR/test-keyword.hg" \ |
|
41 | hg pull -u "$TESTDIR/test-keyword.hg" \ | |
45 | | sed 's/pulling from.*test-keyword.hg/pulling from test-keyword.hg/' |
|
42 | | sed 's/pulling from.*test-keyword.hg/pulling from test-keyword.hg/' | |
46 |
|
43 | |||
47 | echo 'expand $Id$' > a |
|
44 | echo 'expand $Id$' > a | |
48 | echo 'do not process $Id:' >> a |
|
45 | echo 'do not process $Id:' >> a | |
49 | echo 'xxx $' >> a |
|
46 | echo 'xxx $' >> a | |
50 | echo 'ignore $Id$' > b |
|
47 | echo 'ignore $Id$' > b | |
51 | echo % cat |
|
48 | echo % cat | |
52 | cat a b |
|
49 | cat a b | |
53 |
|
50 | |||
54 | echo % addremove |
|
51 | echo % addremove | |
55 | hg addremove |
|
52 | hg addremove | |
56 | echo % status |
|
53 | echo % status | |
57 | hg status |
|
54 | hg status | |
58 |
|
55 | |||
59 | echo % default keyword expansion including commit hook |
|
56 | echo % default keyword expansion including commit hook | |
60 | echo % interrupted commit should not change state or run commit hook |
|
57 | echo % interrupted commit should not change state or run commit hook | |
61 | hg --debug commit |
|
58 | hg --debug commit | |
62 | echo % status |
|
59 | echo % status | |
63 | hg status |
|
60 | hg status | |
64 |
|
61 | |||
65 | echo % commit |
|
62 | echo % commit | |
66 | hg --debug commit -mabsym -u 'User Name <user@example.com>' |
|
63 | hg --debug commit -mabsym -u 'User Name <user@example.com>' | |
67 | echo % status |
|
64 | echo % status | |
68 | hg status |
|
65 | hg status | |
69 | echo % identify |
|
66 | echo % identify | |
70 | hg debugrebuildstate |
|
67 | hg debugrebuildstate | |
71 | hg --quiet identify |
|
68 | hg --quiet identify | |
72 | echo % cat |
|
69 | echo % cat | |
73 | cat a b |
|
70 | cat a b | |
74 | echo % hg cat |
|
71 | echo % hg cat | |
75 | hg cat sym a b |
|
72 | hg cat sym a b | |
76 |
|
73 | |||
77 | echo |
|
74 | echo | |
78 | echo % diff a hooktest |
|
75 | echo % diff a hooktest | |
79 | diff a hooktest |
|
76 | diff a hooktest | |
80 |
|
77 | |||
81 | echo % removing commit hook from config |
|
78 | echo % removing commit hook from config | |
82 | sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook |
|
79 | sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook | |
83 | mv $HGRCPATH.nohook $HGRCPATH |
|
80 | mv $HGRCPATH.nohook $HGRCPATH | |
84 | rm hooktest |
|
81 | rm hooktest | |
85 |
|
82 | |||
86 | echo % bundle |
|
83 | echo % bundle | |
87 | hg bundle --base null ../kw.hg |
|
84 | hg bundle --base null ../kw.hg | |
88 |
|
85 | |||
89 | cd .. |
|
86 | cd .. | |
90 | hg init Test |
|
87 | hg init Test | |
91 | cd Test |
|
88 | cd Test | |
92 |
|
89 | |||
93 | echo % notify on pull to check whether keywords stay as is in email |
|
90 | echo % notify on pull to check whether keywords stay as is in email | |
94 | echo % ie. if patch.diff wrapper acts as it should |
|
91 | echo % ie. if patch.diff wrapper acts as it should | |
95 |
|
92 | |||
96 | cat <<EOF >> $HGRCPATH |
|
93 | cat <<EOF >> $HGRCPATH | |
97 | [hooks] |
|
94 | [hooks] | |
98 | incoming.notify = python:hgext.notify.hook |
|
95 | incoming.notify = python:hgext.notify.hook | |
99 | [notify] |
|
96 | [notify] | |
100 | sources = pull |
|
97 | sources = pull | |
101 | diffstat = False |
|
98 | diffstat = False | |
102 | [reposubs] |
|
99 | [reposubs] | |
103 | * = Test |
|
100 | * = Test | |
104 | EOF |
|
101 | EOF | |
105 |
|
102 | |||
106 | echo % pull from bundle |
|
103 | echo % pull from bundle | |
107 | hg pull -u ../kw.hg 2>&1 | sed -e '/^Content-Type:/,/^diffs (/ d' |
|
104 | hg pull -u ../kw.hg 2>&1 | sed -e '/^Content-Type:/,/^diffs (/ d' | |
108 |
|
105 | |||
109 | echo % remove notify config |
|
106 | echo % remove notify config | |
110 | sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nonotify |
|
107 | sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nonotify | |
111 | mv $HGRCPATH.nonotify $HGRCPATH |
|
108 | mv $HGRCPATH.nonotify $HGRCPATH | |
112 |
|
109 | |||
113 | echo % touch |
|
110 | echo % touch | |
114 | touch a b |
|
111 | touch a b | |
115 | echo % status |
|
112 | echo % status | |
116 | hg status |
|
113 | hg status | |
117 |
|
114 | |||
118 | rm sym a b |
|
115 | rm sym a b | |
119 | echo % update |
|
116 | echo % update | |
120 | hg update -C |
|
117 | hg update -C | |
121 | echo % cat |
|
118 | echo % cat | |
122 | cat a b |
|
119 | cat a b | |
123 |
|
120 | |||
124 | echo % check whether expansion is filewise |
|
121 | echo % check whether expansion is filewise | |
125 | echo '$Id$' > c |
|
122 | echo '$Id$' > c | |
126 | echo 'tests for different changenodes' >> c |
|
123 | echo 'tests for different changenodes' >> c | |
127 | echo % commit c |
|
124 | echo % commit c | |
128 | hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>' |
|
125 | hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>' | |
129 | echo % force expansion |
|
126 | echo % force expansion | |
130 | hg -v kwexpand |
|
127 | hg -v kwexpand | |
131 | echo % compare changenodes in a c |
|
128 | echo % compare changenodes in a c | |
132 | cat a c |
|
129 | cat a c | |
133 |
|
130 | |||
134 | echo % qinit -c |
|
131 | echo % qinit -c | |
135 | hg qinit -c |
|
132 | hg qinit -c | |
136 | echo % qimport |
|
133 | echo % qimport | |
137 | hg qimport -r tip -n mqtest.diff |
|
134 | hg qimport -r tip -n mqtest.diff | |
138 | echo % qcommit |
|
135 | echo % qcommit | |
139 | hg qcommit -mqtest |
|
136 | hg qcommit -mqtest | |
140 | echo % keywords should not be expanded in patch |
|
137 | echo % keywords should not be expanded in patch | |
141 | cat .hg/patches/mqtest.diff |
|
138 | cat .hg/patches/mqtest.diff | |
142 | echo % qpop |
|
139 | echo % qpop | |
143 | hg qpop |
|
140 | hg qpop | |
144 | echo % qgoto - should imply qpush |
|
141 | echo % qgoto - should imply qpush | |
145 | hg qgoto mqtest.diff |
|
142 | hg qgoto mqtest.diff | |
146 | echo % cat |
|
143 | echo % cat | |
147 | cat c |
|
144 | cat c | |
148 | echo % qpop and move on |
|
145 | echo % qpop and move on | |
149 | hg qpop |
|
146 | hg qpop | |
150 |
|
147 | |||
151 | echo % copy |
|
148 | echo % copy | |
152 | hg cp a c |
|
149 | hg cp a c | |
153 |
|
150 | |||
154 | echo % kwfiles added |
|
151 | echo % kwfiles added | |
155 | hg kwfiles |
|
152 | hg kwfiles | |
156 |
|
153 | |||
157 | echo % commit |
|
154 | echo % commit | |
158 | hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>' |
|
155 | hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>' | |
159 | echo % cat a c |
|
156 | echo % cat a c | |
160 | cat a c |
|
157 | cat a c | |
161 | echo % touch copied c |
|
158 | echo % touch copied c | |
162 | touch c |
|
159 | touch c | |
163 | echo % status |
|
160 | echo % status | |
164 | hg status |
|
161 | hg status | |
165 |
|
162 | |||
166 | echo % kwfiles |
|
163 | echo % kwfiles | |
167 | hg kwfiles |
|
164 | hg kwfiles | |
168 |
|
165 | |||
169 | echo % diff --rev |
|
166 | echo % diff --rev | |
170 | hg diff --rev 1 | grep -v 'b/c' |
|
167 | hg diff --rev 1 | grep -v 'b/c' | |
171 |
|
168 | |||
172 | echo % rollback |
|
169 | echo % rollback | |
173 | hg rollback |
|
170 | hg rollback | |
174 | echo % status |
|
171 | echo % status | |
175 | hg status |
|
172 | hg status | |
176 | echo % update -C |
|
173 | echo % update -C | |
177 | hg update --clean |
|
174 | hg update --clean | |
178 |
|
175 | |||
179 | echo % custom keyword expansion |
|
176 | echo % custom keyword expansion | |
180 | echo % try with kwdemo |
|
177 | echo % try with kwdemo | |
181 | hg --quiet kwdemo "Xinfo = {author}: {desc}" |
|
178 | hg --quiet kwdemo "Xinfo = {author}: {desc}" | |
182 |
|
179 | |||
183 | cat <<EOF >>$HGRCPATH |
|
180 | cat <<EOF >>$HGRCPATH | |
184 | [keywordmaps] |
|
181 | [keywordmaps] | |
185 | Id = {file} {node|short} {date|rfc822date} {author|user} |
|
182 | Id = {file} {node|short} {date|rfc822date} {author|user} | |
186 | Xinfo = {author}: {desc} |
|
183 | Xinfo = {author}: {desc} | |
187 | EOF |
|
184 | EOF | |
188 |
|
185 | |||
189 | echo % cat |
|
186 | echo % cat | |
190 | cat a b |
|
187 | cat a b | |
191 | echo % hg cat |
|
188 | echo % hg cat | |
192 | hg cat sym a b |
|
189 | hg cat sym a b | |
193 |
|
190 | |||
194 | echo |
|
191 | echo | |
195 | echo '$Xinfo$' >> a |
|
192 | echo '$Xinfo$' >> a | |
196 | cat <<EOF >> log |
|
193 | cat <<EOF >> log | |
197 | firstline |
|
194 | firstline | |
198 | secondline |
|
195 | secondline | |
199 | EOF |
|
196 | EOF | |
200 |
|
197 | |||
201 | echo % interrupted commit should not change state |
|
198 | echo % interrupted commit should not change state | |
202 | hg commit |
|
199 | hg commit | |
203 | echo % status |
|
200 | echo % status | |
204 | hg status |
|
201 | hg status | |
205 |
|
202 | |||
206 | echo % commit |
|
203 | echo % commit | |
207 | hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>' |
|
204 | hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>' | |
208 | rm log |
|
205 | rm log | |
209 | echo % status |
|
206 | echo % status | |
210 | hg status |
|
207 | hg status | |
211 | echo % verify |
|
208 | echo % verify | |
212 | hg verify |
|
209 | hg verify | |
213 |
|
210 | |||
214 | echo % cat |
|
211 | echo % cat | |
215 | cat a b |
|
212 | cat a b | |
216 | echo % hg cat |
|
213 | echo % hg cat | |
217 | hg cat sym a b |
|
214 | hg cat sym a b | |
218 | echo |
|
215 | echo | |
219 | echo % annotate |
|
216 | echo % annotate | |
220 | hg annotate a |
|
217 | hg annotate a | |
221 |
|
218 | |||
222 | echo % remove |
|
219 | echo % remove | |
223 | hg debugrebuildstate |
|
220 | hg debugrebuildstate | |
224 | hg remove a |
|
221 | hg remove a | |
225 | hg --debug commit -m rma |
|
222 | hg --debug commit -m rma | |
226 | echo % status |
|
223 | echo % status | |
227 | hg status |
|
224 | hg status | |
228 | echo % rollback |
|
225 | echo % rollback | |
229 | hg rollback |
|
226 | hg rollback | |
230 | echo % status |
|
227 | echo % status | |
231 | hg status |
|
228 | hg status | |
232 | echo % revert a |
|
229 | echo % revert a | |
233 | hg revert --no-backup --rev tip a |
|
230 | hg revert --no-backup --rev tip a | |
234 | echo % cat a |
|
231 | echo % cat a | |
235 | cat a |
|
232 | cat a | |
236 |
|
233 | |||
237 | echo % clone to test incoming |
|
234 | echo % clone to test incoming | |
238 | cd .. |
|
235 | cd .. | |
239 | hg clone -r1 Test Test-a |
|
236 | hg clone -r1 Test Test-a | |
240 | cd Test-a |
|
237 | cd Test-a | |
241 | cat <<EOF >> .hg/hgrc |
|
238 | cat <<EOF >> .hg/hgrc | |
242 | [paths] |
|
239 | [paths] | |
243 | default = ../Test |
|
240 | default = ../Test | |
244 | EOF |
|
241 | EOF | |
245 | echo % incoming |
|
242 | echo % incoming | |
246 | # remove path to temp dir |
|
243 | # remove path to temp dir | |
247 | hg incoming | sed -e 's/^\(comparing with \).*\(test-keyword.*\)/\1\2/' |
|
244 | hg incoming | sed -e 's/^\(comparing with \).*\(test-keyword.*\)/\1\2/' | |
248 |
|
245 | |||
249 | sed -e 's/Id.*/& rejecttest/' a > a.new |
|
246 | sed -e 's/Id.*/& rejecttest/' a > a.new | |
250 | mv a.new a |
|
247 | mv a.new a | |
251 | echo % commit rejecttest |
|
248 | echo % commit rejecttest | |
252 | hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' |
|
249 | hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' | |
253 | echo % export |
|
250 | echo % export | |
254 | hg export -o ../rejecttest.diff tip |
|
251 | hg export -o ../rejecttest.diff tip | |
255 |
|
252 | |||
256 | cd ../Test |
|
253 | cd ../Test | |
257 | echo % import |
|
254 | echo % import | |
258 | hg import ../rejecttest.diff |
|
255 | hg import ../rejecttest.diff | |
259 | echo % cat |
|
256 | echo % cat | |
260 | cat a b |
|
257 | cat a b | |
261 | echo |
|
258 | echo | |
262 | echo % rollback |
|
259 | echo % rollback | |
263 | hg rollback |
|
260 | hg rollback | |
264 | echo % clean update |
|
261 | echo % clean update | |
265 | hg update --clean |
|
262 | hg update --clean | |
266 |
|
263 | |||
267 | echo % kwexpand/kwshrink on selected files |
|
264 | echo % kwexpand/kwshrink on selected files | |
268 | mkdir x |
|
265 | mkdir x | |
269 | echo % copy a x/a |
|
266 | echo % copy a x/a | |
270 | hg copy a x/a |
|
267 | hg copy a x/a | |
271 | echo % kwexpand a |
|
268 | echo % kwexpand a | |
272 | hg --verbose kwexpand a |
|
269 | hg --verbose kwexpand a | |
273 | echo % kwexpand x/a should abort |
|
270 | echo % kwexpand x/a should abort | |
274 | hg --verbose kwexpand x/a |
|
271 | hg --verbose kwexpand x/a | |
275 | cd x |
|
272 | cd x | |
276 | hg --debug commit -m xa -d '3 0' -u 'User Name <user@example.com>' |
|
273 | hg --debug commit -m xa -d '3 0' -u 'User Name <user@example.com>' | |
277 | echo % cat a |
|
274 | echo % cat a | |
278 | cat a |
|
275 | cat a | |
279 | echo % kwshrink a inside directory x |
|
276 | echo % kwshrink a inside directory x | |
280 | hg --verbose kwshrink a |
|
277 | hg --verbose kwshrink a | |
281 | echo % cat a |
|
278 | echo % cat a | |
282 | cat a |
|
279 | cat a | |
283 | cd .. |
|
280 | cd .. | |
284 |
|
281 | |||
285 | echo % kwexpand nonexistent |
|
282 | echo % kwexpand nonexistent | |
286 | hg kwexpand nonexistent 2>&1 | sed 's/nonexistent:.*/nonexistent:/' |
|
283 | hg kwexpand nonexistent 2>&1 | sed 's/nonexistent:.*/nonexistent:/' | |
287 |
|
284 | |||
288 | echo % hg serve |
|
285 | echo % hg serve | |
289 | hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
286 | hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log | |
290 | cat hg.pid >> $DAEMON_PIDS |
|
287 | cat hg.pid >> $DAEMON_PIDS | |
291 | echo % expansion |
|
288 | echo % expansion | |
292 | echo % hgweb file |
|
289 | echo % hgweb file | |
293 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/a/?style=raw') |
|
290 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/a/?style=raw') | |
294 | echo % no expansion |
|
291 | echo % no expansion | |
295 | echo % hgweb annotate |
|
292 | echo % hgweb annotate | |
296 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/a/?style=raw') |
|
293 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/a/?style=raw') | |
297 | echo % hgweb changeset |
|
294 | echo % hgweb changeset | |
298 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip/?style=raw') |
|
295 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip/?style=raw') | |
299 | echo % hgweb filediff |
|
296 | echo % hgweb filediff | |
300 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/bb948857c743/a?style=raw') |
|
297 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/bb948857c743/a?style=raw') | |
301 | echo % errors encountered |
|
298 | echo % errors encountered | |
302 | cat errors.log |
|
299 | cat errors.log | |
303 |
|
300 | |||
304 | echo % merge/resolve |
|
301 | echo % merge/resolve | |
305 | echo '$Id$' > m |
|
302 | echo '$Id$' > m | |
306 | hg add m |
|
303 | hg add m | |
307 | hg commit -m 4kw |
|
304 | hg commit -m 4kw | |
308 | echo foo >> m |
|
305 | echo foo >> m | |
309 | hg commit -m 5foo |
|
306 | hg commit -m 5foo | |
310 | echo % simplemerge |
|
307 | echo % simplemerge | |
311 | hg update 4 |
|
308 | hg update 4 | |
312 | echo foo >> m |
|
309 | echo foo >> m | |
313 | hg commit -m 6foo |
|
310 | hg commit -m 6foo | |
314 | hg merge |
|
311 | hg merge | |
315 | hg commit -m simplemerge |
|
312 | hg commit -m simplemerge | |
316 | cat m |
|
313 | cat m | |
317 | echo % conflict |
|
314 | echo % conflict | |
318 | hg update 4 |
|
315 | hg update 4 | |
319 | echo bar >> m |
|
316 | echo bar >> m | |
320 | hg commit -m 8bar |
|
317 | hg commit -m 8bar | |
321 | hg merge |
|
318 | hg merge | |
322 | echo % keyword stays outside conflict zone |
|
319 | echo % keyword stays outside conflict zone | |
323 | cat m |
|
320 | cat m | |
324 | echo % resolve to local |
|
321 | echo % resolve to local | |
325 | HGMERGE=internal:local hg resolve -a |
|
322 | HGMERGE=internal:local hg resolve -a | |
326 | hg commit -m localresolve |
|
323 | hg commit -m localresolve | |
327 | cat m |
|
324 | cat m | |
328 |
|
325 | |||
329 | echo % switch off expansion |
|
326 | echo % switch off expansion | |
330 | echo % kwshrink with unknown file u |
|
327 | echo % kwshrink with unknown file u | |
331 | cp a u |
|
328 | cp a u | |
332 | hg --verbose kwshrink |
|
329 | hg --verbose kwshrink | |
333 | echo % cat |
|
330 | echo % cat | |
334 | cat a b |
|
331 | cat a b | |
335 | echo % hg cat |
|
332 | echo % hg cat | |
336 | hg cat sym a b |
|
333 | hg cat sym a b | |
337 | echo |
|
334 | echo | |
338 | rm $HGRCPATH |
|
335 | rm $HGRCPATH | |
339 | echo % cat |
|
336 | echo % cat | |
340 | cat a b |
|
337 | cat a b | |
341 | echo % hg cat |
|
338 | echo % hg cat | |
342 | hg cat sym a b |
|
339 | hg cat sym a b | |
343 | echo |
|
340 | echo |
@@ -1,503 +1,442 b'' | |||||
1 | % help |
|
|||
2 | keyword extension - expand keywords in tracked files |
|
|||
3 |
|
||||
4 | This extension expands RCS/CVS-like or self-customized $Keywords$ in tracked |
|
|||
5 | text files selected by your configuration. |
|
|||
6 |
|
||||
7 | Keywords are only expanded in local repositories and not stored in the change |
|
|||
8 | history. The mechanism can be regarded as a convenience for the current user |
|
|||
9 | or for archive distribution. |
|
|||
10 |
|
||||
11 | Configuration is done in the [keyword] and [keywordmaps] sections of hgrc |
|
|||
12 | files. |
|
|||
13 |
|
||||
14 | Example: |
|
|||
15 |
|
||||
16 | [keyword] |
|
|||
17 | # expand keywords in every python file except those matching "x*" |
|
|||
18 | **.py = |
|
|||
19 | x* = ignore |
|
|||
20 |
|
||||
21 | NOTE: the more specific you are in your filename patterns the less you lose |
|
|||
22 | speed in huge repositories. |
|
|||
23 |
|
||||
24 | For [keywordmaps] template mapping and expansion demonstration and control run |
|
|||
25 | "hg kwdemo". |
|
|||
26 |
|
||||
27 | An additional date template filter {date|utcdate} is provided. |
|
|||
28 |
|
||||
29 | The default template mappings (view with "hg kwdemo -d") can be replaced with |
|
|||
30 | customized keywords and templates. Again, run "hg kwdemo" to control the |
|
|||
31 | results of your config changes. |
|
|||
32 |
|
||||
33 | Before changing/disabling active keywords, run "hg kwshrink" to avoid the risk |
|
|||
34 | of inadvertently storing expanded keywords in the change history. |
|
|||
35 |
|
||||
36 | To force expansion after enabling it, or a configuration change, run "hg |
|
|||
37 | kwexpand". |
|
|||
38 |
|
||||
39 | Also, when committing with the record extension or using mq's qrecord, be |
|
|||
40 | aware that keywords cannot be updated. Again, run "hg kwexpand" on the files |
|
|||
41 | in question to update keyword expansions after all changes have been checked |
|
|||
42 | in. |
|
|||
43 |
|
||||
44 | Expansions spanning more than one line and incremental expansions, like CVS' |
|
|||
45 | $Log$, are not supported. A keyword template map "Log = {desc}" expands to the |
|
|||
46 | first line of the changeset description. |
|
|||
47 |
|
||||
48 | list of commands: |
|
|||
49 |
|
||||
50 | kwdemo print [keywordmaps] configuration and an expansion example |
|
|||
51 | kwexpand expand keywords in the working directory |
|
|||
52 | kwfiles show files configured for keyword expansion |
|
|||
53 | kwshrink revert expanded keywords in the working directory |
|
|||
54 |
|
||||
55 | enabled extensions: |
|
|||
56 |
|
||||
57 | keyword expand keywords in tracked files |
|
|||
58 | mq manage a stack of patches |
|
|||
59 | notify hooks for sending email notifications at commit/push time |
|
|||
60 |
|
||||
61 | use "hg -v help keyword" to show aliases and global options |
|
|||
62 | % hg kwdemo |
|
1 | % hg kwdemo | |
63 | [extensions] |
|
2 | [extensions] | |
64 | hgext.keyword = |
|
3 | hgext.keyword = | |
65 | [keyword] |
|
4 | [keyword] | |
66 | * = |
|
5 | * = | |
67 | b = ignore |
|
6 | b = ignore | |
68 | demo.txt = |
|
7 | demo.txt = | |
69 | [keywordmaps] |
|
8 | [keywordmaps] | |
70 | RCSFile = {file|basename},v |
|
9 | RCSFile = {file|basename},v | |
71 | Author = {author|user} |
|
10 | Author = {author|user} | |
72 | Header = {root}/{file},v {node|short} {date|utcdate} {author|user} |
|
11 | Header = {root}/{file},v {node|short} {date|utcdate} {author|user} | |
73 | Source = {root}/{file},v |
|
12 | Source = {root}/{file},v | |
74 | Date = {date|utcdate} |
|
13 | Date = {date|utcdate} | |
75 | Id = {file|basename},v {node|short} {date|utcdate} {author|user} |
|
14 | Id = {file|basename},v {node|short} {date|utcdate} {author|user} | |
76 | Revision = {node|short} |
|
15 | Revision = {node|short} | |
77 | $RCSFile: demo.txt,v $ |
|
16 | $RCSFile: demo.txt,v $ | |
78 | $Author: test $ |
|
17 | $Author: test $ | |
79 | $Header: /TMP/demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
|
18 | $Header: /TMP/demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ | |
80 | $Source: /TMP/demo.txt,v $ |
|
19 | $Source: /TMP/demo.txt,v $ | |
81 | $Date: 2000/00/00 00:00:00 $ |
|
20 | $Date: 2000/00/00 00:00:00 $ | |
82 | $Id: demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
|
21 | $Id: demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ | |
83 | $Revision: xxxxxxxxxxxx $ |
|
22 | $Revision: xxxxxxxxxxxx $ | |
84 | [extensions] |
|
23 | [extensions] | |
85 | hgext.keyword = |
|
24 | hgext.keyword = | |
86 | [keyword] |
|
25 | [keyword] | |
87 | * = |
|
26 | * = | |
88 | b = ignore |
|
27 | b = ignore | |
89 | demo.txt = |
|
28 | demo.txt = | |
90 | [keywordmaps] |
|
29 | [keywordmaps] | |
91 | Branch = {branches} |
|
30 | Branch = {branches} | |
92 | $Branch: demobranch $ |
|
31 | $Branch: demobranch $ | |
93 | % kwshrink should exit silently in empty/invalid repo |
|
32 | % kwshrink should exit silently in empty/invalid repo | |
94 | pulling from test-keyword.hg |
|
33 | pulling from test-keyword.hg | |
95 | requesting all changes |
|
34 | requesting all changes | |
96 | adding changesets |
|
35 | adding changesets | |
97 | adding manifests |
|
36 | adding manifests | |
98 | adding file changes |
|
37 | adding file changes | |
99 | added 1 changesets with 1 changes to 1 files |
|
38 | added 1 changesets with 1 changes to 1 files | |
100 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
39 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
101 | % cat |
|
40 | % cat | |
102 | expand $Id$ |
|
41 | expand $Id$ | |
103 | do not process $Id: |
|
42 | do not process $Id: | |
104 | xxx $ |
|
43 | xxx $ | |
105 | ignore $Id$ |
|
44 | ignore $Id$ | |
106 | % addremove |
|
45 | % addremove | |
107 | adding a |
|
46 | adding a | |
108 | adding b |
|
47 | adding b | |
109 | % status |
|
48 | % status | |
110 | A a |
|
49 | A a | |
111 | A b |
|
50 | A b | |
112 | % default keyword expansion including commit hook |
|
51 | % default keyword expansion including commit hook | |
113 | % interrupted commit should not change state or run commit hook |
|
52 | % interrupted commit should not change state or run commit hook | |
114 | abort: empty commit message |
|
53 | abort: empty commit message | |
115 | % status |
|
54 | % status | |
116 | A a |
|
55 | A a | |
117 | A b |
|
56 | A b | |
118 | % commit |
|
57 | % commit | |
119 | a |
|
58 | a | |
120 | b |
|
59 | b | |
121 | overwriting a expanding keywords |
|
60 | overwriting a expanding keywords | |
122 | running hook commit.test: cp a hooktest |
|
61 | running hook commit.test: cp a hooktest | |
123 | committed changeset 1:ef63ca68695bc9495032c6fda1350c71e6d256e9 |
|
62 | committed changeset 1:ef63ca68695bc9495032c6fda1350c71e6d256e9 | |
124 | % status |
|
63 | % status | |
125 | ? hooktest |
|
64 | ? hooktest | |
126 | % identify |
|
65 | % identify | |
127 | ef63ca68695b |
|
66 | ef63ca68695b | |
128 | % cat |
|
67 | % cat | |
129 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
68 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
130 | do not process $Id: |
|
69 | do not process $Id: | |
131 | xxx $ |
|
70 | xxx $ | |
132 | ignore $Id$ |
|
71 | ignore $Id$ | |
133 | % hg cat |
|
72 | % hg cat | |
134 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
73 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
135 | do not process $Id: |
|
74 | do not process $Id: | |
136 | xxx $ |
|
75 | xxx $ | |
137 | ignore $Id$ |
|
76 | ignore $Id$ | |
138 | a |
|
77 | a | |
139 | % diff a hooktest |
|
78 | % diff a hooktest | |
140 | % removing commit hook from config |
|
79 | % removing commit hook from config | |
141 | % bundle |
|
80 | % bundle | |
142 | 2 changesets found |
|
81 | 2 changesets found | |
143 | % notify on pull to check whether keywords stay as is in email |
|
82 | % notify on pull to check whether keywords stay as is in email | |
144 | % ie. if patch.diff wrapper acts as it should |
|
83 | % ie. if patch.diff wrapper acts as it should | |
145 | % pull from bundle |
|
84 | % pull from bundle | |
146 | pulling from ../kw.hg |
|
85 | pulling from ../kw.hg | |
147 | requesting all changes |
|
86 | requesting all changes | |
148 | adding changesets |
|
87 | adding changesets | |
149 | adding manifests |
|
88 | adding manifests | |
150 | adding file changes |
|
89 | adding file changes | |
151 | added 2 changesets with 3 changes to 3 files |
|
90 | added 2 changesets with 3 changes to 3 files | |
152 |
|
91 | |||
153 | diff -r 000000000000 -r a2392c293916 sym |
|
92 | diff -r 000000000000 -r a2392c293916 sym | |
154 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
93 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
155 | +++ b/sym Sat Feb 09 20:25:47 2008 +0100 |
|
94 | +++ b/sym Sat Feb 09 20:25:47 2008 +0100 | |
156 | @@ -0,0 +1,1 @@ |
|
95 | @@ -0,0 +1,1 @@ | |
157 | +a |
|
96 | +a | |
158 | \ No newline at end of file |
|
97 | \ No newline at end of file | |
159 |
|
98 | |||
160 | diff -r a2392c293916 -r ef63ca68695b a |
|
99 | diff -r a2392c293916 -r ef63ca68695b a | |
161 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
100 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
162 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
101 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
163 | @@ -0,0 +1,3 @@ |
|
102 | @@ -0,0 +1,3 @@ | |
164 | +expand $Id$ |
|
103 | +expand $Id$ | |
165 | +do not process $Id: |
|
104 | +do not process $Id: | |
166 | +xxx $ |
|
105 | +xxx $ | |
167 | diff -r a2392c293916 -r ef63ca68695b b |
|
106 | diff -r a2392c293916 -r ef63ca68695b b | |
168 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
107 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
169 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
108 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 | |
170 | @@ -0,0 +1,1 @@ |
|
109 | @@ -0,0 +1,1 @@ | |
171 | +ignore $Id$ |
|
110 | +ignore $Id$ | |
172 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
111 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
173 | % remove notify config |
|
112 | % remove notify config | |
174 | % touch |
|
113 | % touch | |
175 | % status |
|
114 | % status | |
176 | % update |
|
115 | % update | |
177 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
116 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
178 | % cat |
|
117 | % cat | |
179 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
118 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
180 | do not process $Id: |
|
119 | do not process $Id: | |
181 | xxx $ |
|
120 | xxx $ | |
182 | ignore $Id$ |
|
121 | ignore $Id$ | |
183 | % check whether expansion is filewise |
|
122 | % check whether expansion is filewise | |
184 | % commit c |
|
123 | % commit c | |
185 | adding c |
|
124 | adding c | |
186 | % force expansion |
|
125 | % force expansion | |
187 | overwriting a expanding keywords |
|
126 | overwriting a expanding keywords | |
188 | overwriting c expanding keywords |
|
127 | overwriting c expanding keywords | |
189 | % compare changenodes in a c |
|
128 | % compare changenodes in a c | |
190 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
129 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
191 | do not process $Id: |
|
130 | do not process $Id: | |
192 | xxx $ |
|
131 | xxx $ | |
193 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
|
132 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ | |
194 | tests for different changenodes |
|
133 | tests for different changenodes | |
195 | % qinit -c |
|
134 | % qinit -c | |
196 | % qimport |
|
135 | % qimport | |
197 | % qcommit |
|
136 | % qcommit | |
198 | % keywords should not be expanded in patch |
|
137 | % keywords should not be expanded in patch | |
199 | # HG changeset patch |
|
138 | # HG changeset patch | |
200 | # User User Name <user@example.com> |
|
139 | # User User Name <user@example.com> | |
201 | # Date 1 0 |
|
140 | # Date 1 0 | |
202 | # Node ID 40a904bbbe4cd4ab0a1f28411e35db26341a40ad |
|
141 | # Node ID 40a904bbbe4cd4ab0a1f28411e35db26341a40ad | |
203 | # Parent ef63ca68695bc9495032c6fda1350c71e6d256e9 |
|
142 | # Parent ef63ca68695bc9495032c6fda1350c71e6d256e9 | |
204 | cndiff |
|
143 | cndiff | |
205 |
|
144 | |||
206 | diff -r ef63ca68695b -r 40a904bbbe4c c |
|
145 | diff -r ef63ca68695b -r 40a904bbbe4c c | |
207 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
146 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
208 | +++ b/c Thu Jan 01 00:00:01 1970 +0000 |
|
147 | +++ b/c Thu Jan 01 00:00:01 1970 +0000 | |
209 | @@ -0,0 +1,2 @@ |
|
148 | @@ -0,0 +1,2 @@ | |
210 | +$Id$ |
|
149 | +$Id$ | |
211 | +tests for different changenodes |
|
150 | +tests for different changenodes | |
212 | % qpop |
|
151 | % qpop | |
213 | popping mqtest.diff |
|
152 | popping mqtest.diff | |
214 | patch queue now empty |
|
153 | patch queue now empty | |
215 | % qgoto - should imply qpush |
|
154 | % qgoto - should imply qpush | |
216 | applying mqtest.diff |
|
155 | applying mqtest.diff | |
217 | now at: mqtest.diff |
|
156 | now at: mqtest.diff | |
218 | % cat |
|
157 | % cat | |
219 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
|
158 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ | |
220 | tests for different changenodes |
|
159 | tests for different changenodes | |
221 | % qpop and move on |
|
160 | % qpop and move on | |
222 | popping mqtest.diff |
|
161 | popping mqtest.diff | |
223 | patch queue now empty |
|
162 | patch queue now empty | |
224 | % copy |
|
163 | % copy | |
225 | % kwfiles added |
|
164 | % kwfiles added | |
226 | a |
|
165 | a | |
227 | c |
|
166 | c | |
228 | % commit |
|
167 | % commit | |
229 | c |
|
168 | c | |
230 | c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292 |
|
169 | c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292 | |
231 | overwriting c expanding keywords |
|
170 | overwriting c expanding keywords | |
232 | committed changeset 2:e22d299ac0c2bd8897b3df5114374b9e4d4ca62f |
|
171 | committed changeset 2:e22d299ac0c2bd8897b3df5114374b9e4d4ca62f | |
233 | % cat a c |
|
172 | % cat a c | |
234 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
173 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
235 | do not process $Id: |
|
174 | do not process $Id: | |
236 | xxx $ |
|
175 | xxx $ | |
237 | expand $Id: c,v e22d299ac0c2 1970/01/01 00:00:01 user $ |
|
176 | expand $Id: c,v e22d299ac0c2 1970/01/01 00:00:01 user $ | |
238 | do not process $Id: |
|
177 | do not process $Id: | |
239 | xxx $ |
|
178 | xxx $ | |
240 | % touch copied c |
|
179 | % touch copied c | |
241 | % status |
|
180 | % status | |
242 | % kwfiles |
|
181 | % kwfiles | |
243 | a |
|
182 | a | |
244 | c |
|
183 | c | |
245 | % diff --rev |
|
184 | % diff --rev | |
246 | diff -r ef63ca68695b c |
|
185 | diff -r ef63ca68695b c | |
247 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
186 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
248 | @@ -0,0 +1,3 @@ |
|
187 | @@ -0,0 +1,3 @@ | |
249 | +expand $Id$ |
|
188 | +expand $Id$ | |
250 | +do not process $Id: |
|
189 | +do not process $Id: | |
251 | +xxx $ |
|
190 | +xxx $ | |
252 | % rollback |
|
191 | % rollback | |
253 | rolling back last transaction |
|
192 | rolling back last transaction | |
254 | % status |
|
193 | % status | |
255 | A c |
|
194 | A c | |
256 | % update -C |
|
195 | % update -C | |
257 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
196 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
258 | % custom keyword expansion |
|
197 | % custom keyword expansion | |
259 | % try with kwdemo |
|
198 | % try with kwdemo | |
260 | [extensions] |
|
199 | [extensions] | |
261 | hgext.keyword = |
|
200 | hgext.keyword = | |
262 | [keyword] |
|
201 | [keyword] | |
263 | * = |
|
202 | * = | |
264 | b = ignore |
|
203 | b = ignore | |
265 | demo.txt = |
|
204 | demo.txt = | |
266 | [keywordmaps] |
|
205 | [keywordmaps] | |
267 | Xinfo = {author}: {desc} |
|
206 | Xinfo = {author}: {desc} | |
268 | $Xinfo: test: hg keyword config and expansion example $ |
|
207 | $Xinfo: test: hg keyword config and expansion example $ | |
269 | % cat |
|
208 | % cat | |
270 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
209 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ | |
271 | do not process $Id: |
|
210 | do not process $Id: | |
272 | xxx $ |
|
211 | xxx $ | |
273 | ignore $Id$ |
|
212 | ignore $Id$ | |
274 | % hg cat |
|
213 | % hg cat | |
275 | expand $Id: a ef63ca68695b Thu, 01 Jan 1970 00:00:00 +0000 user $ |
|
214 | expand $Id: a ef63ca68695b Thu, 01 Jan 1970 00:00:00 +0000 user $ | |
276 | do not process $Id: |
|
215 | do not process $Id: | |
277 | xxx $ |
|
216 | xxx $ | |
278 | ignore $Id$ |
|
217 | ignore $Id$ | |
279 | a |
|
218 | a | |
280 | % interrupted commit should not change state |
|
219 | % interrupted commit should not change state | |
281 | abort: empty commit message |
|
220 | abort: empty commit message | |
282 | % status |
|
221 | % status | |
283 | M a |
|
222 | M a | |
284 | ? c |
|
223 | ? c | |
285 | ? log |
|
224 | ? log | |
286 | % commit |
|
225 | % commit | |
287 | a |
|
226 | a | |
288 | overwriting a expanding keywords |
|
227 | overwriting a expanding keywords | |
289 | committed changeset 2:bb948857c743469b22bbf51f7ec8112279ca5d83 |
|
228 | committed changeset 2:bb948857c743469b22bbf51f7ec8112279ca5d83 | |
290 | % status |
|
229 | % status | |
291 | ? c |
|
230 | ? c | |
292 | % verify |
|
231 | % verify | |
293 | checking changesets |
|
232 | checking changesets | |
294 | checking manifests |
|
233 | checking manifests | |
295 | crosschecking files in changesets and manifests |
|
234 | crosschecking files in changesets and manifests | |
296 | checking files |
|
235 | checking files | |
297 | 3 files, 3 changesets, 4 total revisions |
|
236 | 3 files, 3 changesets, 4 total revisions | |
298 | % cat |
|
237 | % cat | |
299 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
238 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
300 | do not process $Id: |
|
239 | do not process $Id: | |
301 | xxx $ |
|
240 | xxx $ | |
302 | $Xinfo: User Name <user@example.com>: firstline $ |
|
241 | $Xinfo: User Name <user@example.com>: firstline $ | |
303 | ignore $Id$ |
|
242 | ignore $Id$ | |
304 | % hg cat |
|
243 | % hg cat | |
305 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
244 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
306 | do not process $Id: |
|
245 | do not process $Id: | |
307 | xxx $ |
|
246 | xxx $ | |
308 | $Xinfo: User Name <user@example.com>: firstline $ |
|
247 | $Xinfo: User Name <user@example.com>: firstline $ | |
309 | ignore $Id$ |
|
248 | ignore $Id$ | |
310 | a |
|
249 | a | |
311 | % annotate |
|
250 | % annotate | |
312 | 1: expand $Id$ |
|
251 | 1: expand $Id$ | |
313 | 1: do not process $Id: |
|
252 | 1: do not process $Id: | |
314 | 1: xxx $ |
|
253 | 1: xxx $ | |
315 | 2: $Xinfo$ |
|
254 | 2: $Xinfo$ | |
316 | % remove |
|
255 | % remove | |
317 | committed changeset 3:d14c712653769de926994cf7fbb06c8fbd68f012 |
|
256 | committed changeset 3:d14c712653769de926994cf7fbb06c8fbd68f012 | |
318 | % status |
|
257 | % status | |
319 | ? c |
|
258 | ? c | |
320 | % rollback |
|
259 | % rollback | |
321 | rolling back last transaction |
|
260 | rolling back last transaction | |
322 | % status |
|
261 | % status | |
323 | R a |
|
262 | R a | |
324 | ? c |
|
263 | ? c | |
325 | % revert a |
|
264 | % revert a | |
326 | % cat a |
|
265 | % cat a | |
327 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
266 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
328 | do not process $Id: |
|
267 | do not process $Id: | |
329 | xxx $ |
|
268 | xxx $ | |
330 | $Xinfo: User Name <user@example.com>: firstline $ |
|
269 | $Xinfo: User Name <user@example.com>: firstline $ | |
331 | % clone to test incoming |
|
270 | % clone to test incoming | |
332 | requesting all changes |
|
271 | requesting all changes | |
333 | adding changesets |
|
272 | adding changesets | |
334 | adding manifests |
|
273 | adding manifests | |
335 | adding file changes |
|
274 | adding file changes | |
336 | added 2 changesets with 3 changes to 3 files |
|
275 | added 2 changesets with 3 changes to 3 files | |
337 | updating working directory |
|
276 | updating working directory | |
338 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
277 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
339 | % incoming |
|
278 | % incoming | |
340 | comparing with test-keyword/Test |
|
279 | comparing with test-keyword/Test | |
341 | searching for changes |
|
280 | searching for changes | |
342 | changeset: 2:bb948857c743 |
|
281 | changeset: 2:bb948857c743 | |
343 | tag: tip |
|
282 | tag: tip | |
344 | user: User Name <user@example.com> |
|
283 | user: User Name <user@example.com> | |
345 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
284 | date: Thu Jan 01 00:00:02 1970 +0000 | |
346 | summary: firstline |
|
285 | summary: firstline | |
347 |
|
286 | |||
348 | % commit rejecttest |
|
287 | % commit rejecttest | |
349 | a |
|
288 | a | |
350 | overwriting a expanding keywords |
|
289 | overwriting a expanding keywords | |
351 | committed changeset 2:85e279d709ffc28c9fdd1b868570985fc3d87082 |
|
290 | committed changeset 2:85e279d709ffc28c9fdd1b868570985fc3d87082 | |
352 | % export |
|
291 | % export | |
353 | % import |
|
292 | % import | |
354 | applying ../rejecttest.diff |
|
293 | applying ../rejecttest.diff | |
355 | % cat |
|
294 | % cat | |
356 | expand $Id: a 4e0994474d25 Thu, 01 Jan 1970 00:00:03 +0000 user $ rejecttest |
|
295 | expand $Id: a 4e0994474d25 Thu, 01 Jan 1970 00:00:03 +0000 user $ rejecttest | |
357 | do not process $Id: rejecttest |
|
296 | do not process $Id: rejecttest | |
358 | xxx $ |
|
297 | xxx $ | |
359 | $Xinfo: User Name <user@example.com>: rejects? $ |
|
298 | $Xinfo: User Name <user@example.com>: rejects? $ | |
360 | ignore $Id$ |
|
299 | ignore $Id$ | |
361 |
|
300 | |||
362 | % rollback |
|
301 | % rollback | |
363 | rolling back last transaction |
|
302 | rolling back last transaction | |
364 | % clean update |
|
303 | % clean update | |
365 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
304 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
366 | % kwexpand/kwshrink on selected files |
|
305 | % kwexpand/kwshrink on selected files | |
367 | % copy a x/a |
|
306 | % copy a x/a | |
368 | % kwexpand a |
|
307 | % kwexpand a | |
369 | overwriting a expanding keywords |
|
308 | overwriting a expanding keywords | |
370 | % kwexpand x/a should abort |
|
309 | % kwexpand x/a should abort | |
371 | abort: outstanding uncommitted changes |
|
310 | abort: outstanding uncommitted changes | |
372 | x/a |
|
311 | x/a | |
373 | x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e |
|
312 | x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e | |
374 | overwriting x/a expanding keywords |
|
313 | overwriting x/a expanding keywords | |
375 | committed changeset 3:cfa68229c1167443337266ebac453c73b1d5d16e |
|
314 | committed changeset 3:cfa68229c1167443337266ebac453c73b1d5d16e | |
376 | % cat a |
|
315 | % cat a | |
377 | expand $Id: x/a cfa68229c116 Thu, 01 Jan 1970 00:00:03 +0000 user $ |
|
316 | expand $Id: x/a cfa68229c116 Thu, 01 Jan 1970 00:00:03 +0000 user $ | |
378 | do not process $Id: |
|
317 | do not process $Id: | |
379 | xxx $ |
|
318 | xxx $ | |
380 | $Xinfo: User Name <user@example.com>: xa $ |
|
319 | $Xinfo: User Name <user@example.com>: xa $ | |
381 | % kwshrink a inside directory x |
|
320 | % kwshrink a inside directory x | |
382 | overwriting x/a shrinking keywords |
|
321 | overwriting x/a shrinking keywords | |
383 | % cat a |
|
322 | % cat a | |
384 | expand $Id$ |
|
323 | expand $Id$ | |
385 | do not process $Id: |
|
324 | do not process $Id: | |
386 | xxx $ |
|
325 | xxx $ | |
387 | $Xinfo$ |
|
326 | $Xinfo$ | |
388 | % kwexpand nonexistent |
|
327 | % kwexpand nonexistent | |
389 | nonexistent: |
|
328 | nonexistent: | |
390 | % hg serve |
|
329 | % hg serve | |
391 | % expansion |
|
330 | % expansion | |
392 | % hgweb file |
|
331 | % hgweb file | |
393 | 200 Script output follows |
|
332 | 200 Script output follows | |
394 |
|
333 | |||
395 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
334 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
396 | do not process $Id: |
|
335 | do not process $Id: | |
397 | xxx $ |
|
336 | xxx $ | |
398 | $Xinfo: User Name <user@example.com>: firstline $ |
|
337 | $Xinfo: User Name <user@example.com>: firstline $ | |
399 | % no expansion |
|
338 | % no expansion | |
400 | % hgweb annotate |
|
339 | % hgweb annotate | |
401 | 200 Script output follows |
|
340 | 200 Script output follows | |
402 |
|
341 | |||
403 |
|
342 | |||
404 | user@1: expand $Id$ |
|
343 | user@1: expand $Id$ | |
405 | user@1: do not process $Id: |
|
344 | user@1: do not process $Id: | |
406 | user@1: xxx $ |
|
345 | user@1: xxx $ | |
407 | user@2: $Xinfo$ |
|
346 | user@2: $Xinfo$ | |
408 |
|
347 | |||
409 |
|
348 | |||
410 |
|
349 | |||
411 |
|
350 | |||
412 | % hgweb changeset |
|
351 | % hgweb changeset | |
413 | 200 Script output follows |
|
352 | 200 Script output follows | |
414 |
|
353 | |||
415 |
|
354 | |||
416 | # HG changeset patch |
|
355 | # HG changeset patch | |
417 | # User User Name <user@example.com> |
|
356 | # User User Name <user@example.com> | |
418 | # Date 3 0 |
|
357 | # Date 3 0 | |
419 | # Node ID cfa68229c1167443337266ebac453c73b1d5d16e |
|
358 | # Node ID cfa68229c1167443337266ebac453c73b1d5d16e | |
420 | # Parent bb948857c743469b22bbf51f7ec8112279ca5d83 |
|
359 | # Parent bb948857c743469b22bbf51f7ec8112279ca5d83 | |
421 | xa |
|
360 | xa | |
422 |
|
361 | |||
423 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
362 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
424 | +++ b/x/a Thu Jan 01 00:00:03 1970 +0000 |
|
363 | +++ b/x/a Thu Jan 01 00:00:03 1970 +0000 | |
425 | @@ -0,0 +1,4 @@ |
|
364 | @@ -0,0 +1,4 @@ | |
426 | +expand $Id$ |
|
365 | +expand $Id$ | |
427 | +do not process $Id: |
|
366 | +do not process $Id: | |
428 | +xxx $ |
|
367 | +xxx $ | |
429 | +$Xinfo$ |
|
368 | +$Xinfo$ | |
430 |
|
369 | |||
431 | % hgweb filediff |
|
370 | % hgweb filediff | |
432 | 200 Script output follows |
|
371 | 200 Script output follows | |
433 |
|
372 | |||
434 |
|
373 | |||
435 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
374 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
436 | +++ b/a Thu Jan 01 00:00:02 1970 +0000 |
|
375 | +++ b/a Thu Jan 01 00:00:02 1970 +0000 | |
437 | @@ -1,3 +1,4 @@ |
|
376 | @@ -1,3 +1,4 @@ | |
438 | expand $Id$ |
|
377 | expand $Id$ | |
439 | do not process $Id: |
|
378 | do not process $Id: | |
440 | xxx $ |
|
379 | xxx $ | |
441 | +$Xinfo$ |
|
380 | +$Xinfo$ | |
442 |
|
381 | |||
443 |
|
382 | |||
444 |
|
383 | |||
445 |
|
384 | |||
446 | % errors encountered |
|
385 | % errors encountered | |
447 | % merge/resolve |
|
386 | % merge/resolve | |
448 | % simplemerge |
|
387 | % simplemerge | |
449 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
388 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
450 | created new head |
|
389 | created new head | |
451 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
390 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
452 | (branch merge, don't forget to commit) |
|
391 | (branch merge, don't forget to commit) | |
453 | $Id: m 8731e1dadc99 Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
392 | $Id: m 8731e1dadc99 Thu, 01 Jan 1970 00:00:00 +0000 test $ | |
454 | foo |
|
393 | foo | |
455 | % conflict |
|
394 | % conflict | |
456 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
395 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
457 | created new head |
|
396 | created new head | |
458 | merging m |
|
397 | merging m | |
459 | warning: conflicts during merge. |
|
398 | warning: conflicts during merge. | |
460 | merging m failed! |
|
399 | merging m failed! | |
461 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
400 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
462 | use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon |
|
401 | use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon | |
463 | % keyword stays outside conflict zone |
|
402 | % keyword stays outside conflict zone | |
464 | $Id$ |
|
403 | $Id$ | |
465 | <<<<<<< local |
|
404 | <<<<<<< local | |
466 | bar |
|
405 | bar | |
467 | ======= |
|
406 | ======= | |
468 | foo |
|
407 | foo | |
469 | >>>>>>> other |
|
408 | >>>>>>> other | |
470 | % resolve to local |
|
409 | % resolve to local | |
471 | $Id: m 43dfd2854b5b Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
410 | $Id: m 43dfd2854b5b Thu, 01 Jan 1970 00:00:00 +0000 test $ | |
472 | bar |
|
411 | bar | |
473 | % switch off expansion |
|
412 | % switch off expansion | |
474 | % kwshrink with unknown file u |
|
413 | % kwshrink with unknown file u | |
475 | overwriting a shrinking keywords |
|
414 | overwriting a shrinking keywords | |
476 | overwriting m shrinking keywords |
|
415 | overwriting m shrinking keywords | |
477 | overwriting x/a shrinking keywords |
|
416 | overwriting x/a shrinking keywords | |
478 | % cat |
|
417 | % cat | |
479 | expand $Id$ |
|
418 | expand $Id$ | |
480 | do not process $Id: |
|
419 | do not process $Id: | |
481 | xxx $ |
|
420 | xxx $ | |
482 | $Xinfo$ |
|
421 | $Xinfo$ | |
483 | ignore $Id$ |
|
422 | ignore $Id$ | |
484 | % hg cat |
|
423 | % hg cat | |
485 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
424 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ | |
486 | do not process $Id: |
|
425 | do not process $Id: | |
487 | xxx $ |
|
426 | xxx $ | |
488 | $Xinfo: User Name <user@example.com>: firstline $ |
|
427 | $Xinfo: User Name <user@example.com>: firstline $ | |
489 | ignore $Id$ |
|
428 | ignore $Id$ | |
490 | a |
|
429 | a | |
491 | % cat |
|
430 | % cat | |
492 | expand $Id$ |
|
431 | expand $Id$ | |
493 | do not process $Id: |
|
432 | do not process $Id: | |
494 | xxx $ |
|
433 | xxx $ | |
495 | $Xinfo$ |
|
434 | $Xinfo$ | |
496 | ignore $Id$ |
|
435 | ignore $Id$ | |
497 | % hg cat |
|
436 | % hg cat | |
498 | expand $Id$ |
|
437 | expand $Id$ | |
499 | do not process $Id: |
|
438 | do not process $Id: | |
500 | xxx $ |
|
439 | xxx $ | |
501 | $Xinfo$ |
|
440 | $Xinfo$ | |
502 | ignore $Id$ |
|
441 | ignore $Id$ | |
503 | a |
|
442 | a |
General Comments 0
You need to be logged in to leave comments.
Login now