§
    cÌc®  ã                   óˆ   — d Z ddlmZ  e e¦   «         d¦  «         ddlmZ ddlmZ ddlmZm	Z	 d„ Z
 G d„ d	e¦  «        Zd
S )z>Commands for generating snapshot information about a brz tree.é   )Úlazy_importzs
from breezy import (
    branch,
    version_info_formats,
    workingtree,
    )
from breezy.i18n import gettext
)Úerrors)ÚCommand)ÚOptionÚRegistryOptionc                 óð   — 	 t                                | ¦  «        S # t          $ rO t                                ¦   «         }t	          j        t          d¦  «                             | |¦  «        ¦  «        ‚w xY w)zÂConvert a string passed by the user into a VersionInfoFormat.

    This looks in the version info format registry, and if the format
    cannot be found, generates a useful error exception.
    z:No known version info format {0}. Supported types are: {1})Úversion_info_formatsÚget_builderÚKeyErrorÚget_builder_formatsr   ÚCommandErrorÚgettextÚformat)r   Úformatss     ú9/usr/lib/python3/dist-packages/breezy/cmd_version_info.pyÚ_parse_version_info_formatr   %   s…   € ðJÝ#×/Ò/°Ñ7Ô7Ð7øÝð Jð Jð JÝ&×:Ò:Ñ<Ô<ˆÝÔ!Ýð 0ñ 1ô 1ß17²¸ÀÑ1HÔ1HñJô Jð 	JðJøøøs
   ‚ œAA5c            
       óÈ   — e Zd ZdZ edddd¬¦  «         edd¬	¦  «         ed
d¬	¦  «         edd¬	¦  «         edd¬	¦  «         eded¬¦  «        dgZdgZdZ		 	 	 	 dd„Z
dS )Úcmd_version_infoa&  Show version information about this tree.

    You can use this command to add information about version into
    source code of an application. The output can be in one of the
    supported formats or in a custom format based on a template.

    For example::

      brz version-info --custom \
        --template="#define VERSION_INFO \"Project 1.2.3 (r{revno})\"\n"

    will produce a C header file with formatted string containing the
    current revision number. Other supported variables in templates are:

      * {date} - date of the last revision
      * {build_date} - current date
      * {revno} - revision number
      * {revision_id} - revision id
      * {branch_nick} - branch nickname
      * {clean} - 0 if the source tree contains uncommitted changes,
                  otherwise 1
    r   zSelect the output format.T)zbreezy.version_info_formatsÚformat_registry)Úvalue_switchesÚlazy_registryÚallz!Include all possible information.)Úhelpzcheck-cleanzCheck if tree is clean.zinclude-historyzInclude the revision-history.zinclude-file-revisionsz(Include the last revision for each file.ÚtemplatezTemplate for the output.)Útyper   Úrevisionz	location?ÚreplaceNFc	           	      óB  — |r4t          |¦  «        dk    r!t          j        t          d¦  «        ¦  «        ‚|€d}|€t          j                             ¦   «         }	 t          j         	                    |¦  «        d         }	|	j
        }
n6# t          j        $ r$ t          j                             |¦  «        }
d }	Y nw xY w|rd}d}d}|r
d}d}d|v rd}|�|d                              |
¦  «        }nd } ||
|	|||||¬¦  «        }|                     | j        ¦  «         d S )Nr   z@brz version-info --revision takes exactly one revision specifierú.é    Tz{clean})Úworking_treeÚcheck_for_cleanÚinclude_revision_historyÚinclude_file_revisionsr   Úrevision_id)Úlenr   r   r   r	   r   ÚgetÚworkingtreeÚWorkingTreeÚopen_containingÚbranchÚNoWorkingTreeÚBranchÚopenÚas_revision_idÚgenerateÚoutf)ÚselfÚlocationr   r   Úcheck_cleanÚinclude_historyr$   r   r   ÚwtÚbr%   Úbuilders                r   Úrunzcmd_version_info.run_   s|  € ð
 ð 	4�˜H™œ¨Ò)Ð)ÝÔ%Ýð 2ñ 3ô 3ñ4ô 4ð 4ð ÐØˆHàˆ>Ý)Ô9×=Ò=Ñ?Ô?ˆFð	ÝÔ(×8Ò8¸ÑBÔBÀ1ÔEˆBð
 ”	ˆAˆAøõ	 Ô#ð 	ð 	ð 	Ý”×"Ò" 8Ñ,Ô,ˆAØˆBˆBˆBð	øøøð ð 	*Ø"ˆOØˆKØ%)Ð"Øð 	#Ø"ˆOØ%)Ð"Ø˜HÐ$Ð$Ø"�àÐØ" 1œ+×4Ò4°QÑ7Ô7ˆKˆKàˆKà�&˜¨Ø)4Ø2AØ0FØ"*¸ð	Eñ Eô Eˆð
 	×Ò˜œÑ#Ô#Ð#Ð#Ð#s   Á%B	 Â	0B<Â;B<)NNFFFFNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚstrÚtakes_optionsÚ
takes_argsÚencoding_typer9   © ó    r   r   r   4   s÷   € € € € € ð€Gð. $�^ HØ$?Ø37ð3FðGñ Gô Gð
 �V˜EÐ(KÐLÑLÔLØ�V˜MÐ0IÐJÑJÔJØ�VÐ-Ø!@ðBñ Bô Bà�VÐ4Ø!KðMñ Mô Mà�V˜J¨SØ!;ð=ñ =ô =àð€Mð �€Jà€Mà(,Ø:?Ø37Øð,$ð ,$ð ,$ð ,$ð ,$ð ,$rC   r   N)r=   r   ÚglobalsÚ r   Úcommandsr   Úoptionr   r   r   r   rB   rC   r   ú<module>rH      sÛ   ðð" EÐ Dà $Ð $Ð $Ð $Ð $Ð $à €ˆGˆG‰IŒIð ñ ô ð ðð ð ð ð ð ð Ð Ð Ð Ð Ð Ø *Ð *Ð *Ð *Ð *Ð *Ð *Ð *ðJð Jð JðW$ð W$ð W$ð W$ð W$�wñ W$ô W$ð W$ð W$ð W$rC   