# HG changeset patch # User Pierre-Yves David # Date 1498037481 -7200 # Node ID e278271d23914500f789e4259bd96f88b621b63d # Parent a5d8062f55bae071fabf8f47d8c5d7218c7b18d8 obslog: add a comment about the final new line of descriptions diff -r a5d8062f55ba -r e278271d2391 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'