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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Oct 17 10:16:43 EDT 2017


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

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))



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


More information about the Mercurial-devel mailing list