##// END OF EJS Templates
record: separate each hunk with a blank line...
Martin Geisler -
r10694:d7732d2d default
parent child Browse files
Show More
@@ -293,6 +293,7 b' def filterpatch(ui, chunks):'
293 293 _('&Quit, recording no changes'),
294 294 _('&?'))
295 295 r = ui.promptchoice("%s %s" % (query, resps), choices)
296 ui.write("\n")
296 297 if r == 7: # ?
297 298 doc = gettext(record.__doc__)
298 299 c = doc.find(_('y - record this change'))
@@ -31,7 +31,8 b' adding a'
31 31 old mode 100644
32 32 new mode 100755
33 33 1 hunks, 2 lines changed
34 examine changes to 'a'? [Ynsfdaq?] @@ -2,7 +2,7 @@
34 examine changes to 'a'? [Ynsfdaq?]
35 @@ -2,7 +2,7 @@
35 36 c
36 37 a
37 38 a
@@ -41,13 +42,15 b" examine changes to 'a'? [Ynsfdaq?] \x1b[0;3"
41 42 a
42 43 c
43 44 record this change to 'a'? [Ynsfdaq?]
45
44 46 rolling back last transaction
45 47 % qrecord
46 48 diff --git a/a b/a
47 49 old mode 100644
48 50 new mode 100755
49 51 1 hunks, 2 lines changed
50 examine changes to 'a'? [Ynsfdaq?] @@ -2,7 +2,7 @@
52 examine changes to 'a'? [Ynsfdaq?]
53 @@ -2,7 +2,7 @@
51 54 c
52 55 a
53 56 a
@@ -57,3 +60,4 b" examine changes to 'a'? [Ynsfdaq?] \x1b[0;3"
57 60 a
58 61 c
59 62 record this change to 'a'? [Ynsfdaq?]
63
@@ -80,28 +80,34 b' diff -r 1057167b20ef dir/a.txt'
80 80 % qrecord a.patch
81 81 diff --git a/1.txt b/1.txt
82 82 2 hunks, 4 lines changed
83 examine changes to '1.txt'? [Ynsfdaq?] @@ -1,3 +1,3 @@
83 examine changes to '1.txt'? [Ynsfdaq?]
84 @@ -1,3 +1,3 @@
84 85 1
85 86 -2
86 87 +2 2
87 88 3
88 record change 1/6 to '1.txt'? [Ynsfdaq?] @@ -3,3 +3,3 @@
89 record change 1/6 to '1.txt'? [Ynsfdaq?]
90 @@ -3,3 +3,3 @@
89 91 3
90 92 -4
91 93 +4 4
92 94 5
93 record change 2/6 to '1.txt'? [Ynsfdaq?] diff --git a/2.txt b/2.txt
95 record change 2/6 to '1.txt'? [Ynsfdaq?]
96 diff --git a/2.txt b/2.txt
94 97 1 hunks, 2 lines changed
95 examine changes to '2.txt'? [Ynsfdaq?] @@ -1,5 +1,5 @@
98 examine changes to '2.txt'? [Ynsfdaq?]
99 @@ -1,5 +1,5 @@
96 100 a
97 101 -b
98 102 +b b
99 103 c
100 104 d
101 105 e
102 record change 4/6 to '2.txt'? [Ynsfdaq?] diff --git a/dir/a.txt b/dir/a.txt
106 record change 4/6 to '2.txt'? [Ynsfdaq?]
107 diff --git a/dir/a.txt b/dir/a.txt
103 108 1 hunks, 2 lines changed
104 109 examine changes to 'dir/a.txt'? [Ynsfdaq?]
110
105 111 % after qrecord a.patch 'tip'
106 112 changeset: 1:5d1ca63427ee
107 113 tag: qtip
@@ -157,22 +163,26 b' diff -r 5d1ca63427ee dir/a.txt'
157 163 % qrecord b.patch
158 164 diff --git a/1.txt b/1.txt
159 165 1 hunks, 2 lines changed
160 examine changes to '1.txt'? [Ynsfdaq?] @@ -1,5 +1,5 @@
166 examine changes to '1.txt'? [Ynsfdaq?]
167 @@ -1,5 +1,5 @@
161 168 1
162 169 2 2
163 170 3
164 171 -4
165 172 +4 4
166 173 5
167 record change 1/3 to '1.txt'? [Ynsfdaq?] diff --git a/dir/a.txt b/dir/a.txt
174 record change 1/3 to '1.txt'? [Ynsfdaq?]
175 diff --git a/dir/a.txt b/dir/a.txt
168 176 1 hunks, 2 lines changed
169 examine changes to 'dir/a.txt'? [Ynsfdaq?] @@ -1,4 +1,4 @@
177 examine changes to 'dir/a.txt'? [Ynsfdaq?]
178 @@ -1,4 +1,4 @@
170 179 -hello world
171 180 +hello world!
172 181
173 182 someone
174 183 up
175 184 record change 3/3 to 'dir/a.txt'? [Ynsfdaq?]
185
176 186 % after qrecord b.patch 'tip'
177 187 changeset: 2:b056198bf878
178 188 tag: qtip
@@ -39,7 +39,8 b' use "hg -v help record" to show global o'
39 39 % select no files
40 40 diff --git a/empty-rw b/empty-rw
41 41 new file mode 100644
42 examine changes to 'empty-rw'? [Ynsfdaq?] no changes to record
42 examine changes to 'empty-rw'? [Ynsfdaq?]
43 no changes to record
43 44
44 45 changeset: -1:000000000000
45 46 tag: tip
@@ -50,7 +51,8 b' date: Thu Jan 01 00:00:00 1970 +0'
50 51 % select files but no hunks
51 52 diff --git a/empty-rw b/empty-rw
52 53 new file mode 100644
53 examine changes to 'empty-rw'? [Ynsfdaq?] abort: empty commit message
54 examine changes to 'empty-rw'? [Ynsfdaq?]
55 abort: empty commit message
54 56
55 57 changeset: -1:000000000000
56 58 tag: tip
@@ -62,6 +64,7 b' date: Thu Jan 01 00:00:00 1970 +0'
62 64 diff --git a/empty-rw b/empty-rw
63 65 new file mode 100644
64 66 examine changes to 'empty-rw'? [Ynsfdaq?]
67
65 68 changeset: 0:c0708cf4e46e
66 69 tag: tip
67 70 user: test
@@ -74,6 +77,7 b' diff --git a/empty-rw b/empty-rename'
74 77 rename from empty-rw
75 78 rename to empty-rename
76 79 examine changes to 'empty-rw' and 'empty-rename'? [Ynsfdaq?]
80
77 81 changeset: 1:d695e8dcb197
78 82 tag: tip
79 83 user: test
@@ -86,6 +90,7 b' diff --git a/empty-rename b/empty-copy'
86 90 copy from empty-rename
87 91 copy to empty-copy
88 92 examine changes to 'empty-rename' and 'empty-copy'? [Ynsfdaq?]
93
89 94 changeset: 2:1d4b90bea524
90 95 tag: tip
91 96 user: test
@@ -97,6 +102,7 b' summary: copy'
97 102 diff --git a/empty-copy b/empty-copy
98 103 deleted file mode 100644
99 104 examine changes to 'empty-copy'? [Ynsfdaq?]
105
100 106 changeset: 3:b39a238f01a1
101 107 tag: tip
102 108 user: test
@@ -110,6 +116,7 b' diff --git a/tip.bundle b/tip.bundle'
110 116 new file mode 100644
111 117 this is a binary file
112 118 examine changes to 'tip.bundle'? [Ynsfdaq?]
119
113 120 changeset: 4:ad816da3711e
114 121 tag: tip
115 122 user: test
@@ -124,6 +131,7 b' 1 changesets found'
124 131 diff --git a/tip.bundle b/tip.bundle
125 132 this modifies a binary file (all or nothing)
126 133 examine changes to 'tip.bundle'? [Ynsfdaq?]
134
127 135 changeset: 5:dccd6f3eb485
128 136 tag: tip
129 137 user: test
@@ -140,6 +148,7 b' rename from tip.bundle'
140 148 rename to top.bundle
141 149 this modifies a binary file (all or nothing)
142 150 examine changes to 'tip.bundle' and 'top.bundle'? [Ynsfdaq?]
151
143 152 changeset: 6:7fa44105f5b3
144 153 tag: tip
145 154 user: test
@@ -155,6 +164,7 b' Binary file top.bundle has changed'
155 164 diff --git a/plain b/plain
156 165 new file mode 100644
157 166 examine changes to 'plain'? [Ynsfdaq?]
167
158 168 changeset: 7:11fb457c1be4
159 169 tag: tip
160 170 user: test
@@ -179,46 +189,55 b' diff -r 7fa44105f5b3 -r 11fb457c1be4 pla'
179 189 % modify end of plain file
180 190 diff --git a/plain b/plain
181 191 1 hunks, 1 lines changed
182 examine changes to 'plain'? [Ynsfdaq?] @@ -8,3 +8,4 @@
192 examine changes to 'plain'? [Ynsfdaq?]
193 @@ -8,3 +8,4 @@
183 194 8
184 195 9
185 196 10
186 197 +11
187 record this change to 'plain'? [Ynsfdaq?] % modify end of plain file, no EOL
198 record this change to 'plain'? [Ynsfdaq?]
199 % modify end of plain file, no EOL
188 200 diff --git a/plain b/plain
189 201 1 hunks, 1 lines changed
190 examine changes to 'plain'? [Ynsfdaq?] @@ -9,3 +9,4 @@
202 examine changes to 'plain'? [Ynsfdaq?]
203 @@ -9,3 +9,4 @@
191 204 9
192 205 10
193 206 11
194 207 +7264f99c5f5ff3261504828afa4fb4d406c3af54
195 208 \ No newline at end of file
196 record this change to 'plain'? [Ynsfdaq?] % modify end of plain file, add EOL
209 record this change to 'plain'? [Ynsfdaq?]
210 % modify end of plain file, add EOL
197 211 diff --git a/plain b/plain
198 212 1 hunks, 2 lines changed
199 examine changes to 'plain'? [Ynsfdaq?] @@ -9,4 +9,4 @@
213 examine changes to 'plain'? [Ynsfdaq?]
214 @@ -9,4 +9,4 @@
200 215 9
201 216 10
202 217 11
203 218 -7264f99c5f5ff3261504828afa4fb4d406c3af54
204 219 \ No newline at end of file
205 220 +7264f99c5f5ff3261504828afa4fb4d406c3af54
206 record this change to 'plain'? [Ynsfdaq?] % modify beginning, trim end, record both
221 record this change to 'plain'? [Ynsfdaq?]
222 % modify beginning, trim end, record both
207 223 diff --git a/plain b/plain
208 224 2 hunks, 4 lines changed
209 examine changes to 'plain'? [Ynsfdaq?] @@ -1,4 +1,4 @@
225 examine changes to 'plain'? [Ynsfdaq?]
226 @@ -1,4 +1,4 @@
210 227 -1
211 228 +2
212 229 2
213 230 3
214 231 4
215 record change 1/2 to 'plain'? [Ynsfdaq?] @@ -8,5 +8,3 @@
232 record change 1/2 to 'plain'? [Ynsfdaq?]
233 @@ -8,5 +8,3 @@
216 234 8
217 235 9
218 236 10
219 237 -11
220 238 -7264f99c5f5ff3261504828afa4fb4d406c3af54
221 239 record change 2/2 to 'plain'? [Ynsfdaq?]
240
222 241 changeset: 11:efca65c9b09e
223 242 tag: tip
224 243 user: test
@@ -245,7 +264,8 b' diff -r cd07d48e8cbe -r efca65c9b09e pla'
245 264 % record end
246 265 diff --git a/plain b/plain
247 266 2 hunks, 5 lines changed
248 examine changes to 'plain'? [Ynsfdaq?] @@ -1,9 +1,6 @@
267 examine changes to 'plain'? [Ynsfdaq?]
268 @@ -1,9 +1,6 @@
249 269 -2
250 270 -2
251 271 -3
@@ -255,7 +275,8 b" examine changes to 'plain'? [Ynsfdaq?] @"
255 275 7
256 276 8
257 277 9
258 record change 1/2 to 'plain'? [Ynsfdaq?] @@ -4,7 +1,7 @@
278 record change 1/2 to 'plain'? [Ynsfdaq?]
279 @@ -4,7 +1,7 @@
259 280 4
260 281 5
261 282 6
@@ -265,6 +286,7 b" record change 1/2 to 'plain'? [Ynsfdaq?]"
265 286 -10
266 287 +10.new
267 288 record change 2/2 to 'plain'? [Ynsfdaq?]
289
268 290 changeset: 12:7d1e66983c15
269 291 tag: tip
270 292 user: test
@@ -284,7 +306,8 b' diff -r efca65c9b09e -r 7d1e66983c15 pla'
284 306 % record beginning
285 307 diff --git a/plain b/plain
286 308 1 hunks, 3 lines changed
287 examine changes to 'plain'? [Ynsfdaq?] @@ -1,6 +1,3 @@
309 examine changes to 'plain'? [Ynsfdaq?]
310 @@ -1,6 +1,3 @@
288 311 -2
289 312 -2
290 313 -3
@@ -292,6 +315,7 b" examine changes to 'plain'? [Ynsfdaq?] @"
292 315 5
293 316 6
294 317 record this change to 'plain'? [Ynsfdaq?]
318
295 319 changeset: 13:a09fc62a0e61
296 320 tag: tip
297 321 user: test
@@ -313,7 +337,8 b' diff -r 7d1e66983c15 -r a09fc62a0e61 pla'
313 337 % record end
314 338 diff --git a/plain b/plain
315 339 2 hunks, 4 lines changed
316 examine changes to 'plain'? [Ynsfdaq?] @@ -1,6 +1,9 @@
340 examine changes to 'plain'? [Ynsfdaq?]
341 @@ -1,6 +1,9 @@
317 342 +1
318 343 +2
319 344 +3
@@ -323,7 +348,8 b" examine changes to 'plain'? [Ynsfdaq?] @"
323 348 7
324 349 8
325 350 9
326 record change 1/2 to 'plain'? [Ynsfdaq?] @@ -1,7 +4,6 @@
351 record change 1/2 to 'plain'? [Ynsfdaq?]
352 @@ -1,7 +4,6 @@
327 353 4
328 354 5
329 355 6
@@ -331,17 +357,20 b" record change 1/2 to 'plain'? [Ynsfdaq?]"
331 357 8
332 358 9
333 359 -10.new
334 record change 2/2 to 'plain'? [Ynsfdaq?] % add to beginning, middle, end
360 record change 2/2 to 'plain'? [Ynsfdaq?]
361 % add to beginning, middle, end
335 362 % record beginning, middle
336 363 diff --git a/plain b/plain
337 364 3 hunks, 7 lines changed
338 examine changes to 'plain'? [Ynsfdaq?] @@ -1,2 +1,5 @@
365 examine changes to 'plain'? [Ynsfdaq?]
366 @@ -1,2 +1,5 @@
339 367 +1
340 368 +2
341 369 +3
342 370 4
343 371 5
344 record change 1/3 to 'plain'? [Ynsfdaq?] @@ -1,6 +4,8 @@
372 record change 1/3 to 'plain'? [Ynsfdaq?]
373 @@ -1,6 +4,8 @@
345 374 4
346 375 5
347 376 +5.new
@@ -350,7 +379,8 b" record change 1/3 to 'plain'? [Ynsfdaq?]"
350 379 7
351 380 8
352 381 9
353 record change 2/3 to 'plain'? [Ynsfdaq?] @@ -3,4 +8,6 @@
382 record change 2/3 to 'plain'? [Ynsfdaq?]
383 @@ -3,4 +8,6 @@
354 384 6
355 385 7
356 386 8
@@ -358,6 +388,7 b" record change 2/3 to 'plain'? [Ynsfdaq?]"
358 388 +10
359 389 +11
360 390 record change 3/3 to 'plain'? [Ynsfdaq?]
391
361 392 changeset: 15:7d137997f3a6
362 393 tag: tip
363 394 user: test
@@ -382,13 +413,15 b' diff -r c0b8e5fb0be6 -r 7d137997f3a6 pla'
382 413 % record end
383 414 diff --git a/plain b/plain
384 415 1 hunks, 2 lines changed
385 examine changes to 'plain'? [Ynsfdaq?] @@ -9,3 +9,5 @@
416 examine changes to 'plain'? [Ynsfdaq?]
417 @@ -9,3 +9,5 @@
386 418 7
387 419 8
388 420 9
389 421 +10
390 422 +11
391 423 record this change to 'plain'? [Ynsfdaq?]
424
392 425 changeset: 16:4959e3ff13eb
393 426 tag: tip
394 427 user: test
@@ -408,10 +441,12 b' diff -r 7d137997f3a6 -r 4959e3ff13eb pla'
408 441 adding subdir/a
409 442 diff --git a/subdir/a b/subdir/a
410 443 1 hunks, 1 lines changed
411 examine changes to 'subdir/a'? [Ynsfdaq?] @@ -1,1 +1,2 @@
444 examine changes to 'subdir/a'? [Ynsfdaq?]
445 @@ -1,1 +1,2 @@
412 446 a
413 447 +a
414 448 record this change to 'subdir/a'? [Ynsfdaq?]
449
415 450 changeset: 18:40698cd490b2
416 451 tag: tip
417 452 user: test
@@ -428,7 +463,8 b' diff -r 661eacdc08b9 -r 40698cd490b2 sub'
428 463 % help, quit
429 464 diff --git a/subdir/f1 b/subdir/f1
430 465 1 hunks, 1 lines changed
431 examine changes to 'subdir/f1'? [Ynsfdaq?] y - record this change
466 examine changes to 'subdir/f1'? [Ynsfdaq?]
467 y - record this change
432 468 n - skip this change
433 469 s - skip remaining changes to this file
434 470 f - record remaining changes to this file
@@ -436,31 +472,38 b' d - done, skip remaining changes and fil'
436 472 a - record all changes to all remaining files
437 473 q - quit, recording no changes
438 474 ? - display help
439 examine changes to 'subdir/f1'? [Ynsfdaq?] abort: user quit
475 examine changes to 'subdir/f1'? [Ynsfdaq?]
476 abort: user quit
440 477 % skip
441 478 diff --git a/subdir/f1 b/subdir/f1
442 479 1 hunks, 1 lines changed
443 examine changes to 'subdir/f1'? [Ynsfdaq?] diff --git a/subdir/f2 b/subdir/f2
480 examine changes to 'subdir/f1'? [Ynsfdaq?]
481 diff --git a/subdir/f2 b/subdir/f2
444 482 1 hunks, 1 lines changed
445 483 examine changes to 'subdir/f2'? [Ynsfdaq?] abort: response expected
446 484 % no
447 485 diff --git a/subdir/f1 b/subdir/f1
448 486 1 hunks, 1 lines changed
449 examine changes to 'subdir/f1'? [Ynsfdaq?] diff --git a/subdir/f2 b/subdir/f2
487 examine changes to 'subdir/f1'? [Ynsfdaq?]
488 diff --git a/subdir/f2 b/subdir/f2
450 489 1 hunks, 1 lines changed
451 490 examine changes to 'subdir/f2'? [Ynsfdaq?] abort: response expected
452 491 % f, quit
453 492 diff --git a/subdir/f1 b/subdir/f1
454 493 1 hunks, 1 lines changed
455 examine changes to 'subdir/f1'? [Ynsfdaq?] diff --git a/subdir/f2 b/subdir/f2
494 examine changes to 'subdir/f1'? [Ynsfdaq?]
495 diff --git a/subdir/f2 b/subdir/f2
456 496 1 hunks, 1 lines changed
457 examine changes to 'subdir/f2'? [Ynsfdaq?] abort: user quit
497 examine changes to 'subdir/f2'? [Ynsfdaq?]
498 abort: user quit
458 499 % s, all
459 500 diff --git a/subdir/f1 b/subdir/f1
460 501 1 hunks, 1 lines changed
461 examine changes to 'subdir/f1'? [Ynsfdaq?] diff --git a/subdir/f2 b/subdir/f2
502 examine changes to 'subdir/f1'? [Ynsfdaq?]
503 diff --git a/subdir/f2 b/subdir/f2
462 504 1 hunks, 1 lines changed
463 505 examine changes to 'subdir/f2'? [Ynsfdaq?]
506
464 507 changeset: 20:d2d8c25276a8
465 508 tag: tip
466 509 user: test
@@ -478,6 +521,7 b' diff -r 25eb2a7694fb -r d2d8c25276a8 sub'
478 521 diff --git a/subdir/f1 b/subdir/f1
479 522 1 hunks, 1 lines changed
480 523 examine changes to 'subdir/f1'? [Ynsfdaq?]
524
481 525 changeset: 21:1013f51ce32f
482 526 tag: tip
483 527 user: test
@@ -496,11 +540,13 b' diff --git a/subdir/f1 b/subdir/f1'
496 540 old mode 100644
497 541 new mode 100755
498 542 1 hunks, 1 lines changed
499 examine changes to 'subdir/f1'? [Ynsfdaq?] @@ -1,2 +1,3 @@
543 examine changes to 'subdir/f1'? [Ynsfdaq?]
544 @@ -1,2 +1,3 @@
500 545 a
501 546 a
502 547 +a
503 548 record this change to 'subdir/f1'? [Ynsfdaq?]
549
504 550 changeset: 22:5df857735621
505 551 tag: tip
506 552 user: test
@@ -520,12 +566,14 b' new mode 100755'
520 566 % preserve execute permission on original
521 567 diff --git a/subdir/f1 b/subdir/f1
522 568 1 hunks, 1 lines changed
523 examine changes to 'subdir/f1'? [Ynsfdaq?] @@ -1,3 +1,4 @@
569 examine changes to 'subdir/f1'? [Ynsfdaq?]
570 @@ -1,3 +1,4 @@
524 571 a
525 572 a
526 573 a
527 574 +b
528 575 record this change to 'subdir/f1'? [Ynsfdaq?]
576
529 577 changeset: 23:a4ae36a78715
530 578 tag: tip
531 579 user: test
@@ -546,12 +594,14 b' diff --git a/subdir/f1 b/subdir/f1'
546 594 old mode 100755
547 595 new mode 100644
548 596 1 hunks, 1 lines changed
549 examine changes to 'subdir/f1'? [Ynsfdaq?] @@ -2,3 +2,4 @@
597 examine changes to 'subdir/f1'? [Ynsfdaq?]
598 @@ -2,3 +2,4 @@
550 599 a
551 600 a
552 601 b
553 602 +c
554 603 record this change to 'subdir/f1'? [Ynsfdaq?]
604
555 605 changeset: 24:1460f6e47966
556 606 tag: tip
557 607 user: test
@@ -572,12 +622,14 b' new mode 100644'
572 622 % with win32ext
573 623 diff --git a/subdir/f1 b/subdir/f1
574 624 1 hunks, 1 lines changed
575 examine changes to 'subdir/f1'? [Ynsfdaq?] @@ -3,3 +3,4 @@
625 examine changes to 'subdir/f1'? [Ynsfdaq?]
626 @@ -3,3 +3,4 @@
576 627 a
577 628 b
578 629 c
579 630 +d
580 631 record this change to 'subdir/f1'? [Ynsfdaq?]
632
581 633 changeset: 25:5bacc1f6e9cf
582 634 tag: tip
583 635 user: test
General Comments 0
You need to be logged in to leave comments. Login now