diff tests/test-evolve-obshistory.t @ 3729:1b1badb3d2fc stable

obshistory: make obslog work when a commit doesn't have any description This logic is taken from logcmdutil.changesetprinter class. It checks that commit description is not empty before extracting the first line (before this patch it would try to index an empty list). Stripping description also makes obslog behave more like regular log when there are trailing/leading whitespaces.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 27 Apr 2018 16:19:45 +0800
parents 54a469cd5b26
children f5b9030e18e9
line wrap: on
line diff
--- a/tests/test-evolve-obshistory.t	Fri Apr 27 16:14:10 2018 +0800
+++ b/tests/test-evolve-obshistory.t	Fri Apr 27 16:19:45 2018 +0800
@@ -16,6 +16,20 @@
   > evolution.effect-flags = yes
   > EOF
 
+Test simple common cases
+========================
+
+Test setup
+----------
+  $ hg init $TESTTMP/simple
+  $ cd $TESTTMP/simple
+
+Actual test
+-----------
+  $ hg obslog -ap null
+  @  000000000000 (-1)
+  
+
 Test output on amended commit
 =============================