changeset 49617:7ddbb3623a07 stable

tests: demonstrate a bug blocking a redundant branch close
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 18 Nov 2022 14:03:56 -0500
parents 2af928d69e8e
children 3adca6eb6659
files tests/test-branches.t
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-branches.t	Thu Nov 17 16:31:52 2022 +0000
+++ b/tests/test-branches.t	Fri Nov 18 14:03:56 2022 -0500
@@ -292,6 +292,26 @@
   [10]
   $ hg commit -d '9 0' --close-branch -m 're-closing this branch' b
 
+  $ echo baz > b
+  $ hg log -r .
+  changeset:   14:acc63dd7207f
+  branch:      b
+  tag:         tip
+  user:        test
+  date:        Thu Jan 01 00:00:09 1970 +0000
+  summary:     re-closing this branch
+  
+  $ hg commit -d '9 0' --close-branch -m 'empty re-closing this branch' -X b
+  $ hg log -r .
+  changeset:   15:3c41ebd8ea8b
+  branch:      b
+  tag:         tip
+  user:        test
+  date:        Thu Jan 01 00:00:09 1970 +0000
+  summary:     empty re-closing this branch
+  
+  $ hg revert b
+
   $ hg debugstrip --rev 13: --no-backup
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ hg revert --all --no-backup