obslog: add a comment about the final new line of descriptions
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 21 Jun 2017 11:31:21 +0200
changeset 2640 e278271d2391
parent 2639 a5d8062f55ba
child 2641 c90c70d8b6de
obslog: add a comment about the final new line of descriptions
hgext3rd/evolve/obshistory.py
--- 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'