releasenotes: fix documentation of similaritycheck()
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 16 Oct 2017 22:19:02 +0530
changeset 34780 070ba789f4d0
parent 34779 cfb054a7ecc4
child 34781 fe987d0b9e1e
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
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