diff tests/test-split.t @ 1738:cb5edd4b160c

split: avoid trying to split an empty commit (issue5191)
author Philippe Pepiot <philippe.pepiot@logilab.fr>
date Sat, 08 Oct 2016 15:49:12 +0200
parents 1b2efccfa4f3
children 83cf722eafc3 9f42f819267b
line wrap: on
line diff
--- a/tests/test-split.t	Thu Sep 22 09:15:30 2016 -0700
+++ b/tests/test-split.t	Sat Oct 08 15:49:12 2016 +0200
@@ -378,3 +378,10 @@
   (use either `hg split <rs>` or `hg split --rev <rs>`, not both)
   [255]
 
+Split empty commit (issue5191)
+  $ hg branch new-branch
+  marked working directory as branch new-branch
+  (branches are permanent and global, did you want a bookmark?)
+  $ hg commit -m "empty"
+  $ hg split
+  0 files updated, 0 files merged, 0 files removed, 0 files unresolved