Show More
This diff has been collapsed as it changes many lines, (1165 lines changed) Show them Hide them | |||||
@@ -1,332 +1,975 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | echo "[ui]" >> $HGRCPATH |
|
3 | $ echo "[ui]" >> $HGRCPATH | |
4 | echo "interactive=true" >> $HGRCPATH |
|
4 | $ echo "interactive=true" >> $HGRCPATH | |
5 | echo "[extensions]" >> $HGRCPATH |
|
5 | $ echo "[extensions]" >> $HGRCPATH | |
6 | echo "record=" >> $HGRCPATH |
|
6 | $ echo "record=" >> $HGRCPATH | |
7 |
|
7 | |||
8 | echo % help |
|
8 | Help | |
9 |
|
9 | |||
10 | hg help record |
|
10 | $ hg help record | |
|
11 | hg record [OPTION]... [FILE]... | |||
|
12 | ||||
|
13 | interactively select changes to commit | |||
|
14 | ||||
|
15 | If a list of files is omitted, all changes reported by "hg status" will be | |||
|
16 | candidates for recording. | |||
|
17 | ||||
|
18 | See "hg help dates" for a list of formats valid for -d/--date. | |||
|
19 | ||||
|
20 | You will be prompted for whether to record changes to each modified file, | |||
|
21 | and for files with multiple changes, for each change to use. For each | |||
|
22 | query, the following responses are possible: | |||
|
23 | ||||
|
24 | y - record this change | |||
|
25 | n - skip this change | |||
|
26 | ||||
|
27 | s - skip remaining changes to this file | |||
|
28 | f - record remaining changes to this file | |||
|
29 | ||||
|
30 | d - done, skip remaining changes and files | |||
|
31 | a - record all changes to all remaining files | |||
|
32 | q - quit, recording no changes | |||
|
33 | ||||
|
34 | ? - display help | |||
|
35 | ||||
|
36 | This command is not available when committing a merge. | |||
|
37 | ||||
|
38 | options: | |||
|
39 | ||||
|
40 | -A --addremove mark new/missing files as added/removed before | |||
|
41 | committing | |||
|
42 | --close-branch mark a branch as closed, hiding it from the branch | |||
|
43 | list | |||
|
44 | -I --include PATTERN [+] include names matching the given patterns | |||
|
45 | -X --exclude PATTERN [+] exclude names matching the given patterns | |||
|
46 | -m --message TEXT use text as commit message | |||
|
47 | -l --logfile FILE read commit message from file | |||
|
48 | -d --date DATE record datecode as commit date | |||
|
49 | -u --user USER record the specified user as committer | |||
|
50 | ||||
|
51 | [+] marked option can be specified multiple times | |||
|
52 | ||||
|
53 | use "hg -v help record" to show global options | |||
11 |
|
54 | |||
12 | hg init a |
|
55 | $ hg init a | |
13 | cd a |
|
56 | $ cd a | |
14 |
|
57 | |||
15 |
|
|
58 | Select no files | |
16 |
|
59 | |||
17 | touch empty-rw |
|
60 | $ touch empty-rw | |
18 | hg add empty-rw |
|
61 | $ hg add empty-rw | |
19 | hg record empty-rw<<EOF |
|
|||
20 | n |
|
|||
21 | EOF |
|
|||
22 | echo; hg tip -p |
|
|||
23 |
|
62 | |||
24 | echo % select files but no hunks |
|
63 | $ hg record empty-rw<<EOF | |
|
64 | > n | |||
|
65 | > EOF | |||
|
66 | diff --git a/empty-rw b/empty-rw | |||
|
67 | new file mode 100644 | |||
|
68 | examine changes to 'empty-rw'? [Ynsfdaq?] | |||
|
69 | no changes to record | |||
|
70 | ||||
|
71 | $ hg tip -p | |||
|
72 | changeset: -1:000000000000 | |||
|
73 | tag: tip | |||
|
74 | user: | |||
|
75 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
76 | ||||
|
77 | ||||
|
78 | ||||
|
79 | Select files but no hunks | |||
25 |
|
80 | |||
26 | hg record empty-rw<<EOF |
|
81 | $ hg record empty-rw<<EOF | |
27 | y |
|
82 | > y | |
28 | n |
|
83 | > n | |
29 | EOF |
|
84 | > EOF | |
30 | echo; hg tip -p |
|
85 | diff --git a/empty-rw b/empty-rw | |
|
86 | new file mode 100644 | |||
|
87 | examine changes to 'empty-rw'? [Ynsfdaq?] | |||
|
88 | abort: empty commit message | |||
|
89 | ||||
|
90 | $ hg tip -p | |||
|
91 | changeset: -1:000000000000 | |||
|
92 | tag: tip | |||
|
93 | user: | |||
|
94 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
95 | ||||
|
96 | ||||
31 |
|
97 | |||
32 |
|
|
98 | Record empty file | |
33 |
|
99 | |||
34 | hg record -d '0 0' -m empty empty-rw<<EOF |
|
100 | $ hg record -d '0 0' -m empty empty-rw<<EOF | |
35 | y |
|
101 | > y | |
36 | y |
|
102 | > y | |
37 | EOF |
|
103 | > EOF | |
38 | echo; hg tip -p |
|
104 | diff --git a/empty-rw b/empty-rw | |
|
105 | new file mode 100644 | |||
|
106 | examine changes to 'empty-rw'? [Ynsfdaq?] | |||
|
107 | ||||
|
108 | $ hg tip -p | |||
|
109 | changeset: 0:c0708cf4e46e | |||
|
110 | tag: tip | |||
|
111 | user: test | |||
|
112 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
113 | summary: empty | |||
|
114 | ||||
|
115 | ||||
39 |
|
116 | |||
40 |
|
|
117 | Summary shows we updated to the new cset | |
41 | hg summary |
|
118 | ||
42 | echo |
|
119 | $ hg summary | |
|
120 | parent: 0:c0708cf4e46e tip | |||
|
121 | empty | |||
|
122 | branch: default | |||
|
123 | commit: (clean) | |||
|
124 | update: (current) | |||
43 |
|
125 | |||
44 |
|
|
126 | Rename empty file | |
|
127 | ||||
|
128 | $ hg mv empty-rw empty-rename | |||
|
129 | $ hg record -d '1 0' -m rename<<EOF | |||
|
130 | > y | |||
|
131 | > EOF | |||
|
132 | diff --git a/empty-rw b/empty-rename | |||
|
133 | rename from empty-rw | |||
|
134 | rename to empty-rename | |||
|
135 | examine changes to 'empty-rw' and 'empty-rename'? [Ynsfdaq?] | |||
45 |
|
136 | |||
46 | hg mv empty-rw empty-rename |
|
137 | $ hg tip -p | |
47 | hg record -d '1 0' -m rename<<EOF |
|
138 | changeset: 1:d695e8dcb197 | |
48 | y |
|
139 | tag: tip | |
49 | EOF |
|
140 | user: test | |
50 | echo; hg tip -p |
|
141 | date: Thu Jan 01 00:00:01 1970 +0000 | |
|
142 | summary: rename | |||
|
143 | ||||
|
144 | ||||
|
145 | ||||
|
146 | Copy empty file | |||
51 |
|
147 | |||
52 | echo % copy empty file |
|
148 | $ hg cp empty-rename empty-copy | |
|
149 | $ hg record -d '2 0' -m copy<<EOF | |||
|
150 | > y | |||
|
151 | > EOF | |||
|
152 | diff --git a/empty-rename b/empty-copy | |||
|
153 | copy from empty-rename | |||
|
154 | copy to empty-copy | |||
|
155 | examine changes to 'empty-rename' and 'empty-copy'? [Ynsfdaq?] | |||
|
156 | ||||
|
157 | $ hg tip -p | |||
|
158 | changeset: 2:1d4b90bea524 | |||
|
159 | tag: tip | |||
|
160 | user: test | |||
|
161 | date: Thu Jan 01 00:00:02 1970 +0000 | |||
|
162 | summary: copy | |||
|
163 | ||||
|
164 | ||||
|
165 | ||||
|
166 | Delete empty file | |||
53 |
|
167 | |||
54 |
hg |
|
168 | $ hg rm empty-copy | |
55 |
hg record -d ' |
|
169 | $ hg record -d '3 0' -m delete<<EOF | |
56 | y |
|
170 | > y | |
57 | EOF |
|
171 | > EOF | |
58 | echo; hg tip -p |
|
172 | diff --git a/empty-copy b/empty-copy | |
|
173 | deleted file mode 100644 | |||
|
174 | examine changes to 'empty-copy'? [Ynsfdaq?] | |||
59 |
|
175 | |||
60 | echo % delete empty file |
|
176 | $ hg tip -p | |
|
177 | changeset: 3:b39a238f01a1 | |||
|
178 | tag: tip | |||
|
179 | user: test | |||
|
180 | date: Thu Jan 01 00:00:03 1970 +0000 | |||
|
181 | summary: delete | |||
|
182 | ||||
|
183 | ||||
|
184 | ||||
|
185 | Add binary file | |||
|
186 | ||||
|
187 | $ hg bundle --base -2 tip.bundle | |||
|
188 | 1 changesets found | |||
|
189 | $ hg add tip.bundle | |||
|
190 | $ hg record -d '4 0' -m binary<<EOF | |||
|
191 | > y | |||
|
192 | > EOF | |||
|
193 | diff --git a/tip.bundle b/tip.bundle | |||
|
194 | new file mode 100644 | |||
|
195 | this is a binary file | |||
|
196 | examine changes to 'tip.bundle'? [Ynsfdaq?] | |||
61 |
|
197 | |||
62 | hg rm empty-copy |
|
198 | $ hg tip -p | |
63 | hg record -d '3 0' -m delete<<EOF |
|
199 | changeset: 4:ad816da3711e | |
64 | y |
|
200 | tag: tip | |
65 | EOF |
|
201 | user: test | |
66 | echo; hg tip -p |
|
202 | date: Thu Jan 01 00:00:04 1970 +0000 | |
|
203 | summary: binary | |||
|
204 | ||||
|
205 | diff -r b39a238f01a1 -r ad816da3711e tip.bundle | |||
|
206 | Binary file tip.bundle has changed | |||
|
207 | ||||
67 |
|
208 | |||
68 |
|
|
209 | Change binary file | |
69 |
|
210 | |||
70 | hg bundle --base -2 tip.bundle |
|
211 | $ hg bundle --base -2 tip.bundle | |
71 | hg add tip.bundle |
|
212 | 1 changesets found | |
72 |
hg record -d ' |
|
213 | $ hg record -d '5 0' -m binary-change<<EOF | |
73 | y |
|
214 | > y | |
74 | EOF |
|
215 | > EOF | |
75 | echo; hg tip -p |
|
216 | diff --git a/tip.bundle b/tip.bundle | |
|
217 | this modifies a binary file (all or nothing) | |||
|
218 | examine changes to 'tip.bundle'? [Ynsfdaq?] | |||
76 |
|
219 | |||
77 | echo % change binary file |
|
220 | $ hg tip -p | |
|
221 | changeset: 5:dccd6f3eb485 | |||
|
222 | tag: tip | |||
|
223 | user: test | |||
|
224 | date: Thu Jan 01 00:00:05 1970 +0000 | |||
|
225 | summary: binary-change | |||
|
226 | ||||
|
227 | diff -r ad816da3711e -r dccd6f3eb485 tip.bundle | |||
|
228 | Binary file tip.bundle has changed | |||
|
229 | ||||
|
230 | ||||
|
231 | Rename and change binary file | |||
78 |
|
232 | |||
79 | hg bundle --base -2 tip.bundle |
|
233 | $ hg mv tip.bundle top.bundle | |
80 | hg record -d '5 0' -m binary-change<<EOF |
|
234 | $ hg bundle --base -2 top.bundle | |
81 | y |
|
235 | 1 changesets found | |
82 | EOF |
|
236 | $ hg record -d '6 0' -m binary-change-rename<<EOF | |
83 | echo; hg tip -p |
|
237 | > y | |
84 |
|
238 | > EOF | ||
85 | echo % rename and change binary file |
|
239 | diff --git a/tip.bundle b/top.bundle | |
|
240 | rename from tip.bundle | |||
|
241 | rename to top.bundle | |||
|
242 | this modifies a binary file (all or nothing) | |||
|
243 | examine changes to 'tip.bundle' and 'top.bundle'? [Ynsfdaq?] | |||
86 |
|
244 | |||
87 | hg mv tip.bundle top.bundle |
|
245 | $ hg tip -p | |
88 | hg bundle --base -2 top.bundle |
|
246 | changeset: 6:7fa44105f5b3 | |
89 | hg record -d '6 0' -m binary-change-rename<<EOF |
|
247 | tag: tip | |
90 | y |
|
248 | user: test | |
91 | EOF |
|
249 | date: Thu Jan 01 00:00:06 1970 +0000 | |
92 | echo; hg tip -p |
|
250 | summary: binary-change-rename | |
|
251 | ||||
|
252 | diff -r dccd6f3eb485 -r 7fa44105f5b3 tip.bundle | |||
|
253 | Binary file tip.bundle has changed | |||
|
254 | diff -r dccd6f3eb485 -r 7fa44105f5b3 top.bundle | |||
|
255 | Binary file top.bundle has changed | |||
|
256 | ||||
93 |
|
257 | |||
94 |
|
|
258 | Add plain file | |
|
259 | ||||
|
260 | $ for i in 1 2 3 4 5 6 7 8 9 10; do | |||
|
261 | > echo $i >> plain | |||
|
262 | > done | |||
|
263 | ||||
|
264 | $ hg add plain | |||
|
265 | $ hg record -d '7 0' -m plain plain<<EOF | |||
|
266 | > y | |||
|
267 | > y | |||
|
268 | > EOF | |||
|
269 | diff --git a/plain b/plain | |||
|
270 | new file mode 100644 | |||
|
271 | examine changes to 'plain'? [Ynsfdaq?] | |||
95 |
|
272 | |||
96 | for i in 1 2 3 4 5 6 7 8 9 10; do |
|
273 | $ hg tip -p | |
97 | echo $i >> plain |
|
274 | changeset: 7:11fb457c1be4 | |
98 | done |
|
275 | tag: tip | |
|
276 | user: test | |||
|
277 | date: Thu Jan 01 00:00:07 1970 +0000 | |||
|
278 | summary: plain | |||
|
279 | ||||
|
280 | diff -r 7fa44105f5b3 -r 11fb457c1be4 plain | |||
|
281 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |||
|
282 | +++ b/plain Thu Jan 01 00:00:07 1970 +0000 | |||
|
283 | @@ -0,0 +1,10 @@ | |||
|
284 | +1 | |||
|
285 | +2 | |||
|
286 | +3 | |||
|
287 | +4 | |||
|
288 | +5 | |||
|
289 | +6 | |||
|
290 | +7 | |||
|
291 | +8 | |||
|
292 | +9 | |||
|
293 | +10 | |||
|
294 | ||||
|
295 | ||||
|
296 | Modify end of plain file | |||
|
297 | ||||
|
298 | $ echo 11 >> plain | |||
|
299 | $ hg record -d '8 0' -m end plain <<EOF | |||
|
300 | > y | |||
|
301 | > y | |||
|
302 | > EOF | |||
|
303 | diff --git a/plain b/plain | |||
|
304 | 1 hunks, 1 lines changed | |||
|
305 | examine changes to 'plain'? [Ynsfdaq?] | |||
|
306 | @@ -8,3 +8,4 @@ | |||
|
307 | 8 | |||
|
308 | 9 | |||
|
309 | 10 | |||
|
310 | +11 | |||
|
311 | record this change to 'plain'? [Ynsfdaq?] | |||
99 |
|
312 | |||
100 | hg add plain |
|
313 | Modify end of plain file, no EOL | |
101 | hg record -d '7 0' -m plain plain<<EOF |
|
314 | ||
102 | y |
|
315 | $ hg tip --template '{node}' >> plain | |
103 | y |
|
316 | $ hg record -d '9 0' -m noeol plain <<EOF | |
104 | EOF |
|
317 | > y | |
105 | echo; hg tip -p |
|
318 | > y | |
|
319 | > EOF | |||
|
320 | diff --git a/plain b/plain | |||
|
321 | 1 hunks, 1 lines changed | |||
|
322 | examine changes to 'plain'? [Ynsfdaq?] | |||
|
323 | @@ -9,3 +9,4 @@ | |||
|
324 | 9 | |||
|
325 | 10 | |||
|
326 | 11 | |||
|
327 | +7264f99c5f5ff3261504828afa4fb4d406c3af54 | |||
|
328 | \ No newline at end of file | |||
|
329 | record this change to 'plain'? [Ynsfdaq?] | |||
|
330 | ||||
|
331 | Modify end of plain file, add EOL | |||
106 |
|
332 | |||
107 | echo % modify end of plain file |
|
333 | $ echo >> plain | |
|
334 | $ hg record -d '10 0' -m eol plain <<EOF | |||
|
335 | > y | |||
|
336 | > y | |||
|
337 | > y | |||
|
338 | > EOF | |||
|
339 | diff --git a/plain b/plain | |||
|
340 | 1 hunks, 1 lines changed | |||
|
341 | examine changes to 'plain'? [Ynsfdaq?] | |||
|
342 | @@ -9,4 +9,4 @@ | |||
|
343 | 9 | |||
|
344 | 10 | |||
|
345 | 11 | |||
|
346 | -7264f99c5f5ff3261504828afa4fb4d406c3af54 | |||
|
347 | \ No newline at end of file | |||
|
348 | +7264f99c5f5ff3261504828afa4fb4d406c3af54 | |||
|
349 | record this change to 'plain'? [Ynsfdaq?] | |||
108 |
|
350 | |||
109 | echo 11 >> plain |
|
351 | Modify beginning, trim end, record both | |
110 | hg record -d '8 0' -m end plain <<EOF |
|
|||
111 | y |
|
|||
112 | y |
|
|||
113 | EOF |
|
|||
114 |
|
||||
115 | echo % modify end of plain file, no EOL |
|
|||
116 |
|
352 | |||
117 | hg tip --template '{node}' >> plain |
|
353 | $ rm plain | |
118 | hg record -d '9 0' -m noeol plain <<EOF |
|
354 | $ for i in 2 2 3 4 5 6 7 8 9 10; do | |
119 | y |
|
355 | > echo $i >> plain | |
120 | y |
|
356 | > done | |
121 | EOF |
|
|||
122 |
|
357 | |||
123 | echo % modify end of plain file, add EOL |
|
358 | $ hg record -d '10 0' -m begin-and-end plain <<EOF | |
|
359 | > y | |||
|
360 | > y | |||
|
361 | > y | |||
|
362 | > EOF | |||
|
363 | diff --git a/plain b/plain | |||
|
364 | 2 hunks, 3 lines changed | |||
|
365 | examine changes to 'plain'? [Ynsfdaq?] | |||
|
366 | @@ -1,4 +1,4 @@ | |||
|
367 | -1 | |||
|
368 | +2 | |||
|
369 | 2 | |||
|
370 | 3 | |||
|
371 | 4 | |||
|
372 | record change 1/2 to 'plain'? [Ynsfdaq?] | |||
|
373 | @@ -8,5 +8,3 @@ | |||
|
374 | 8 | |||
|
375 | 9 | |||
|
376 | 10 | |||
|
377 | -11 | |||
|
378 | -7264f99c5f5ff3261504828afa4fb4d406c3af54 | |||
|
379 | record change 2/2 to 'plain'? [Ynsfdaq?] | |||
124 |
|
380 | |||
125 | echo >> plain |
|
381 | $ hg tip -p | |
126 | hg record -d '10 0' -m eol plain <<EOF |
|
382 | changeset: 11:efca65c9b09e | |
127 | y |
|
383 | tag: tip | |
128 | y |
|
384 | user: test | |
129 | y |
|
385 | date: Thu Jan 01 00:00:10 1970 +0000 | |
130 | EOF |
|
386 | summary: begin-and-end | |
|
387 | ||||
|
388 | diff -r cd07d48e8cbe -r efca65c9b09e plain | |||
|
389 | --- a/plain Thu Jan 01 00:00:10 1970 +0000 | |||
|
390 | +++ b/plain Thu Jan 01 00:00:10 1970 +0000 | |||
|
391 | @@ -1,4 +1,4 @@ | |||
|
392 | -1 | |||
|
393 | +2 | |||
|
394 | 2 | |||
|
395 | 3 | |||
|
396 | 4 | |||
|
397 | @@ -8,5 +8,3 @@ | |||
|
398 | 8 | |||
|
399 | 9 | |||
|
400 | 10 | |||
|
401 | -11 | |||
|
402 | -7264f99c5f5ff3261504828afa4fb4d406c3af54 | |||
|
403 | ||||
131 |
|
404 | |||
132 | echo % modify beginning, trim end, record both |
|
405 | Trim beginning, modify end | |
133 |
|
406 | |||
134 | rm plain |
|
407 | $ rm plain | |
135 |
for i in |
|
408 | > for i in 4 5 6 7 8 9 10.new; do | |
136 | echo $i >> plain |
|
409 | > echo $i >> plain | |
137 | done |
|
410 | > done | |
|
411 | ||||
|
412 | Record end | |||
138 |
|
413 | |||
139 |
hg record -d '1 |
|
414 | $ hg record -d '11 0' -m end-only plain <<EOF | |
140 | y |
|
415 | > y | |
141 | y |
|
416 | > n | |
142 | y |
|
417 | > y | |
143 | EOF |
|
418 | > EOF | |
144 | echo; hg tip -p |
|
419 | diff --git a/plain b/plain | |
145 |
|
420 | 2 hunks, 4 lines changed | ||
146 | echo % trim beginning, modify end |
|
421 | examine changes to 'plain'? [Ynsfdaq?] | |
|
422 | @@ -1,9 +1,6 @@ | |||
|
423 | -2 | |||
|
424 | -2 | |||
|
425 | -3 | |||
|
426 | 4 | |||
|
427 | 5 | |||
|
428 | 6 | |||
|
429 | 7 | |||
|
430 | 8 | |||
|
431 | 9 | |||
|
432 | record change 1/2 to 'plain'? [Ynsfdaq?] | |||
|
433 | @@ -4,7 +1,7 @@ | |||
|
434 | 4 | |||
|
435 | 5 | |||
|
436 | 6 | |||
|
437 | 7 | |||
|
438 | 8 | |||
|
439 | 9 | |||
|
440 | -10 | |||
|
441 | +10.new | |||
|
442 | record change 2/2 to 'plain'? [Ynsfdaq?] | |||
147 |
|
443 | |||
148 | rm plain |
|
444 | $ hg tip -p | |
149 | for i in 4 5 6 7 8 9 10.new; do |
|
445 | changeset: 12:7d1e66983c15 | |
150 | echo $i >> plain |
|
446 | tag: tip | |
151 | done |
|
447 | user: test | |
152 |
|
448 | date: Thu Jan 01 00:00:11 1970 +0000 | ||
153 | echo % record end |
|
449 | summary: end-only | |
|
450 | ||||
|
451 | diff -r efca65c9b09e -r 7d1e66983c15 plain | |||
|
452 | --- a/plain Thu Jan 01 00:00:10 1970 +0000 | |||
|
453 | +++ b/plain Thu Jan 01 00:00:11 1970 +0000 | |||
|
454 | @@ -7,4 +7,4 @@ | |||
|
455 | 7 | |||
|
456 | 8 | |||
|
457 | 9 | |||
|
458 | -10 | |||
|
459 | +10.new | |||
|
460 | ||||
154 |
|
461 | |||
155 | hg record -d '11 0' -m end-only plain <<EOF |
|
462 | Record beginning | |
156 | y |
|
|||
157 | n |
|
|||
158 | y |
|
|||
159 | EOF |
|
|||
160 | echo; hg tip -p |
|
|||
161 |
|
463 | |||
162 | echo % record beginning |
|
464 | $ hg record -d '12 0' -m begin-only plain <<EOF | |
|
465 | > y | |||
|
466 | > y | |||
|
467 | > EOF | |||
|
468 | diff --git a/plain b/plain | |||
|
469 | 1 hunks, 3 lines changed | |||
|
470 | examine changes to 'plain'? [Ynsfdaq?] | |||
|
471 | @@ -1,6 +1,3 @@ | |||
|
472 | -2 | |||
|
473 | -2 | |||
|
474 | -3 | |||
|
475 | 4 | |||
|
476 | 5 | |||
|
477 | 6 | |||
|
478 | record this change to 'plain'? [Ynsfdaq?] | |||
163 |
|
479 | |||
164 | hg record -d '12 0' -m begin-only plain <<EOF |
|
480 | $ hg tip -p | |
165 | y |
|
481 | changeset: 13:a09fc62a0e61 | |
166 | y |
|
482 | tag: tip | |
167 | EOF |
|
483 | user: test | |
168 | echo; hg tip -p |
|
484 | date: Thu Jan 01 00:00:12 1970 +0000 | |
|
485 | summary: begin-only | |||
|
486 | ||||
|
487 | diff -r 7d1e66983c15 -r a09fc62a0e61 plain | |||
|
488 | --- a/plain Thu Jan 01 00:00:11 1970 +0000 | |||
|
489 | +++ b/plain Thu Jan 01 00:00:12 1970 +0000 | |||
|
490 | @@ -1,6 +1,3 @@ | |||
|
491 | -2 | |||
|
492 | -2 | |||
|
493 | -3 | |||
|
494 | 4 | |||
|
495 | 5 | |||
|
496 | 6 | |||
|
497 | ||||
|
498 | ||||
|
499 | Add to beginning, trim from end | |||
|
500 | ||||
|
501 | $ rm plain | |||
|
502 | $ for i in 1 2 3 4 5 6 7 8 9; do | |||
|
503 | > echo $i >> plain | |||
|
504 | > done | |||
|
505 | ||||
|
506 | Record end | |||
169 |
|
507 | |||
170 | echo % add to beginning, trim from end |
|
508 | $ hg record --traceback -d '13 0' -m end-again plain<<EOF | |
|
509 | > y | |||
|
510 | > n | |||
|
511 | > y | |||
|
512 | > EOF | |||
|
513 | diff --git a/plain b/plain | |||
|
514 | 2 hunks, 4 lines changed | |||
|
515 | examine changes to 'plain'? [Ynsfdaq?] | |||
|
516 | @@ -1,6 +1,9 @@ | |||
|
517 | +1 | |||
|
518 | +2 | |||
|
519 | +3 | |||
|
520 | 4 | |||
|
521 | 5 | |||
|
522 | 6 | |||
|
523 | 7 | |||
|
524 | 8 | |||
|
525 | 9 | |||
|
526 | record change 1/2 to 'plain'? [Ynsfdaq?] | |||
|
527 | @@ -1,7 +4,6 @@ | |||
|
528 | 4 | |||
|
529 | 5 | |||
|
530 | 6 | |||
|
531 | 7 | |||
|
532 | 8 | |||
|
533 | 9 | |||
|
534 | -10.new | |||
|
535 | record change 2/2 to 'plain'? [Ynsfdaq?] | |||
171 |
|
536 | |||
172 | rm plain |
|
537 | Add to beginning, middle, end | |
173 | for i in 1 2 3 4 5 6 7 8 9; do |
|
|||
174 | echo $i >> plain |
|
|||
175 | done |
|
|||
176 |
|
||||
177 | echo % record end |
|
|||
178 |
|
538 | |||
179 | hg record --traceback -d '13 0' -m end-again plain<<EOF |
|
539 | $ rm plain | |
180 | y |
|
540 | $ for i in 1 2 3 4 5 5.new 5.reallynew 6 7 8 9 10 11; do | |
181 | n |
|
541 | > echo $i >> plain | |
182 | y |
|
542 | > done | |
183 | EOF |
|
|||
184 |
|
543 | |||
185 |
|
|
544 | Record beginning, middle | |
186 |
|
545 | |||
187 | rm plain |
|
546 | $ hg record -d '14 0' -m middle-only plain <<EOF | |
188 | for i in 1 2 3 4 5 5.new 5.reallynew 6 7 8 9 10 11; do |
|
547 | > y | |
189 | echo $i >> plain |
|
548 | > y | |
190 | done |
|
549 | > y | |
191 |
|
550 | > n | ||
192 | echo % record beginning, middle |
|
551 | > EOF | |
|
552 | diff --git a/plain b/plain | |||
|
553 | 3 hunks, 7 lines changed | |||
|
554 | examine changes to 'plain'? [Ynsfdaq?] | |||
|
555 | @@ -1,2 +1,5 @@ | |||
|
556 | +1 | |||
|
557 | +2 | |||
|
558 | +3 | |||
|
559 | 4 | |||
|
560 | 5 | |||
|
561 | record change 1/3 to 'plain'? [Ynsfdaq?] | |||
|
562 | @@ -1,6 +4,8 @@ | |||
|
563 | 4 | |||
|
564 | 5 | |||
|
565 | +5.new | |||
|
566 | +5.reallynew | |||
|
567 | 6 | |||
|
568 | 7 | |||
|
569 | 8 | |||
|
570 | 9 | |||
|
571 | record change 2/3 to 'plain'? [Ynsfdaq?] | |||
|
572 | @@ -3,4 +8,6 @@ | |||
|
573 | 6 | |||
|
574 | 7 | |||
|
575 | 8 | |||
|
576 | 9 | |||
|
577 | +10 | |||
|
578 | +11 | |||
|
579 | record change 3/3 to 'plain'? [Ynsfdaq?] | |||
193 |
|
580 | |||
194 | hg record -d '14 0' -m middle-only plain <<EOF |
|
581 | $ hg tip -p | |
195 | y |
|
582 | changeset: 15:7d137997f3a6 | |
196 | y |
|
583 | tag: tip | |
197 | y |
|
584 | user: test | |
198 | n |
|
585 | date: Thu Jan 01 00:00:14 1970 +0000 | |
199 | EOF |
|
586 | summary: middle-only | |
200 | echo; hg tip -p |
|
587 | ||
201 |
|
588 | diff -r c0b8e5fb0be6 -r 7d137997f3a6 plain | ||
202 | echo % record end |
|
589 | --- a/plain Thu Jan 01 00:00:13 1970 +0000 | |
|
590 | +++ b/plain Thu Jan 01 00:00:14 1970 +0000 | |||
|
591 | @@ -1,5 +1,10 @@ | |||
|
592 | +1 | |||
|
593 | +2 | |||
|
594 | +3 | |||
|
595 | 4 | |||
|
596 | 5 | |||
|
597 | +5.new | |||
|
598 | +5.reallynew | |||
|
599 | 6 | |||
|
600 | 7 | |||
|
601 | 8 | |||
|
602 | ||||
203 |
|
603 | |||
204 | hg record -d '15 0' -m end-only plain <<EOF |
|
604 | Record end | |
205 | y |
|
605 | ||
206 | y |
|
606 | $ hg record -d '15 0' -m end-only plain <<EOF | |
207 | EOF |
|
607 | > y | |
208 | echo; hg tip -p |
|
608 | > y | |
|
609 | > EOF | |||
|
610 | diff --git a/plain b/plain | |||
|
611 | 1 hunks, 2 lines changed | |||
|
612 | examine changes to 'plain'? [Ynsfdaq?] | |||
|
613 | @@ -9,3 +9,5 @@ | |||
|
614 | 7 | |||
|
615 | 8 | |||
|
616 | 9 | |||
|
617 | +10 | |||
|
618 | +11 | |||
|
619 | record this change to 'plain'? [Ynsfdaq?] | |||
209 |
|
620 | |||
210 | mkdir subdir |
|
621 | $ hg tip -p | |
211 | cd subdir |
|
622 | changeset: 16:4959e3ff13eb | |
212 | echo a > a |
|
623 | tag: tip | |
213 | hg ci -d '16 0' -Amsubdir |
|
624 | user: test | |
|
625 | date: Thu Jan 01 00:00:15 1970 +0000 | |||
|
626 | summary: end-only | |||
|
627 | ||||
|
628 | diff -r 7d137997f3a6 -r 4959e3ff13eb plain | |||
|
629 | --- a/plain Thu Jan 01 00:00:14 1970 +0000 | |||
|
630 | +++ b/plain Thu Jan 01 00:00:15 1970 +0000 | |||
|
631 | @@ -9,3 +9,5 @@ | |||
|
632 | 7 | |||
|
633 | 8 | |||
|
634 | 9 | |||
|
635 | +10 | |||
|
636 | +11 | |||
|
637 | ||||
214 |
|
638 | |||
215 | echo a >> a |
|
639 | $ mkdir subdir | |
216 | hg record -d '16 0' -m subdir-change a <<EOF |
|
640 | $ cd subdir | |
217 | y |
|
641 | $ echo a > a | |
218 | y |
|
642 | $ hg ci -d '16 0' -Amsubdir | |
219 | EOF |
|
643 | adding subdir/a | |
220 | echo; hg tip -p |
|
644 | ||
|
645 | $ echo a >> a | |||
|
646 | $ hg record -d '16 0' -m subdir-change a <<EOF | |||
|
647 | > y | |||
|
648 | > y | |||
|
649 | > EOF | |||
|
650 | diff --git a/subdir/a b/subdir/a | |||
|
651 | 1 hunks, 1 lines changed | |||
|
652 | examine changes to 'subdir/a'? [Ynsfdaq?] | |||
|
653 | @@ -1,1 +1,2 @@ | |||
|
654 | a | |||
|
655 | +a | |||
|
656 | record this change to 'subdir/a'? [Ynsfdaq?] | |||
221 |
|
657 | |||
222 | echo a > f1 |
|
658 | $ hg tip -p | |
223 | echo b > f2 |
|
659 | changeset: 18:40698cd490b2 | |
224 | hg add f1 f2 |
|
660 | tag: tip | |
|
661 | user: test | |||
|
662 | date: Thu Jan 01 00:00:16 1970 +0000 | |||
|
663 | summary: subdir-change | |||
|
664 | ||||
|
665 | diff -r 661eacdc08b9 -r 40698cd490b2 subdir/a | |||
|
666 | --- a/subdir/a Thu Jan 01 00:00:16 1970 +0000 | |||
|
667 | +++ b/subdir/a Thu Jan 01 00:00:16 1970 +0000 | |||
|
668 | @@ -1,1 +1,2 @@ | |||
|
669 | a | |||
|
670 | +a | |||
|
671 | ||||
225 |
|
672 | |||
226 | hg ci -mz -d '17 0' |
|
673 | $ echo a > f1 | |
|
674 | $ echo b > f2 | |||
|
675 | $ hg add f1 f2 | |||
227 |
|
676 | |||
228 | echo a >> f1 |
|
677 | $ hg ci -mz -d '17 0' | |
229 | echo b >> f2 |
|
|||
230 |
|
678 | |||
231 | echo % help, quit |
|
679 | $ echo a >> f1 | |
|
680 | $ echo b >> f2 | |||
|
681 | ||||
|
682 | Help, quit | |||
232 |
|
683 | |||
233 | hg record <<EOF |
|
684 | $ hg record <<EOF | |
234 | ? |
|
685 | > ? | |
235 | q |
|
686 | > q | |
236 | EOF |
|
687 | > EOF | |
|
688 | diff --git a/subdir/f1 b/subdir/f1 | |||
|
689 | 1 hunks, 1 lines changed | |||
|
690 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |||
|
691 | y - record this change | |||
|
692 | n - skip this change | |||
|
693 | s - skip remaining changes to this file | |||
|
694 | f - record remaining changes to this file | |||
|
695 | d - done, skip remaining changes and files | |||
|
696 | a - record all changes to all remaining files | |||
|
697 | q - quit, recording no changes | |||
|
698 | ? - display help | |||
|
699 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |||
|
700 | abort: user quit | |||
|
701 | ||||
|
702 | Skip | |||
237 |
|
703 | |||
238 | echo % skip |
|
704 | $ hg record <<EOF | |
|
705 | > s | |||
|
706 | > EOF | |||
|
707 | diff --git a/subdir/f1 b/subdir/f1 | |||
|
708 | 1 hunks, 1 lines changed | |||
|
709 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |||
|
710 | diff --git a/subdir/f2 b/subdir/f2 | |||
|
711 | 1 hunks, 1 lines changed | |||
|
712 | examine changes to 'subdir/f2'? [Ynsfdaq?] abort: response expected | |||
|
713 | ||||
|
714 | No | |||
239 |
|
715 | |||
240 | hg record <<EOF |
|
716 | $ hg record <<EOF | |
241 | s |
|
717 | > n | |
242 | EOF |
|
718 | > EOF | |
|
719 | diff --git a/subdir/f1 b/subdir/f1 | |||
|
720 | 1 hunks, 1 lines changed | |||
|
721 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |||
|
722 | diff --git a/subdir/f2 b/subdir/f2 | |||
|
723 | 1 hunks, 1 lines changed | |||
|
724 | examine changes to 'subdir/f2'? [Ynsfdaq?] abort: response expected | |||
243 |
|
725 | |||
244 | echo % no |
|
726 | f, quit | |
245 |
|
727 | |||
246 | hg record <<EOF |
|
728 | $ hg record <<EOF | |
247 | n |
|
729 | > f | |
248 | EOF |
|
730 | > q | |
|
731 | > EOF | |||
|
732 | diff --git a/subdir/f1 b/subdir/f1 | |||
|
733 | 1 hunks, 1 lines changed | |||
|
734 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |||
|
735 | diff --git a/subdir/f2 b/subdir/f2 | |||
|
736 | 1 hunks, 1 lines changed | |||
|
737 | examine changes to 'subdir/f2'? [Ynsfdaq?] | |||
|
738 | abort: user quit | |||
|
739 | ||||
|
740 | s, all | |||
249 |
|
741 | |||
250 | echo % f, quit |
|
742 | $ hg record -d '18 0' -mx <<EOF | |
|
743 | > s | |||
|
744 | > a | |||
|
745 | > EOF | |||
|
746 | diff --git a/subdir/f1 b/subdir/f1 | |||
|
747 | 1 hunks, 1 lines changed | |||
|
748 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |||
|
749 | diff --git a/subdir/f2 b/subdir/f2 | |||
|
750 | 1 hunks, 1 lines changed | |||
|
751 | examine changes to 'subdir/f2'? [Ynsfdaq?] | |||
251 |
|
752 | |||
252 | hg record <<EOF |
|
753 | $ hg tip -p | |
|
754 | changeset: 20:d2d8c25276a8 | |||
|
755 | tag: tip | |||
|
756 | user: test | |||
|
757 | date: Thu Jan 01 00:00:18 1970 +0000 | |||
|
758 | summary: x | |||
|
759 | ||||
|
760 | diff -r 25eb2a7694fb -r d2d8c25276a8 subdir/f2 | |||
|
761 | --- a/subdir/f2 Thu Jan 01 00:00:17 1970 +0000 | |||
|
762 | +++ b/subdir/f2 Thu Jan 01 00:00:18 1970 +0000 | |||
|
763 | @@ -1,1 +1,2 @@ | |||
|
764 | b | |||
|
765 | +b | |||
|
766 | ||||
|
767 | ||||
253 | f |
|
768 | f | |
254 | q |
|
|||
255 | EOF |
|
|||
256 |
|
769 | |||
257 | echo % s, all |
|
770 | $ hg record -d '19 0' -my <<EOF | |
258 |
|
771 | > f | ||
259 | hg record -d '18 0' -mx <<EOF |
|
772 | > EOF | |
260 | s |
|
773 | diff --git a/subdir/f1 b/subdir/f1 | |
261 | a |
|
774 | 1 hunks, 1 lines changed | |
262 | EOF |
|
775 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |
263 | echo; hg tip -p |
|
|||
264 |
|
776 | |||
265 | echo % f |
|
777 | $ hg tip -p | |
|
778 | changeset: 21:1013f51ce32f | |||
|
779 | tag: tip | |||
|
780 | user: test | |||
|
781 | date: Thu Jan 01 00:00:19 1970 +0000 | |||
|
782 | summary: y | |||
|
783 | ||||
|
784 | diff -r d2d8c25276a8 -r 1013f51ce32f subdir/f1 | |||
|
785 | --- a/subdir/f1 Thu Jan 01 00:00:18 1970 +0000 | |||
|
786 | +++ b/subdir/f1 Thu Jan 01 00:00:19 1970 +0000 | |||
|
787 | @@ -1,1 +1,2 @@ | |||
|
788 | a | |||
|
789 | +a | |||
|
790 | ||||
|
791 | ||||
|
792 | Preserve chmod +x | |||
266 |
|
793 | |||
267 | hg record -d '19 0' -my <<EOF |
|
794 | $ chmod +x f1 | |
268 | f |
|
795 | $ echo a >> f1 | |
269 | EOF |
|
796 | $ hg record -d '20 0' -mz <<EOF | |
270 | echo; hg tip -p |
|
797 | > y | |
271 |
|
798 | > y | ||
272 | echo % preserve chmod +x |
|
799 | > y | |
|
800 | > EOF | |||
|
801 | diff --git a/subdir/f1 b/subdir/f1 | |||
|
802 | old mode 100644 | |||
|
803 | new mode 100755 | |||
|
804 | 1 hunks, 1 lines changed | |||
|
805 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |||
|
806 | @@ -1,2 +1,3 @@ | |||
|
807 | a | |||
|
808 | a | |||
|
809 | +a | |||
|
810 | record this change to 'subdir/f1'? [Ynsfdaq?] | |||
273 |
|
811 | |||
274 | chmod +x f1 |
|
812 | $ hg tip --config diff.git=True -p | |
275 | echo a >> f1 |
|
813 | changeset: 22:5df857735621 | |
276 | hg record -d '20 0' -mz <<EOF |
|
814 | tag: tip | |
277 | y |
|
815 | user: test | |
278 | y |
|
816 | date: Thu Jan 01 00:00:20 1970 +0000 | |
279 | y |
|
817 | summary: z | |
280 | EOF |
|
818 | ||
281 | echo; hg tip --config diff.git=True -p |
|
819 | diff --git a/subdir/f1 b/subdir/f1 | |
|
820 | old mode 100644 | |||
|
821 | new mode 100755 | |||
|
822 | --- a/subdir/f1 | |||
|
823 | +++ b/subdir/f1 | |||
|
824 | @@ -1,2 +1,3 @@ | |||
|
825 | a | |||
|
826 | a | |||
|
827 | +a | |||
|
828 | ||||
282 |
|
829 | |||
283 |
|
|
830 | Preserve execute permission on original | |
|
831 | ||||
|
832 | $ echo b >> f1 | |||
|
833 | $ hg record -d '21 0' -maa <<EOF | |||
|
834 | > y | |||
|
835 | > y | |||
|
836 | > y | |||
|
837 | > EOF | |||
|
838 | diff --git a/subdir/f1 b/subdir/f1 | |||
|
839 | 1 hunks, 1 lines changed | |||
|
840 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |||
|
841 | @@ -1,3 +1,4 @@ | |||
|
842 | a | |||
|
843 | a | |||
|
844 | a | |||
|
845 | +b | |||
|
846 | record this change to 'subdir/f1'? [Ynsfdaq?] | |||
284 |
|
847 | |||
285 | echo b >> f1 |
|
848 | $ hg tip --config diff.git=True -p | |
286 | hg record -d '21 0' -maa <<EOF |
|
849 | changeset: 23:a4ae36a78715 | |
287 | y |
|
850 | tag: tip | |
288 | y |
|
851 | user: test | |
289 | y |
|
852 | date: Thu Jan 01 00:00:21 1970 +0000 | |
290 | EOF |
|
853 | summary: aa | |
291 | echo; hg tip --config diff.git=True -p |
|
854 | ||
|
855 | diff --git a/subdir/f1 b/subdir/f1 | |||
|
856 | --- a/subdir/f1 | |||
|
857 | +++ b/subdir/f1 | |||
|
858 | @@ -1,3 +1,4 @@ | |||
|
859 | a | |||
|
860 | a | |||
|
861 | a | |||
|
862 | +b | |||
|
863 | ||||
292 |
|
864 | |||
293 |
|
|
865 | Preserve chmod -x | |
294 |
|
866 | |||
295 | chmod -x f1 |
|
867 | $ chmod -x f1 | |
296 | echo c >> f1 |
|
868 | $ echo c >> f1 | |
297 | hg record -d '22 0' -mab <<EOF |
|
869 | $ hg record -d '22 0' -mab <<EOF | |
298 | y |
|
870 | > y | |
299 | y |
|
871 | > y | |
300 | y |
|
872 | > y | |
301 | EOF |
|
873 | > EOF | |
302 | echo; hg tip --config diff.git=True -p |
|
874 | diff --git a/subdir/f1 b/subdir/f1 | |
|
875 | old mode 100755 | |||
|
876 | new mode 100644 | |||
|
877 | 1 hunks, 1 lines changed | |||
|
878 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |||
|
879 | @@ -2,3 +2,4 @@ | |||
|
880 | a | |||
|
881 | a | |||
|
882 | b | |||
|
883 | +c | |||
|
884 | record this change to 'subdir/f1'? [Ynsfdaq?] | |||
303 |
|
885 | |||
304 | cd .. |
|
886 | $ hg tip --config diff.git=True -p | |
|
887 | changeset: 24:1460f6e47966 | |||
|
888 | tag: tip | |||
|
889 | user: test | |||
|
890 | date: Thu Jan 01 00:00:22 1970 +0000 | |||
|
891 | summary: ab | |||
|
892 | ||||
|
893 | diff --git a/subdir/f1 b/subdir/f1 | |||
|
894 | old mode 100755 | |||
|
895 | new mode 100644 | |||
|
896 | --- a/subdir/f1 | |||
|
897 | +++ b/subdir/f1 | |||
|
898 | @@ -2,3 +2,4 @@ | |||
|
899 | a | |||
|
900 | a | |||
|
901 | b | |||
|
902 | +c | |||
|
903 | ||||
|
904 | ||||
|
905 | $ cd .. | |||
|
906 | ||||
|
907 | Abort early when a merge is in progress | |||
|
908 | ||||
|
909 | $ hg up 4 | |||
|
910 | 1 files updated, 0 files merged, 5 files removed, 0 files unresolved | |||
305 |
|
911 | |||
306 | echo % abort early when a merge is in progress |
|
912 | $ touch iwillmergethat | |
307 | hg up 4 |
|
913 | $ hg add iwillmergethat | |
308 | touch iwillmergethat |
|
914 | ||
309 | hg add iwillmergethat |
|
915 | $ hg branch thatbranch | |
310 | hg branch thatbranch |
|
916 | marked working directory as branch thatbranch | |
311 | hg ci -m'new head' |
|
917 | ||
312 | hg up default |
|
918 | $ hg ci -m'new head' | |
313 | hg merge thatbranch |
|
919 | ||
314 | echo; hg record -m'will abort' |
|
920 | $ hg up default | |
315 | hg up -C |
|
921 | 5 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
922 | ||||
|
923 | $ hg merge thatbranch | |||
|
924 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
925 | (branch merge, don't forget to commit) | |||
|
926 | ||||
|
927 | $ hg record -m'will abort' | |||
|
928 | abort: cannot partially commit a merge (use hg commit instead) | |||
|
929 | ||||
|
930 | $ hg up -C | |||
|
931 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |||
|
932 | ||||
|
933 | With win32text | |||
|
934 | ||||
|
935 | $ echo '[extensions]' >> .hg/hgrc | |||
|
936 | $ echo 'win32text = ' >> .hg/hgrc | |||
|
937 | $ echo '[decode]' >> .hg/hgrc | |||
|
938 | $ echo '** = cleverdecode:' >> .hg/hgrc | |||
|
939 | $ echo '[encode]' >> .hg/hgrc | |||
|
940 | $ echo '** = cleverencode:' >> .hg/hgrc | |||
|
941 | $ echo '[patch]' >> .hg/hgrc | |||
|
942 | $ echo 'eol = crlf' >> .hg/hgrc | |||
316 |
|
943 | |||
317 | echo % with win32ext |
|
944 | $ echo d >> subdir/f1 | |
318 | echo '[extensions]' >> .hg/hgrc |
|
945 | $ hg record -d '23 0' -mw1 <<EOF | |
319 | echo 'win32text = ' >> .hg/hgrc |
|
946 | > y | |
320 | echo '[decode]' >> .hg/hgrc |
|
947 | > y | |
321 | echo '** = cleverdecode:' >> .hg/hgrc |
|
948 | > EOF | |
322 | echo '[encode]' >> .hg/hgrc |
|
949 | diff --git a/subdir/f1 b/subdir/f1 | |
323 | echo '** = cleverencode:' >> .hg/hgrc |
|
950 | 1 hunks, 1 lines changed | |
324 | echo '[patch]' >> .hg/hgrc |
|
951 | examine changes to 'subdir/f1'? [Ynsfdaq?] | |
325 | echo 'eol = crlf' >> .hg/hgrc |
|
952 | @@ -3,3 +3,4 @@ | |
|
953 | a | |||
|
954 | b | |||
|
955 | c | |||
|
956 | +d | |||
|
957 | record this change to 'subdir/f1'? [Ynsfdaq?] | |||
326 |
|
958 | |||
327 | echo d >> subdir/f1 |
|
959 | $ hg tip -p | |
328 | hg record -d '23 0' -mw1 <<EOF |
|
960 | changeset: 26:5bacc1f6e9cf | |
329 | y |
|
961 | tag: tip | |
330 | y |
|
962 | parent: 24:1460f6e47966 | |
331 | EOF |
|
963 | user: test | |
332 | echo; hg tip -p |
|
964 | date: Thu Jan 01 00:00:23 1970 +0000 | |
|
965 | summary: w1 | |||
|
966 | ||||
|
967 | diff -r 1460f6e47966 -r 5bacc1f6e9cf subdir/f1 | |||
|
968 | --- a/subdir/f1 Thu Jan 01 00:00:22 1970 +0000 | |||
|
969 | +++ b/subdir/f1 Thu Jan 01 00:00:23 1970 +0000 | |||
|
970 | @@ -3,3 +3,4 @@ | |||
|
971 | a | |||
|
972 | b | |||
|
973 | c | |||
|
974 | +d | |||
|
975 |
General Comments 0
You need to be logged in to leave comments.
Login now