# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1508172542 -19800 # Node ID 070ba789f4d023a9108bdf32037e49d93f3b74bc # Parent cfb054a7ecc45bcaac95f1e64b644dd0411ffe41 releasenotes: fix documentation of similaritycheck() The function document says that it returns true when the fragment can be merged, but if you see the function just above it which is similar(), it writes already exists thing if return value from similaritycheck() is False which is just opposite of the doc. This patch fixes that. Differential Revision: https://phab.mercurial-scm.org/D1119 diff -r cfb054a7ecc4 -r 070ba789f4d0 hgext/releasenotes.py --- a/hgext/releasenotes.py Sat Oct 14 01:15:01 2017 +0200 +++ b/hgext/releasenotes.py Mon Oct 16 22:19:02 2017 +0530 @@ -216,7 +216,7 @@ def similaritycheck(incoming_str, existingnotes): """ - Returns true when note fragment can be merged to existing notes. + Returns false when note fragment can be merged to existing notes. """ import fuzzywuzzy.fuzz as fuzz merge = True