Show More
@@ -1,141 +1,141 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | "$TESTDIR/hghave" pygments || exit 80 |
|
4 | 4 | |
|
5 | 5 | cat <<EOF >> $HGRCPATH |
|
6 | 6 | [extensions] |
|
7 |
|
|
|
7 | highlight = | |
|
8 | 8 | [web] |
|
9 | 9 | pygments_style = friendly |
|
10 | 10 | EOF |
|
11 | 11 | |
|
12 | 12 | hg init test |
|
13 | 13 | cd test |
|
14 | 14 | # create random Python file to exercise Pygments |
|
15 | 15 | cat <<EOF > primes.py |
|
16 | 16 | #!/usr/bin/env python |
|
17 | 17 | |
|
18 | 18 | """Fun with generators. Corresponding Haskell implementation: |
|
19 | 19 | |
|
20 | 20 | primes = 2 : sieve [3, 5..] |
|
21 | 21 | where sieve (p:ns) = p : sieve [n | n <- ns, mod n p /= 0] |
|
22 | 22 | """ |
|
23 | 23 | |
|
24 | 24 | from itertools import dropwhile, ifilter, islice, count, chain |
|
25 | 25 | |
|
26 | 26 | def primes(): |
|
27 | 27 | """Generate all primes.""" |
|
28 | 28 | def sieve(ns): |
|
29 | 29 | p = ns.next() |
|
30 | 30 | # It is important to yield *here* in order to stop the |
|
31 | 31 | # infinite recursion. |
|
32 | 32 | yield p |
|
33 | 33 | ns = ifilter(lambda n: n % p != 0, ns) |
|
34 | 34 | for n in sieve(ns): |
|
35 | 35 | yield n |
|
36 | 36 | |
|
37 | 37 | odds = ifilter(lambda i: i % 2 == 1, count()) |
|
38 | 38 | return chain([2], sieve(dropwhile(lambda n: n < 3, odds))) |
|
39 | 39 | |
|
40 | 40 | if __name__ == "__main__": |
|
41 | 41 | import sys |
|
42 | 42 | try: |
|
43 | 43 | n = int(sys.argv[1]) |
|
44 | 44 | except (ValueError, IndexError): |
|
45 | 45 | n = 10 |
|
46 | 46 | p = primes() |
|
47 | 47 | print "The first %d primes: %s" % (n, list(islice(p, n))) |
|
48 | 48 | EOF |
|
49 | 49 | |
|
50 | 50 | hg ci -Ama |
|
51 | 51 | |
|
52 | 52 | echo % hg serve |
|
53 | 53 | hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log |
|
54 | 54 | cat hg.pid >> $DAEMON_PIDS |
|
55 | 55 | |
|
56 | 56 | echo % hgweb filerevision, html |
|
57 | 57 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/primes.py') \ |
|
58 | 58 | | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mf\"/class=\"mi\"/g" |
|
59 | 59 | |
|
60 | 60 | echo % hgweb fileannotate, html |
|
61 | 61 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/primes.py') \ |
|
62 | 62 | | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mi\"/class=\"mf\"/g" |
|
63 | 63 | |
|
64 | 64 | echo % hgweb fileannotate, raw |
|
65 | 65 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/primes.py?style=raw') \ |
|
66 | 66 | | sed "s/test@//" > a |
|
67 | 67 | |
|
68 | 68 | echo "200 Script output follows" > b |
|
69 | 69 | echo "" >> b |
|
70 | 70 | echo "" >> b |
|
71 | 71 | hg annotate "primes.py" >> b |
|
72 | 72 | echo "" >> b |
|
73 | 73 | echo "" >> b |
|
74 | 74 | echo "" >> b |
|
75 | 75 | echo "" >> b |
|
76 | 76 | |
|
77 | 77 | diff -u b a |
|
78 | 78 | |
|
79 | 79 | echo |
|
80 | 80 | echo % hgweb filerevision, raw |
|
81 | 81 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/primes.py?style=raw') \ |
|
82 | 82 | > a |
|
83 | 83 | |
|
84 | 84 | echo "200 Script output follows" > b |
|
85 | 85 | echo "" >> b |
|
86 | 86 | hg cat primes.py >> b |
|
87 | 87 | |
|
88 | 88 | diff -u b a |
|
89 | 89 | |
|
90 | 90 | echo |
|
91 | 91 | echo % hgweb highlightcss friendly |
|
92 | 92 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/highlightcss' > out |
|
93 | 93 | head -n 4 out |
|
94 | 94 | rm out |
|
95 | 95 | |
|
96 | 96 | echo % errors encountered |
|
97 | 97 | cat errors.log |
|
98 | 98 | "$TESTDIR/killdaemons.py" |
|
99 | 99 | |
|
100 | 100 | # Change the pygments style |
|
101 | 101 | cat > .hg/hgrc <<EOF |
|
102 | 102 | [web] |
|
103 | 103 | pygments_style = fruity |
|
104 | 104 | EOF |
|
105 | 105 | |
|
106 | 106 | echo % hg serve again |
|
107 | 107 | hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log |
|
108 | 108 | cat hg.pid >> $DAEMON_PIDS |
|
109 | 109 | |
|
110 | 110 | echo % hgweb highlightcss fruity |
|
111 | 111 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/highlightcss' > out |
|
112 | 112 | head -n 4 out |
|
113 | 113 | rm out |
|
114 | 114 | |
|
115 | 115 | echo % errors encountered |
|
116 | 116 | cat errors.log |
|
117 | 117 | |
|
118 | 118 | cd .. |
|
119 | 119 | hg init eucjp |
|
120 | 120 | cd eucjp |
|
121 | 121 | |
|
122 | 122 | printf '\265\376\n' >> eucjp.txt # Japanese kanji "Kyo" |
|
123 | 123 | |
|
124 | 124 | hg ci -Ama |
|
125 | 125 | |
|
126 | 126 | hgserveget () { |
|
127 | 127 | "$TESTDIR/killdaemons.py" |
|
128 | 128 | echo % HGENCODING="$1" hg serve |
|
129 | 129 | HGENCODING="$1" hg serve -p $HGPORT -d -n test --pid-file=hg.pid -E errors.log |
|
130 | 130 | cat hg.pid >> $DAEMON_PIDS |
|
131 | 131 | |
|
132 | 132 | echo % hgweb filerevision, html |
|
133 | 133 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT "/file/tip/$2" \ |
|
134 | 134 | | grep '<div class="parity0 source">' | $TESTDIR/printrepr.py |
|
135 | 135 | echo % errors encountered |
|
136 | 136 | cat errors.log |
|
137 | 137 | } |
|
138 | 138 | |
|
139 | 139 | hgserveget euc-jp eucjp.txt |
|
140 | 140 | hgserveget utf-8 eucjp.txt |
|
141 | 141 | hgserveget us-ascii eucjp.txt |
@@ -1,372 +1,372 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | cat <<EOF >> $HGRCPATH |
|
4 | 4 | [extensions] |
|
5 |
|
|
|
6 | hgext.mq = | |
|
7 |
|
|
|
8 |
|
|
|
5 | keyword = | |
|
6 | mq = | |
|
7 | notify = | |
|
8 | transplant = | |
|
9 | 9 | EOF |
|
10 | 10 | |
|
11 | 11 | # demo before [keyword] files are set up |
|
12 | 12 | # would succeed without uisetup otherwise |
|
13 | 13 | echo % hg kwdemo |
|
14 | 14 | hg --quiet kwdemo \ |
|
15 | 15 | | sed -e 's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!' \ |
|
16 | 16 | -e 's/,v [a-z0-9][a-z0-9]* /,v xxxxxxxxxxxx /' \ |
|
17 | 17 | -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \ |
|
18 | 18 | -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!' |
|
19 | 19 | |
|
20 | 20 | hg --quiet kwdemo "Branch = {branches}" |
|
21 | 21 | |
|
22 | 22 | cat <<EOF >> $HGRCPATH |
|
23 | 23 | [keyword] |
|
24 | 24 | * = |
|
25 | 25 | b = ignore |
|
26 | 26 | [hooks] |
|
27 | 27 | commit= |
|
28 | 28 | commit.test=cp a hooktest |
|
29 | 29 | EOF |
|
30 | 30 | |
|
31 | 31 | hg init Test-bndl |
|
32 | 32 | cd Test-bndl |
|
33 | 33 | |
|
34 | 34 | echo % kwshrink should exit silently in empty/invalid repo |
|
35 | 35 | hg kwshrink |
|
36 | 36 | |
|
37 | 37 | # Symlinks cannot be created on Windows. The bundle was made with: |
|
38 | 38 | # |
|
39 | 39 | # hg init t |
|
40 | 40 | # cd t |
|
41 | 41 | # echo a > a |
|
42 | 42 | # ln -s a sym |
|
43 | 43 | # hg add sym |
|
44 | 44 | # hg ci -m addsym -u mercurial |
|
45 | 45 | # hg bundle --base null ../test-keyword.hg |
|
46 | 46 | # |
|
47 | 47 | hg pull -u "$TESTDIR/test-keyword.hg" \ |
|
48 | 48 | | sed 's/pulling from.*test-keyword.hg/pulling from test-keyword.hg/' |
|
49 | 49 | |
|
50 | 50 | echo 'expand $Id$' > a |
|
51 | 51 | echo 'do not process $Id:' >> a |
|
52 | 52 | echo 'xxx $' >> a |
|
53 | 53 | echo 'ignore $Id$' > b |
|
54 | 54 | echo % cat |
|
55 | 55 | cat a b |
|
56 | 56 | |
|
57 | 57 | echo % no kwfiles |
|
58 | 58 | hg kwfiles |
|
59 | 59 | echo % untracked candidates |
|
60 | 60 | hg -v kwfiles --unknown |
|
61 | 61 | |
|
62 | 62 | echo % addremove |
|
63 | 63 | hg addremove |
|
64 | 64 | echo % status |
|
65 | 65 | hg status |
|
66 | 66 | |
|
67 | 67 | echo % default keyword expansion including commit hook |
|
68 | 68 | echo % interrupted commit should not change state or run commit hook |
|
69 | 69 | hg --debug commit |
|
70 | 70 | echo % status |
|
71 | 71 | hg status |
|
72 | 72 | |
|
73 | 73 | echo % commit |
|
74 | 74 | hg --debug commit -mabsym -u 'User Name <user@example.com>' |
|
75 | 75 | echo % status |
|
76 | 76 | hg status |
|
77 | 77 | echo % identify |
|
78 | 78 | hg debugrebuildstate |
|
79 | 79 | hg --quiet identify |
|
80 | 80 | echo % cat |
|
81 | 81 | cat a b |
|
82 | 82 | echo % hg cat |
|
83 | 83 | hg cat sym a b |
|
84 | 84 | |
|
85 | 85 | echo |
|
86 | 86 | echo % diff a hooktest |
|
87 | 87 | diff a hooktest |
|
88 | 88 | |
|
89 | 89 | echo % removing commit hook from config |
|
90 | 90 | sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook |
|
91 | 91 | mv $HGRCPATH.nohook $HGRCPATH |
|
92 | 92 | rm hooktest |
|
93 | 93 | |
|
94 | 94 | echo % bundle |
|
95 | 95 | hg bundle --base null ../kw.hg |
|
96 | 96 | |
|
97 | 97 | cd .. |
|
98 | 98 | hg init Test |
|
99 | 99 | cd Test |
|
100 | 100 | |
|
101 | 101 | echo % notify on pull to check whether keywords stay as is in email |
|
102 | 102 | echo % ie. if patch.diff wrapper acts as it should |
|
103 | 103 | |
|
104 | 104 | cat <<EOF >> $HGRCPATH |
|
105 | 105 | [hooks] |
|
106 | 106 | incoming.notify = python:hgext.notify.hook |
|
107 | 107 | [notify] |
|
108 | 108 | sources = pull |
|
109 | 109 | diffstat = False |
|
110 | 110 | [reposubs] |
|
111 | 111 | * = Test |
|
112 | 112 | EOF |
|
113 | 113 | |
|
114 | 114 | echo % pull from bundle |
|
115 | 115 | hg pull -u ../kw.hg 2>&1 | sed -e '/^Content-Type:/,/^diffs (/ d' |
|
116 | 116 | |
|
117 | 117 | echo % remove notify config |
|
118 | 118 | sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nonotify |
|
119 | 119 | mv $HGRCPATH.nonotify $HGRCPATH |
|
120 | 120 | |
|
121 | 121 | echo % touch |
|
122 | 122 | touch a b |
|
123 | 123 | echo % status |
|
124 | 124 | hg status |
|
125 | 125 | |
|
126 | 126 | rm sym a b |
|
127 | 127 | echo % update |
|
128 | 128 | hg update -C |
|
129 | 129 | echo % cat |
|
130 | 130 | cat a b |
|
131 | 131 | |
|
132 | 132 | echo % check whether expansion is filewise |
|
133 | 133 | echo '$Id$' > c |
|
134 | 134 | echo 'tests for different changenodes' >> c |
|
135 | 135 | echo % commit c |
|
136 | 136 | hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>' |
|
137 | 137 | echo % force expansion |
|
138 | 138 | hg -v kwexpand |
|
139 | 139 | echo % compare changenodes in a c |
|
140 | 140 | cat a c |
|
141 | 141 | |
|
142 | 142 | echo % qinit -c |
|
143 | 143 | hg qinit -c |
|
144 | 144 | echo % qimport |
|
145 | 145 | hg qimport -r tip -n mqtest.diff |
|
146 | 146 | echo % qcommit |
|
147 | 147 | hg qcommit -mqtest |
|
148 | 148 | echo % keywords should not be expanded in patch |
|
149 | 149 | cat .hg/patches/mqtest.diff |
|
150 | 150 | echo % qpop |
|
151 | 151 | hg qpop |
|
152 | 152 | echo % qgoto - should imply qpush |
|
153 | 153 | hg qgoto mqtest.diff |
|
154 | 154 | echo % cat |
|
155 | 155 | cat c |
|
156 | 156 | echo % qpop and move on |
|
157 | 157 | hg qpop |
|
158 | 158 | |
|
159 | 159 | echo % copy |
|
160 | 160 | hg cp a c |
|
161 | 161 | |
|
162 | 162 | echo % kwfiles added |
|
163 | 163 | hg kwfiles |
|
164 | 164 | |
|
165 | 165 | echo % commit |
|
166 | 166 | hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>' |
|
167 | 167 | echo % cat a c |
|
168 | 168 | cat a c |
|
169 | 169 | echo % touch copied c |
|
170 | 170 | touch c |
|
171 | 171 | echo % status |
|
172 | 172 | hg status |
|
173 | 173 | |
|
174 | 174 | echo % kwfiles |
|
175 | 175 | hg kwfiles |
|
176 | 176 | echo % ignored files |
|
177 | 177 | hg -v kwfiles --ignore |
|
178 | 178 | echo % all files |
|
179 | 179 | hg kwfiles --all |
|
180 | 180 | |
|
181 | 181 | echo % diff --rev |
|
182 | 182 | hg diff --rev 1 | grep -v 'b/c' |
|
183 | 183 | |
|
184 | 184 | echo % rollback |
|
185 | 185 | hg rollback |
|
186 | 186 | echo % status |
|
187 | 187 | hg status |
|
188 | 188 | echo % update -C |
|
189 | 189 | hg update --clean |
|
190 | 190 | |
|
191 | 191 | echo % custom keyword expansion |
|
192 | 192 | echo % try with kwdemo |
|
193 | 193 | hg --quiet kwdemo "Xinfo = {author}: {desc}" |
|
194 | 194 | |
|
195 | 195 | cat <<EOF >>$HGRCPATH |
|
196 | 196 | [keywordmaps] |
|
197 | 197 | Id = {file} {node|short} {date|rfc822date} {author|user} |
|
198 | 198 | Xinfo = {author}: {desc} |
|
199 | 199 | EOF |
|
200 | 200 | |
|
201 | 201 | echo % cat |
|
202 | 202 | cat a b |
|
203 | 203 | echo % hg cat |
|
204 | 204 | hg cat sym a b |
|
205 | 205 | |
|
206 | 206 | echo |
|
207 | 207 | echo '$Xinfo$' >> a |
|
208 | 208 | cat <<EOF >> log |
|
209 | 209 | firstline |
|
210 | 210 | secondline |
|
211 | 211 | EOF |
|
212 | 212 | |
|
213 | 213 | echo % interrupted commit should not change state |
|
214 | 214 | hg commit |
|
215 | 215 | echo % status |
|
216 | 216 | hg status |
|
217 | 217 | |
|
218 | 218 | echo % commit |
|
219 | 219 | hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>' |
|
220 | 220 | rm log |
|
221 | 221 | echo % status |
|
222 | 222 | hg status |
|
223 | 223 | echo % verify |
|
224 | 224 | hg verify |
|
225 | 225 | |
|
226 | 226 | echo % cat |
|
227 | 227 | cat a b |
|
228 | 228 | echo % hg cat |
|
229 | 229 | hg cat sym a b |
|
230 | 230 | echo |
|
231 | 231 | echo % annotate |
|
232 | 232 | hg annotate a |
|
233 | 233 | |
|
234 | 234 | echo % remove |
|
235 | 235 | hg debugrebuildstate |
|
236 | 236 | hg remove a |
|
237 | 237 | hg --debug commit -m rma |
|
238 | 238 | echo % status |
|
239 | 239 | hg status |
|
240 | 240 | echo % rollback |
|
241 | 241 | hg rollback |
|
242 | 242 | echo % status |
|
243 | 243 | hg status |
|
244 | 244 | echo % revert a |
|
245 | 245 | hg revert --no-backup --rev tip a |
|
246 | 246 | echo % cat a |
|
247 | 247 | cat a |
|
248 | 248 | |
|
249 | 249 | echo % clone to test incoming |
|
250 | 250 | cd .. |
|
251 | 251 | hg clone -r1 Test Test-a |
|
252 | 252 | cd Test-a |
|
253 | 253 | cat <<EOF >> .hg/hgrc |
|
254 | 254 | [paths] |
|
255 | 255 | default = ../Test |
|
256 | 256 | EOF |
|
257 | 257 | echo % incoming |
|
258 | 258 | # remove path to temp dir |
|
259 | 259 | hg incoming | sed -e 's/^\(comparing with \).*\(test-keyword.*\)/\1\2/' |
|
260 | 260 | |
|
261 | 261 | sed -e 's/Id.*/& rejecttest/' a > a.new |
|
262 | 262 | mv a.new a |
|
263 | 263 | echo % commit rejecttest |
|
264 | 264 | hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' |
|
265 | 265 | echo % export |
|
266 | 266 | hg export -o ../rejecttest.diff tip |
|
267 | 267 | |
|
268 | 268 | cd ../Test |
|
269 | 269 | echo % import |
|
270 | 270 | hg import ../rejecttest.diff |
|
271 | 271 | echo % cat |
|
272 | 272 | cat a b |
|
273 | 273 | echo |
|
274 | 274 | echo % rollback |
|
275 | 275 | hg rollback |
|
276 | 276 | echo % clean update |
|
277 | 277 | hg update --clean |
|
278 | 278 | |
|
279 | 279 | echo % kwexpand/kwshrink on selected files |
|
280 | 280 | mkdir x |
|
281 | 281 | echo % copy a x/a |
|
282 | 282 | hg copy a x/a |
|
283 | 283 | echo % kwexpand a |
|
284 | 284 | hg --verbose kwexpand a |
|
285 | 285 | echo % kwexpand x/a should abort |
|
286 | 286 | hg --verbose kwexpand x/a |
|
287 | 287 | cd x |
|
288 | 288 | hg --debug commit -m xa -d '3 0' -u 'User Name <user@example.com>' |
|
289 | 289 | echo % cat a |
|
290 | 290 | cat a |
|
291 | 291 | echo % kwshrink a inside directory x |
|
292 | 292 | hg --verbose kwshrink a |
|
293 | 293 | echo % cat a |
|
294 | 294 | cat a |
|
295 | 295 | cd .. |
|
296 | 296 | |
|
297 | 297 | echo % kwexpand nonexistent |
|
298 | 298 | hg kwexpand nonexistent 2>&1 | sed 's/nonexistent:.*/nonexistent:/' |
|
299 | 299 | |
|
300 | 300 | echo % hg serve |
|
301 | 301 | hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
302 | 302 | cat hg.pid >> $DAEMON_PIDS |
|
303 | 303 | echo % expansion |
|
304 | 304 | echo % hgweb file |
|
305 | 305 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/a/?style=raw') |
|
306 | 306 | echo % no expansion |
|
307 | 307 | echo % hgweb annotate |
|
308 | 308 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/a/?style=raw') |
|
309 | 309 | echo % hgweb changeset |
|
310 | 310 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip/?style=raw') |
|
311 | 311 | echo % hgweb filediff |
|
312 | 312 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/bb948857c743/a?style=raw') |
|
313 | 313 | echo % errors encountered |
|
314 | 314 | cat errors.log |
|
315 | 315 | |
|
316 | 316 | echo % merge/resolve |
|
317 | 317 | echo '$Id$' > m |
|
318 | 318 | hg add m |
|
319 | 319 | hg commit -m 4kw |
|
320 | 320 | echo foo >> m |
|
321 | 321 | hg commit -m 5foo |
|
322 | 322 | echo % simplemerge |
|
323 | 323 | hg update 4 |
|
324 | 324 | echo foo >> m |
|
325 | 325 | hg commit -m 6foo |
|
326 | 326 | hg merge |
|
327 | 327 | hg commit -m simplemerge |
|
328 | 328 | cat m |
|
329 | 329 | echo % conflict |
|
330 | 330 | hg update 4 |
|
331 | 331 | echo bar >> m |
|
332 | 332 | hg commit -m 8bar |
|
333 | 333 | hg merge |
|
334 | 334 | echo % keyword stays outside conflict zone |
|
335 | 335 | cat m |
|
336 | 336 | echo % resolve to local |
|
337 | 337 | HGMERGE=internal:local hg resolve -a |
|
338 | 338 | hg commit -m localresolve |
|
339 | 339 | cat m |
|
340 | 340 | |
|
341 | 341 | echo % test restricted mode with transplant -b |
|
342 | 342 | hg update 6 |
|
343 | 343 | hg branch foo |
|
344 | 344 | mv a a.bak |
|
345 | 345 | echo foobranch > a |
|
346 | 346 | cat a.bak >> a |
|
347 | 347 | rm a.bak |
|
348 | 348 | hg commit -m 9foobranch |
|
349 | 349 | hg update default |
|
350 | 350 | hg -y transplant -b foo tip |
|
351 | 351 | echo % no expansion in changeset |
|
352 | 352 | hg tip -p |
|
353 | 353 | echo % expansion in file |
|
354 | 354 | head -n 2 a |
|
355 | 355 | hg -q rollback |
|
356 | 356 | hg -q update -C |
|
357 | 357 | |
|
358 | 358 | echo % switch off expansion |
|
359 | 359 | echo % kwshrink with unknown file u |
|
360 | 360 | cp a u |
|
361 | 361 | hg --verbose kwshrink |
|
362 | 362 | echo % cat |
|
363 | 363 | cat a b |
|
364 | 364 | echo % hg cat |
|
365 | 365 | hg cat sym a b |
|
366 | 366 | echo |
|
367 | 367 | rm $HGRCPATH |
|
368 | 368 | echo % cat |
|
369 | 369 | cat a b |
|
370 | 370 | echo % hg cat |
|
371 | 371 | hg cat sym a b |
|
372 | 372 | echo |
@@ -1,480 +1,480 b'' | |||
|
1 | 1 | % hg kwdemo |
|
2 | 2 | [extensions] |
|
3 |
|
|
|
3 | keyword = | |
|
4 | 4 | [keyword] |
|
5 | 5 | demo.txt = |
|
6 | 6 | [keywordmaps] |
|
7 | 7 | Author = {author|user} |
|
8 | 8 | Date = {date|utcdate} |
|
9 | 9 | Header = {root}/{file},v {node|short} {date|utcdate} {author|user} |
|
10 | 10 | Id = {file|basename},v {node|short} {date|utcdate} {author|user} |
|
11 | 11 | RCSFile = {file|basename},v |
|
12 | 12 | RCSfile = {file|basename},v |
|
13 | 13 | Revision = {node|short} |
|
14 | 14 | Source = {root}/{file},v |
|
15 | 15 | $Author: test $ |
|
16 | 16 | $Date: 2000/00/00 00:00:00 $ |
|
17 | 17 | $Header: /TMP/demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
|
18 | 18 | $Id: demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
|
19 | 19 | $RCSFile: demo.txt,v $ |
|
20 | 20 | $RCSfile: demo.txt,v $ |
|
21 | 21 | $Revision: xxxxxxxxxxxx $ |
|
22 | 22 | $Source: /TMP/demo.txt,v $ |
|
23 | 23 | [extensions] |
|
24 |
|
|
|
24 | keyword = | |
|
25 | 25 | [keyword] |
|
26 | 26 | demo.txt = |
|
27 | 27 | [keywordmaps] |
|
28 | 28 | Branch = {branches} |
|
29 | 29 | $Branch: demobranch $ |
|
30 | 30 | % kwshrink should exit silently in empty/invalid repo |
|
31 | 31 | pulling from test-keyword.hg |
|
32 | 32 | requesting all changes |
|
33 | 33 | adding changesets |
|
34 | 34 | adding manifests |
|
35 | 35 | adding file changes |
|
36 | 36 | added 1 changesets with 1 changes to 1 files |
|
37 | 37 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
38 | 38 | % cat |
|
39 | 39 | expand $Id$ |
|
40 | 40 | do not process $Id: |
|
41 | 41 | xxx $ |
|
42 | 42 | ignore $Id$ |
|
43 | 43 | % no kwfiles |
|
44 | 44 | % untracked candidates |
|
45 | 45 | k a |
|
46 | 46 | % addremove |
|
47 | 47 | adding a |
|
48 | 48 | adding b |
|
49 | 49 | % status |
|
50 | 50 | A a |
|
51 | 51 | A b |
|
52 | 52 | % default keyword expansion including commit hook |
|
53 | 53 | % interrupted commit should not change state or run commit hook |
|
54 | 54 | abort: empty commit message |
|
55 | 55 | % status |
|
56 | 56 | A a |
|
57 | 57 | A b |
|
58 | 58 | % commit |
|
59 | 59 | a |
|
60 | 60 | b |
|
61 | 61 | overwriting a expanding keywords |
|
62 | 62 | running hook commit.test: cp a hooktest |
|
63 | 63 | committed changeset 1:ef63ca68695bc9495032c6fda1350c71e6d256e9 |
|
64 | 64 | % status |
|
65 | 65 | ? hooktest |
|
66 | 66 | % identify |
|
67 | 67 | ef63ca68695b |
|
68 | 68 | % cat |
|
69 | 69 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
70 | 70 | do not process $Id: |
|
71 | 71 | xxx $ |
|
72 | 72 | ignore $Id$ |
|
73 | 73 | % hg cat |
|
74 | 74 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
75 | 75 | do not process $Id: |
|
76 | 76 | xxx $ |
|
77 | 77 | ignore $Id$ |
|
78 | 78 | a |
|
79 | 79 | % diff a hooktest |
|
80 | 80 | % removing commit hook from config |
|
81 | 81 | % bundle |
|
82 | 82 | 2 changesets found |
|
83 | 83 | % notify on pull to check whether keywords stay as is in email |
|
84 | 84 | % ie. if patch.diff wrapper acts as it should |
|
85 | 85 | % pull from bundle |
|
86 | 86 | pulling from ../kw.hg |
|
87 | 87 | requesting all changes |
|
88 | 88 | adding changesets |
|
89 | 89 | adding manifests |
|
90 | 90 | adding file changes |
|
91 | 91 | added 2 changesets with 3 changes to 3 files |
|
92 | 92 | |
|
93 | 93 | diff -r 000000000000 -r a2392c293916 sym |
|
94 | 94 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
95 | 95 | +++ b/sym Sat Feb 09 20:25:47 2008 +0100 |
|
96 | 96 | @@ -0,0 +1,1 @@ |
|
97 | 97 | +a |
|
98 | 98 | \ No newline at end of file |
|
99 | 99 | |
|
100 | 100 | diff -r a2392c293916 -r ef63ca68695b a |
|
101 | 101 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
102 | 102 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
103 | 103 | @@ -0,0 +1,3 @@ |
|
104 | 104 | +expand $Id$ |
|
105 | 105 | +do not process $Id: |
|
106 | 106 | +xxx $ |
|
107 | 107 | diff -r a2392c293916 -r ef63ca68695b b |
|
108 | 108 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
109 | 109 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
110 | 110 | @@ -0,0 +1,1 @@ |
|
111 | 111 | +ignore $Id$ |
|
112 | 112 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
113 | 113 | % remove notify config |
|
114 | 114 | % touch |
|
115 | 115 | % status |
|
116 | 116 | % update |
|
117 | 117 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
118 | 118 | % cat |
|
119 | 119 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
120 | 120 | do not process $Id: |
|
121 | 121 | xxx $ |
|
122 | 122 | ignore $Id$ |
|
123 | 123 | % check whether expansion is filewise |
|
124 | 124 | % commit c |
|
125 | 125 | adding c |
|
126 | 126 | % force expansion |
|
127 | 127 | overwriting a expanding keywords |
|
128 | 128 | overwriting c expanding keywords |
|
129 | 129 | % compare changenodes in a c |
|
130 | 130 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
131 | 131 | do not process $Id: |
|
132 | 132 | xxx $ |
|
133 | 133 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
|
134 | 134 | tests for different changenodes |
|
135 | 135 | % qinit -c |
|
136 | 136 | % qimport |
|
137 | 137 | % qcommit |
|
138 | 138 | % keywords should not be expanded in patch |
|
139 | 139 | # HG changeset patch |
|
140 | 140 | # User User Name <user@example.com> |
|
141 | 141 | # Date 1 0 |
|
142 | 142 | # Node ID 40a904bbbe4cd4ab0a1f28411e35db26341a40ad |
|
143 | 143 | # Parent ef63ca68695bc9495032c6fda1350c71e6d256e9 |
|
144 | 144 | cndiff |
|
145 | 145 | |
|
146 | 146 | diff -r ef63ca68695b -r 40a904bbbe4c c |
|
147 | 147 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
148 | 148 | +++ b/c Thu Jan 01 00:00:01 1970 +0000 |
|
149 | 149 | @@ -0,0 +1,2 @@ |
|
150 | 150 | +$Id$ |
|
151 | 151 | +tests for different changenodes |
|
152 | 152 | % qpop |
|
153 | 153 | popping mqtest.diff |
|
154 | 154 | patch queue now empty |
|
155 | 155 | % qgoto - should imply qpush |
|
156 | 156 | applying mqtest.diff |
|
157 | 157 | now at: mqtest.diff |
|
158 | 158 | % cat |
|
159 | 159 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
|
160 | 160 | tests for different changenodes |
|
161 | 161 | % qpop and move on |
|
162 | 162 | popping mqtest.diff |
|
163 | 163 | patch queue now empty |
|
164 | 164 | % copy |
|
165 | 165 | % kwfiles added |
|
166 | 166 | a |
|
167 | 167 | c |
|
168 | 168 | % commit |
|
169 | 169 | c |
|
170 | 170 | c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292 |
|
171 | 171 | overwriting c expanding keywords |
|
172 | 172 | committed changeset 2:e22d299ac0c2bd8897b3df5114374b9e4d4ca62f |
|
173 | 173 | % cat a c |
|
174 | 174 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
175 | 175 | do not process $Id: |
|
176 | 176 | xxx $ |
|
177 | 177 | expand $Id: c,v e22d299ac0c2 1970/01/01 00:00:01 user $ |
|
178 | 178 | do not process $Id: |
|
179 | 179 | xxx $ |
|
180 | 180 | % touch copied c |
|
181 | 181 | % status |
|
182 | 182 | % kwfiles |
|
183 | 183 | a |
|
184 | 184 | c |
|
185 | 185 | % ignored files |
|
186 | 186 | I b |
|
187 | 187 | I sym |
|
188 | 188 | % all files |
|
189 | 189 | K a |
|
190 | 190 | K c |
|
191 | 191 | I b |
|
192 | 192 | I sym |
|
193 | 193 | % diff --rev |
|
194 | 194 | diff -r ef63ca68695b c |
|
195 | 195 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
196 | 196 | @@ -0,0 +1,3 @@ |
|
197 | 197 | +expand $Id$ |
|
198 | 198 | +do not process $Id: |
|
199 | 199 | +xxx $ |
|
200 | 200 | % rollback |
|
201 | 201 | rolling back last transaction |
|
202 | 202 | % status |
|
203 | 203 | A c |
|
204 | 204 | % update -C |
|
205 | 205 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
206 | 206 | % custom keyword expansion |
|
207 | 207 | % try with kwdemo |
|
208 | 208 | [extensions] |
|
209 |
|
|
|
209 | keyword = | |
|
210 | 210 | [keyword] |
|
211 | 211 | * = |
|
212 | 212 | b = ignore |
|
213 | 213 | demo.txt = |
|
214 | 214 | [keywordmaps] |
|
215 | 215 | Xinfo = {author}: {desc} |
|
216 | 216 | $Xinfo: test: hg keyword config and expansion example $ |
|
217 | 217 | % cat |
|
218 | 218 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
219 | 219 | do not process $Id: |
|
220 | 220 | xxx $ |
|
221 | 221 | ignore $Id$ |
|
222 | 222 | % hg cat |
|
223 | 223 | expand $Id: a ef63ca68695b Thu, 01 Jan 1970 00:00:00 +0000 user $ |
|
224 | 224 | do not process $Id: |
|
225 | 225 | xxx $ |
|
226 | 226 | ignore $Id$ |
|
227 | 227 | a |
|
228 | 228 | % interrupted commit should not change state |
|
229 | 229 | abort: empty commit message |
|
230 | 230 | % status |
|
231 | 231 | M a |
|
232 | 232 | ? c |
|
233 | 233 | ? log |
|
234 | 234 | % commit |
|
235 | 235 | a |
|
236 | 236 | overwriting a expanding keywords |
|
237 | 237 | committed changeset 2:bb948857c743469b22bbf51f7ec8112279ca5d83 |
|
238 | 238 | % status |
|
239 | 239 | ? c |
|
240 | 240 | % verify |
|
241 | 241 | checking changesets |
|
242 | 242 | checking manifests |
|
243 | 243 | crosschecking files in changesets and manifests |
|
244 | 244 | checking files |
|
245 | 245 | 3 files, 3 changesets, 4 total revisions |
|
246 | 246 | % cat |
|
247 | 247 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
248 | 248 | do not process $Id: |
|
249 | 249 | xxx $ |
|
250 | 250 | $Xinfo: User Name <user@example.com>: firstline $ |
|
251 | 251 | ignore $Id$ |
|
252 | 252 | % hg cat |
|
253 | 253 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
254 | 254 | do not process $Id: |
|
255 | 255 | xxx $ |
|
256 | 256 | $Xinfo: User Name <user@example.com>: firstline $ |
|
257 | 257 | ignore $Id$ |
|
258 | 258 | a |
|
259 | 259 | % annotate |
|
260 | 260 | 1: expand $Id$ |
|
261 | 261 | 1: do not process $Id: |
|
262 | 262 | 1: xxx $ |
|
263 | 263 | 2: $Xinfo$ |
|
264 | 264 | % remove |
|
265 | 265 | committed changeset 3:d14c712653769de926994cf7fbb06c8fbd68f012 |
|
266 | 266 | % status |
|
267 | 267 | ? c |
|
268 | 268 | % rollback |
|
269 | 269 | rolling back last transaction |
|
270 | 270 | % status |
|
271 | 271 | R a |
|
272 | 272 | ? c |
|
273 | 273 | % revert a |
|
274 | 274 | % cat a |
|
275 | 275 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
276 | 276 | do not process $Id: |
|
277 | 277 | xxx $ |
|
278 | 278 | $Xinfo: User Name <user@example.com>: firstline $ |
|
279 | 279 | % clone to test incoming |
|
280 | 280 | requesting all changes |
|
281 | 281 | adding changesets |
|
282 | 282 | adding manifests |
|
283 | 283 | adding file changes |
|
284 | 284 | added 2 changesets with 3 changes to 3 files |
|
285 | 285 | updating to branch default |
|
286 | 286 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
287 | 287 | % incoming |
|
288 | 288 | comparing with test-keyword/Test |
|
289 | 289 | searching for changes |
|
290 | 290 | changeset: 2:bb948857c743 |
|
291 | 291 | tag: tip |
|
292 | 292 | user: User Name <user@example.com> |
|
293 | 293 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
294 | 294 | summary: firstline |
|
295 | 295 | |
|
296 | 296 | % commit rejecttest |
|
297 | 297 | a |
|
298 | 298 | overwriting a expanding keywords |
|
299 | 299 | committed changeset 2:85e279d709ffc28c9fdd1b868570985fc3d87082 |
|
300 | 300 | % export |
|
301 | 301 | % import |
|
302 | 302 | applying ../rejecttest.diff |
|
303 | 303 | % cat |
|
304 | 304 | expand $Id: a 4e0994474d25 Thu, 01 Jan 1970 00:00:03 +0000 user $ rejecttest |
|
305 | 305 | do not process $Id: rejecttest |
|
306 | 306 | xxx $ |
|
307 | 307 | $Xinfo: User Name <user@example.com>: rejects? $ |
|
308 | 308 | ignore $Id$ |
|
309 | 309 | |
|
310 | 310 | % rollback |
|
311 | 311 | rolling back last transaction |
|
312 | 312 | % clean update |
|
313 | 313 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
314 | 314 | % kwexpand/kwshrink on selected files |
|
315 | 315 | % copy a x/a |
|
316 | 316 | % kwexpand a |
|
317 | 317 | overwriting a expanding keywords |
|
318 | 318 | % kwexpand x/a should abort |
|
319 | 319 | abort: outstanding uncommitted changes |
|
320 | 320 | x/a |
|
321 | 321 | x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e |
|
322 | 322 | overwriting x/a expanding keywords |
|
323 | 323 | committed changeset 3:cfa68229c1167443337266ebac453c73b1d5d16e |
|
324 | 324 | % cat a |
|
325 | 325 | expand $Id: x/a cfa68229c116 Thu, 01 Jan 1970 00:00:03 +0000 user $ |
|
326 | 326 | do not process $Id: |
|
327 | 327 | xxx $ |
|
328 | 328 | $Xinfo: User Name <user@example.com>: xa $ |
|
329 | 329 | % kwshrink a inside directory x |
|
330 | 330 | overwriting x/a shrinking keywords |
|
331 | 331 | % cat a |
|
332 | 332 | expand $Id$ |
|
333 | 333 | do not process $Id: |
|
334 | 334 | xxx $ |
|
335 | 335 | $Xinfo$ |
|
336 | 336 | % kwexpand nonexistent |
|
337 | 337 | nonexistent: |
|
338 | 338 | % hg serve |
|
339 | 339 | % expansion |
|
340 | 340 | % hgweb file |
|
341 | 341 | 200 Script output follows |
|
342 | 342 | |
|
343 | 343 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
344 | 344 | do not process $Id: |
|
345 | 345 | xxx $ |
|
346 | 346 | $Xinfo: User Name <user@example.com>: firstline $ |
|
347 | 347 | % no expansion |
|
348 | 348 | % hgweb annotate |
|
349 | 349 | 200 Script output follows |
|
350 | 350 | |
|
351 | 351 | |
|
352 | 352 | user@1: expand $Id$ |
|
353 | 353 | user@1: do not process $Id: |
|
354 | 354 | user@1: xxx $ |
|
355 | 355 | user@2: $Xinfo$ |
|
356 | 356 | |
|
357 | 357 | |
|
358 | 358 | |
|
359 | 359 | |
|
360 | 360 | % hgweb changeset |
|
361 | 361 | 200 Script output follows |
|
362 | 362 | |
|
363 | 363 | |
|
364 | 364 | # HG changeset patch |
|
365 | 365 | # User User Name <user@example.com> |
|
366 | 366 | # Date 3 0 |
|
367 | 367 | # Node ID cfa68229c1167443337266ebac453c73b1d5d16e |
|
368 | 368 | # Parent bb948857c743469b22bbf51f7ec8112279ca5d83 |
|
369 | 369 | xa |
|
370 | 370 | |
|
371 | 371 | diff -r bb948857c743 -r cfa68229c116 x/a |
|
372 | 372 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
373 | 373 | +++ b/x/a Thu Jan 01 00:00:03 1970 +0000 |
|
374 | 374 | @@ -0,0 +1,4 @@ |
|
375 | 375 | +expand $Id$ |
|
376 | 376 | +do not process $Id: |
|
377 | 377 | +xxx $ |
|
378 | 378 | +$Xinfo$ |
|
379 | 379 | |
|
380 | 380 | % hgweb filediff |
|
381 | 381 | 200 Script output follows |
|
382 | 382 | |
|
383 | 383 | |
|
384 | 384 | diff -r ef63ca68695b -r bb948857c743 a |
|
385 | 385 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
386 | 386 | +++ b/a Thu Jan 01 00:00:02 1970 +0000 |
|
387 | 387 | @@ -1,3 +1,4 @@ |
|
388 | 388 | expand $Id$ |
|
389 | 389 | do not process $Id: |
|
390 | 390 | xxx $ |
|
391 | 391 | +$Xinfo$ |
|
392 | 392 | |
|
393 | 393 | |
|
394 | 394 | |
|
395 | 395 | |
|
396 | 396 | % errors encountered |
|
397 | 397 | % merge/resolve |
|
398 | 398 | % simplemerge |
|
399 | 399 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
400 | 400 | created new head |
|
401 | 401 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
402 | 402 | (branch merge, don't forget to commit) |
|
403 | 403 | $Id: m 8731e1dadc99 Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
404 | 404 | foo |
|
405 | 405 | % conflict |
|
406 | 406 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
407 | 407 | created new head |
|
408 | 408 | merging m |
|
409 | 409 | warning: conflicts during merge. |
|
410 | 410 | merging m failed! |
|
411 | 411 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
412 | 412 | use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon |
|
413 | 413 | % keyword stays outside conflict zone |
|
414 | 414 | $Id$ |
|
415 | 415 | <<<<<<< local |
|
416 | 416 | bar |
|
417 | 417 | ======= |
|
418 | 418 | foo |
|
419 | 419 | >>>>>>> other |
|
420 | 420 | % resolve to local |
|
421 | 421 | $Id: m 43dfd2854b5b Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
422 | 422 | bar |
|
423 | 423 | % test restricted mode with transplant -b |
|
424 | 424 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
425 | 425 | marked working directory as branch foo |
|
426 | 426 | created new head |
|
427 | 427 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
428 | 428 | applying 1c4378f51c4d |
|
429 | 429 | 1c4378f51c4d transplanted to 7d855abcab87 |
|
430 | 430 | % no expansion in changeset |
|
431 | 431 | changeset: 11:7d855abcab87 |
|
432 | 432 | tag: tip |
|
433 | 433 | parent: 9:43dfd2854b5b |
|
434 | 434 | user: test |
|
435 | 435 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
436 | 436 | summary: 9foobranch |
|
437 | 437 | |
|
438 | 438 | diff -r 43dfd2854b5b -r 7d855abcab87 a |
|
439 | 439 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
440 | 440 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
441 | 441 | @@ -1,3 +1,4 @@ |
|
442 | 442 | +foobranch |
|
443 | 443 | expand $Id$ |
|
444 | 444 | do not process $Id: |
|
445 | 445 | xxx $ |
|
446 | 446 | |
|
447 | 447 | % expansion in file |
|
448 | 448 | foobranch |
|
449 | 449 | expand $Id: a 7d855abcab87 Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
450 | 450 | % switch off expansion |
|
451 | 451 | % kwshrink with unknown file u |
|
452 | 452 | overwriting a shrinking keywords |
|
453 | 453 | overwriting m shrinking keywords |
|
454 | 454 | overwriting x/a shrinking keywords |
|
455 | 455 | % cat |
|
456 | 456 | expand $Id$ |
|
457 | 457 | do not process $Id: |
|
458 | 458 | xxx $ |
|
459 | 459 | $Xinfo$ |
|
460 | 460 | ignore $Id$ |
|
461 | 461 | % hg cat |
|
462 | 462 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
463 | 463 | do not process $Id: |
|
464 | 464 | xxx $ |
|
465 | 465 | $Xinfo: User Name <user@example.com>: firstline $ |
|
466 | 466 | ignore $Id$ |
|
467 | 467 | a |
|
468 | 468 | % cat |
|
469 | 469 | expand $Id$ |
|
470 | 470 | do not process $Id: |
|
471 | 471 | xxx $ |
|
472 | 472 | $Xinfo$ |
|
473 | 473 | ignore $Id$ |
|
474 | 474 | % hg cat |
|
475 | 475 | expand $Id$ |
|
476 | 476 | do not process $Id: |
|
477 | 477 | xxx $ |
|
478 | 478 | $Xinfo$ |
|
479 | 479 | ignore $Id$ |
|
480 | 480 | a |
General Comments 0
You need to be logged in to leave comments.
Login now