releasenotes: show a warning if fuzzywuzzy is not present
Differential Revision: https://phab.mercurial-scm.org/D1121
--- 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))