changeset 2640:e278271d2391

obslog: add a comment about the final new line of descriptions
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 21 Jun 2017 11:31:21 +0200
parents a5d8062f55ba
children c90c70d8b6de
files hgext3rd/evolve/obshistory.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obshistory.py	Tue Jun 20 16:22:16 2017 +0200
+++ b/hgext3rd/evolve/obshistory.py	Wed Jun 21 11:31:21 2017 +0200
@@ -161,6 +161,8 @@
 def getmarkerdescriptionpatch(repo, base, succ):
     basectx = repo[base]
     succctx = repo[succ]
+    # description are stored without final new line,
+    # add one to avoid ugly diff
     basedesc = basectx.description() + '\n'
     succdesc = succctx.description() + '\n'