changeset 11516:ee876e42dd74 stable

test-merge-closedheads: test cc982ff2dcf8
author Martin Geisler <mg@aragost.com>
date Wed, 07 Jul 2010 14:13:23 +0200
parents cc982ff2dcf8
children 8bbe396883db 8d827f4a23f1 ee3e5e3210d0
files tests/test-merge-closedheads tests/test-merge-closedheads.out
diffstat 2 files changed, 34 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-merge-closedheads	Wed Jul 07 14:11:59 2010 +0200
+++ b/tests/test-merge-closedheads	Wed Jul 07 14:13:23 2010 +0200
@@ -48,4 +48,26 @@
 hg merge
 hgcommit -m 'merged heads'
 
+echo '% hg update -C 8'
+hg update -C 8
 
+echo '% hg branch some-branch'
+hg branch some-branch
+echo '% hg commit'
+hgcommit -m 'started some-branch'
+echo '% hg commit --close-branch'
+hgcommit --close-branch -m 'closed some-branch'
+
+echo '% hg update default'
+hg update default
+echo '% hg merge some-branch'
+hg merge some-branch
+echo '% hg commit (no reopening of some-branch)'
+hgcommit -m 'merge with closed branch'
+
+cat >> $HGRCPATH <<EOF
+[extensions]
+graphlog =
+EOF
+
+#hg glog
--- a/tests/test-merge-closedheads.out	Wed Jul 07 14:11:59 2010 +0200
+++ b/tests/test-merge-closedheads.out	Wed Jul 07 14:13:23 2010 +0200
@@ -16,3 +16,15 @@
 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 (branch merge, don't forget to commit)
+% hg update -C 8
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+% hg branch some-branch
+marked working directory as branch some-branch
+% hg commit
+% hg commit --close-branch
+% hg update default
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+% hg merge some-branch
+0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+(branch merge, don't forget to commit)
+% hg commit (no reopening of some-branch)