§
    cÌcÜ
  ã                   ó”   — d Z ddlmZ ddlmZ ddlmZmZ  ej         edg d¬¦  «        ¦  «         d„ Zd	„ Z	d
a
d„ Z e¦   «          dS )a¦  bzr-commitfromnews - make commit messages from the changes in a NEWS file.

commitfromnews is enabled by default when installed.

To use, set the ``commit.template_from_files`` setting to a path and
just do a commit where the NEWS file for your project has a new section
added without providing a message to commit.

E.g.::
  $ echo "commit.template_from_files = NEWS" >> .bzr/branch/branch.conf
  $ echo "
* new thing
" >> NEWS
  $ bzr commit
  # editor pops open to let you tweak the message, and it starts with
    "* new thing" as the message to edit.

commitfromnews attempts to create a sensible default commit message by
including sections from a NEWS or ChangeLog file.
é   )Úversion_info)Úhooks)Úoption_registryÚ
ListOptionúcommit.template_from_fileszTList of fnmatch(2)-style shell file patterns to use when creating commit
templates.
)ÚdefaultÚhelpc                 ó´   — | j                              ¦   «         }|                     d¦  «        }|r'ddlm}  || ||¦  «        }|                     ¦   «         S |S )z@Create a commit message for commit based on changes in the tree.r   é   )ÚCommitTemplate)Ú	work_treeÚget_config_stackÚgetÚcommittemplater   Úmake)ÚcommitÚmessageÚconfig_stackÚfilespecr   Útemplates         úH/usr/lib/python3/dist-packages/breezy/plugins/commitfromnews/__init__.pyÚcommit_templater   2   sj   € àÔ#×4Ò4Ñ6Ô6€LØ×ÒÐ <Ñ=Ô=€HØð Ø2Ð2Ð2Ð2Ð2Ð2Ø!�> &¨'°8Ñ<Ô<ˆØ�}Š}‰ŒÐØ€Nó    c                 óp   — dg}|                      |                      d„ |D ¦   «         ¦  «        ¦  «         |S )NÚtestsc                 óD   — g | ]}d                       t          |¦  «        ‘ŒS )z{}.{})ÚformatÚ__name__)Ú.0Útmns     r   ú
<listcomp>zload_tests.<locals>.<listcomp>B   s&   € Ð@Ð@Ð@¨3ˆ�Š� #Ñ	&Ô	&Ð@Ð@Ð@r   )ÚaddTestÚloadTestsFromModuleNames)ÚloaderÚbasic_testsÚpatternÚtestmod_namess       r   Ú
load_testsr(   =   sT   € àð
€Mð ×Ò˜×7Ò7Ø@Ð@°-Ð@Ñ@Ô@ñBô Bñ Cô Cð CàÐr   Fc                  óD   — da t          j        dddt          d¦  «         dS )zRegister the plugin.Tzbreezy.msgeditorr   Úcommit_message_templatezcommitfromnews templateN)Ú_registeredr   Úinstall_lazy_named_hookr   © r   r   Úregisterr.   I   s6   € ð
 €KÝ	Ô!Ø˜GØ!ÝÐ2ñ4ô 4ð 4ð 4ð 4r   N)Ú__doc__Ú r   r   Úconfigr   r   r.   r   r(   r+   r-   r   r   ú<module>r2      sÙ   ðð"ð ð& Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ðð ð ð ð ð ð ð ð
 €Ô Ø€JÐ+°Rð ?ð ñ ô ñô ð ðð ð ðð ð ð €ð	4ð 	4ð 	4ð 	€�
„
€
€
€
r   