§
    cÌc  ã                   ó¶   — d Z ddlmZmZ ddlmZ d„ Z edd¦  «          edd¦  «          ed	d
¦  «          edd¦  «         d„ Z eddded¦  «         d„ ZdS )aä  Merge hook for ``.po`` files.

To enable this plugin, add a section to your branch.conf or location.conf
like::

    [/home/user/code/bzr]
    po_merge.pot_dirs = po,doc/po4a/po

The ``po_merge.pot_dirs`` config option takes a list of directories that can
contain ``.po`` files, separated by commas (if several directories are
needed). Each directory should contain a single ``.pot`` file.

The ``po_merge.command`` is the command whose output is used as the result of
the merge. It defaults to::

   msgmerge -N "{other}" "{pot_file}" -C "{this}" -o "{result}"

where:

* ``this`` is the ``.po`` file content before the merge in the current branch,
* ``other`` is the ``.po`` file content in the branch merged from,
* ``pot_file`` is the path to the ``.pot`` file corresponding to the ``.po``
  file being merged.

If conflicts occur in a ``.pot`` file during a given merge, the ``.po`` files
will use the ``.pot`` file present in tree before the merge. If this doesn't
suit your needs, you should can disable the plugin during the merge with::

  bzr merge <usual merge args> -Opo_merge.po_dirs=

This will allow you to resolve the conflicts in the ``.pot`` file and then
merge the ``.po`` files again with::

  bzr remerge po/*.po doc/po4a/po/*.po

é   )ÚconfigÚversion_info)Úinstall_lazy_named_hookc                 óH   — t           j                             | d|¦  «         d S )Nz breezy.plugins.po_merge.po_merge)r   Úoption_registryÚregister_lazy)ÚkeyÚmembers     úB/usr/lib/python3/dist-packages/breezy/plugins/po_merge/__init__.pyÚregister_lazy_optionr   >   s/   € Ý
Ô×(Ò(ØÐ/°ñ9ô 9ð 9ð 9ð 9ó    zpo_merge.commandÚcommand_optionzpo_merge.po_dirsÚpo_dirs_optionzpo_merge.po_globÚpo_glob_optionzpo_merge.pot_globÚpot_glob_optionc                 ó$   — ddl m}  || ¦  «        S )z,Merger.merge_file_content hook for po files.é   )ÚPoMerger)Úpo_merger   )Úmergerr   s     r   Úpo_merge_hookr   I   s$   € à"Ð"Ð"Ð"Ð"Ð"Øˆ8�FÑÔÐr   zbreezy.mergezMerger.hooksÚmerge_file_contentz.po file mergec                 ó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>X   s&   € Ð@Ð@Ð@¨3ˆ�Š� #Ñ	&Ô	&Ð@Ð@Ð@r   )ÚaddTestÚloadTestsFromModuleNames)ÚloaderÚbasic_testsÚpatternÚtestmod_namess       r   Ú
load_testsr'   S   sT   € àð
€Mð ×Ò˜×7Ò7Ø@Ð@°-Ð@Ñ@Ô@ñBô Bñ Cô Cð CàÐr   N)	Ú__doc__Ú r   r   Úhooksr   r   r   r'   © r   r   ú<module>r,      sú   ðð"#€ðJð ð ð ð ð ð ð ð
 -Ð ,Ð ,Ð ,Ð ,Ð ,ð9ð 9ð 9ð
 Ð Ð'Ð)9Ñ :Ô :Ð :Ø Ð Ð'Ð)9Ñ :Ô :Ð :Ø Ð Ð'Ð)9Ñ :Ô :Ð :Ø Ð Ð(Ð*;Ñ <Ô <Ð <ðð ð ð Ð ˜¨Ð8LØ%Ð'7ñ9ô 9ð 9ðð ð ð ð r   