hgext/releasenotes.py
changeset 34780 070ba789f4d0
parent 34736 25b5787e8dde
child 34810 44bd29168d14
equal deleted inserted replaced
34779:cfb054a7ecc4 34780:070ba789f4d0
   214     else:
   214     else:
   215         return False
   215         return False
   216 
   216 
   217 def similaritycheck(incoming_str, existingnotes):
   217 def similaritycheck(incoming_str, existingnotes):
   218     """
   218     """
   219     Returns true when note fragment can be merged to existing notes.
   219     Returns false when note fragment can be merged to existing notes.
   220     """
   220     """
   221     import fuzzywuzzy.fuzz as fuzz
   221     import fuzzywuzzy.fuzz as fuzz
   222     merge = True
   222     merge = True
   223     for bullet in existingnotes:
   223     for bullet in existingnotes:
   224         score = fuzz.token_set_ratio(incoming_str, bullet)
   224         score = fuzz.token_set_ratio(incoming_str, bullet)