# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1508174197 -19800 # Node ID 288fad8c55f9c59ecdb32cdd5c1d085a85fe43f0 # Parent bc2caa4b4480a6ec3b14ac8eddc06b5fd52d1fa8 releasenotes: show a warning if fuzzywuzzy is not present Differential Revision: https://phab.mercurial-scm.org/D1121 diff -r bc2caa4b4480 -r 288fad8c55f9 hgext/releasenotes.py --- a/hgext/releasenotes.py Mon Oct 16 22:46:11 2017 +0530 +++ b/hgext/releasenotes.py Mon Oct 16 22:46:37 2017 +0530 @@ -100,6 +100,10 @@ This is used to combine multiple sources of release notes together. """ + if not fuzz: + ui.warn(_("module 'fuzzywuzzy' not found, merging of similar " + "releasenotes is disabled\n")) + for section in other: existingnotes = converttitled(self.titledforsection(section)) + \ convertnontitled(self.nontitledforsection(section))