pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers.
REVISION SUMMARY 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. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D1119 AFFECTED FILES hgext/releasenotes.py CHANGE DETAILS diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py --- a/hgext/releasenotes.py +++ b/hgext/releasenotes.py @@ -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 To: pulkit, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel