test-merge-closedheads: test cc982ff2dcf8 stable
authorMartin Geisler <mg@aragost.com>
Wed, 07 Jul 2010 14:13:23 +0200
branchstable
changeset 11516 ee876e42dd74
parent 11515 cc982ff2dcf8
child 11517 8bbe396883db
child 11518 8d827f4a23f1
child 11526 ee3e5e3210d0
test-merge-closedheads: test cc982ff2dcf8
tests/test-merge-closedheads
tests/test-merge-closedheads.out
--- 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)