Show More
@@ -379,7 +379,9 def record(ui, repo, *pats, **opts): | |||
|
379 | 379 | a - record all changes to all remaining files |
|
380 | 380 | q - quit, recording no changes |
|
381 | 381 | |
|
382 |
? - display help |
|
|
382 | ? - display help | |
|
383 | ||
|
384 | This command is not available when committing a merge.''' | |
|
383 | 385 | |
|
384 | 386 | dorecord(ui, repo, commands.commit, *pats, **opts) |
|
385 | 387 | |
@@ -422,6 +424,11 def dorecord(ui, repo, commitfunc, *pats | |||
|
422 | 424 | left in place, so the user can continue his work. |
|
423 | 425 | """ |
|
424 | 426 | |
|
427 | merge = len(repo[None].parents()) > 1 | |
|
428 | if merge: | |
|
429 | raise util.Abort(_('cannot partially commit a merge ' | |
|
430 | '(use hg commit instead)')) | |
|
431 | ||
|
425 | 432 | changes = repo.status(match=match)[:3] |
|
426 | 433 | diffopts = mdiff.diffopts(git=True, nodates=True) |
|
427 | 434 | chunks = patch.diff(repo, changes=changes, opts=diffopts) |
@@ -297,9 +297,20 y | |||
|
297 | 297 | EOF |
|
298 | 298 | echo; hg tip --config diff.git=True -p |
|
299 | 299 | |
|
300 | cd .. | |
|
301 | ||
|
302 | echo % abort early when a merge is in progress | |
|
303 | hg up 4 | |
|
304 | touch iwillmergethat | |
|
305 | hg add iwillmergethat | |
|
306 | hg branch thatbranch | |
|
307 | hg ci -m'new head' | |
|
308 | hg up default | |
|
309 | hg merge thatbranch | |
|
310 | echo; hg record -m'will abort' | |
|
311 | hg up -C | |
|
300 | 312 | |
|
301 | 313 | echo % with win32ext |
|
302 | cd .. | |
|
303 | 314 | echo '[extensions]' >> .hg/hgrc |
|
304 | 315 | echo 'win32text = ' >> .hg/hgrc |
|
305 | 316 | echo '[decode]' >> .hg/hgrc |
@@ -24,6 +24,8 interactively select changes to commit | |||
|
24 | 24 | |
|
25 | 25 | ? - display help |
|
26 | 26 | |
|
27 | This command is not available when committing a merge. | |
|
28 | ||
|
27 | 29 | options: |
|
28 | 30 | |
|
29 | 31 | -A --addremove mark new/missing files as added/removed before committing |
@@ -569,6 +571,16 new mode 100644 | |||
|
569 | 571 | b |
|
570 | 572 | +c |
|
571 | 573 | |
|
574 | % abort early when a merge is in progress | |
|
575 | 1 files updated, 0 files merged, 5 files removed, 0 files unresolved | |
|
576 | marked working directory as branch thatbranch | |
|
577 | created new head | |
|
578 | 5 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
579 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
580 | (branch merge, don't forget to commit) | |
|
581 | ||
|
582 | abort: cannot partially commit a merge (use hg commit instead) | |
|
583 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
572 | 584 | % with win32ext |
|
573 | 585 | diff --git a/subdir/f1 b/subdir/f1 |
|
574 | 586 | 1 hunks, 1 lines changed |
@@ -578,8 +590,9 examine changes to 'subdir/f1'? [Ynsfdaq | |||
|
578 | 590 | c |
|
579 | 591 | +d |
|
580 | 592 | record this change to 'subdir/f1'? [Ynsfdaq?] |
|
581 |
changeset: 2 |
|
|
593 | changeset: 26:5bacc1f6e9cf | |
|
582 | 594 | tag: tip |
|
595 | parent: 24:1460f6e47966 | |
|
583 | 596 | user: test |
|
584 | 597 | date: Thu Jan 01 00:00:23 1970 +0000 |
|
585 | 598 | summary: w1 |
General Comments 0
You need to be logged in to leave comments.
Login now