Patchwork D1121: releasenotes: show a warning if fuzzywuzzy is not present

login
register
mail settings
Submitter phabricator
Date Oct. 17, 2017, 2:16 p.m.
Message ID <ac168f78e08d898c52ed4426401d0aaa@localhost.localdomain>
Download mbox | patch
Permalink /patch/25101/
State Not Applicable
Headers show

Comments

phabricator - Oct. 17, 2017, 2:16 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG288fad8c55f9: releasenotes: show a warning if fuzzywuzzy is not present (authored by pulkit, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D1121?vs=2832&id=2915#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1121?vs=2832&id=2915

REVISION DETAIL
  https://phab.mercurial-scm.org/D1121

AFFECTED FILES
  hgext/releasenotes.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py
--- a/hgext/releasenotes.py
+++ b/hgext/releasenotes.py
@@ -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))