Show More
@@ -379,7 +379,9 b' def record(ui, repo, *pats, **opts):' | |||||
379 | a - record all changes to all remaining files |
|
379 | a - record all changes to all remaining files | |
380 | q - quit, recording no changes |
|
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 | dorecord(ui, repo, commands.commit, *pats, **opts) |
|
386 | dorecord(ui, repo, commands.commit, *pats, **opts) | |
385 |
|
387 | |||
@@ -422,6 +424,11 b' def dorecord(ui, repo, commitfunc, *pats' | |||||
422 | left in place, so the user can continue his work. |
|
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 | changes = repo.status(match=match)[:3] |
|
432 | changes = repo.status(match=match)[:3] | |
426 | diffopts = mdiff.diffopts(git=True, nodates=True) |
|
433 | diffopts = mdiff.diffopts(git=True, nodates=True) | |
427 | chunks = patch.diff(repo, changes=changes, opts=diffopts) |
|
434 | chunks = patch.diff(repo, changes=changes, opts=diffopts) |
@@ -297,9 +297,20 b' y' | |||||
297 | EOF |
|
297 | EOF | |
298 | echo; hg tip --config diff.git=True -p |
|
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 | echo % with win32ext |
|
313 | echo % with win32ext | |
302 | cd .. |
|
|||
303 | echo '[extensions]' >> .hg/hgrc |
|
314 | echo '[extensions]' >> .hg/hgrc | |
304 | echo 'win32text = ' >> .hg/hgrc |
|
315 | echo 'win32text = ' >> .hg/hgrc | |
305 | echo '[decode]' >> .hg/hgrc |
|
316 | echo '[decode]' >> .hg/hgrc |
@@ -24,6 +24,8 b' interactively select changes to commit' | |||||
24 |
|
24 | |||
25 | ? - display help |
|
25 | ? - display help | |
26 |
|
26 | |||
|
27 | This command is not available when committing a merge. | |||
|
28 | ||||
27 | options: |
|
29 | options: | |
28 |
|
30 | |||
29 | -A --addremove mark new/missing files as added/removed before committing |
|
31 | -A --addremove mark new/missing files as added/removed before committing | |
@@ -569,6 +571,16 b' new mode 100644' | |||||
569 | b |
|
571 | b | |
570 | +c |
|
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 | % with win32ext |
|
584 | % with win32ext | |
573 | diff --git a/subdir/f1 b/subdir/f1 |
|
585 | diff --git a/subdir/f1 b/subdir/f1 | |
574 | 1 hunks, 1 lines changed |
|
586 | 1 hunks, 1 lines changed | |
@@ -578,8 +590,9 b" examine changes to 'subdir/f1'? [Ynsfdaq" | |||||
578 | c |
|
590 | c | |
579 | +d |
|
591 | +d | |
580 | record this change to 'subdir/f1'? [Ynsfdaq?] |
|
592 | record this change to 'subdir/f1'? [Ynsfdaq?] | |
581 |
changeset: 2 |
|
593 | changeset: 26:5bacc1f6e9cf | |
582 | tag: tip |
|
594 | tag: tip | |
|
595 | parent: 24:1460f6e47966 | |||
583 | user: test |
|
596 | user: test | |
584 | date: Thu Jan 01 00:00:23 1970 +0000 |
|
597 | date: Thu Jan 01 00:00:23 1970 +0000 | |
585 | summary: w1 |
|
598 | summary: w1 |
General Comments 0
You need to be logged in to leave comments.
Login now