Show More
@@ -44,7 +44,7 b" def precheck(repo, revs, action=b'rewrit" | |||||
44 | revs = (r.rev() for r in revs) |
|
44 | revs = (r.rev() for r in revs) | |
45 |
|
45 | |||
46 | if len(repo[None].parents()) > 1: |
|
46 | if len(repo[None].parents()) > 1: | |
47 | raise error.StateError(_(b"cannot %s while merging") % action) |
|
47 | raise error.StateError(_(b"cannot %s changesets while merging") % action) | |
48 |
|
48 | |||
49 | publicrevs = repo.revs(b'%ld and public()', revs) |
|
49 | publicrevs = repo.revs(b'%ld and public()', revs) | |
50 | if publicrevs: |
|
50 | if publicrevs: |
@@ -406,7 +406,7 b' Refuse to amend during a merge:' | |||||
406 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
406 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
407 | (branch merge, don't forget to commit) |
|
407 | (branch merge, don't forget to commit) | |
408 | $ hg ci --amend |
|
408 | $ hg ci --amend | |
409 | abort: cannot amend while merging |
|
409 | abort: cannot amend changesets while merging | |
410 | [20] |
|
410 | [20] | |
411 | $ hg ci -m 'merge' |
|
411 | $ hg ci -m 'merge' | |
412 |
|
412 |
@@ -410,7 +410,7 b' Add and expect uncommit to fail on both ' | |||||
410 | [20] |
|
410 | [20] | |
411 |
|
411 | |||
412 | $ hg uncommit --config experimental.uncommitondirtywdir=True |
|
412 | $ hg uncommit --config experimental.uncommitondirtywdir=True | |
413 | abort: cannot uncommit while merging |
|
413 | abort: cannot uncommit changesets while merging | |
414 | [20] |
|
414 | [20] | |
415 |
|
415 | |||
416 | $ hg status |
|
416 | $ hg status |
General Comments 0
You need to be logged in to leave comments.
Login now