§
    	^µc¶  ã                   ó  — d Z ddlmZ ddlmZmZmZmZmZ dZ	i Z
 ej        e
¦  «        Z ee	ddg¦  «          ee	dd¦  «          ee	d	d
¦  «         i Z ej        e¦  «        Zd„ Zd„ Z	 dd„Zd„ Zd„ Zdd„Zd„ Zd„ ZdS )a?  implements bookmark-based branching (EXPERIMENTAL)

 - Disables creation of new branches (config: enable_branches=False).
 - Requires an active bookmark on commit (config: require_bookmark=True).
 - Doesn't move the active bookmark on update, only on commit.
 - Requires '--rev' for moving an existing bookmark.
 - Protects special bookmarks (config: protect=@).

 flow related commands

    :hg book NAME: create a new bookmark
    :hg book NAME -r REV: move bookmark to revision (fast-forward)
    :hg up|co NAME: switch to bookmark
    :hg push -B .: push active bookmark
é    )Ú_)Ú	bookmarksÚcommandsÚerrorÚ
extensionsÚ	registrars   bookflowó   protectó   @ó   require-bookmarkTó   enable-branchesFc                 ó¦  — |j         j        }|r…||                      t          d¦  «        v r$t	          j        t          d¦  «        |z  ¦  «        ‚t          ||¦  «        s3t	          j        t          d¦  «        t          d¦  «        |z  ¬¦  «        ‚n=|                      t          dd¦  «        r!t	          j        t          d¦  «        ¦  «        ‚d	S )
Nr	   s'   cannot commit, bookmark %s is protectedsA   cannot commit, working directory out of sync with active bookmarks   run 'hg up %s'©Úhintr   Ts(   cannot commit without an active bookmarkr   )	Ú
_bookmarksÚactiveÚ
configlistÚMY_NAMEr   ÚAbortr   Úcwd_at_bookmarkÚ
configbool)ÚuiÚrepoÚkwargsr   s       ú0/usr/lib/python3/dist-packages/hgext/bookflow.pyÚcommit_hookr   '   sâ   € ØŒ_Ô#€FØð JØ�R—]’]¥7¨JÑ7Ô7Ð7Ð7Ý”+ÝÐ<Ñ=Ô=ÀÑFñô ð õ ˜t VÑ,Ô,ð 	Ý”+ÝØXñô õ Ð(Ñ)Ô)¨FÑ2ð	ñ ô ð ð	ð 
�Š•wÐ 3°TÑ	:Ô	:ð JÝŒk�!ÐGÑHÔHÑIÔIÐIØˆ1ó    c                 óF   — t          |¦  «        dk    r | |||¦  «        S dS )Né   F)Úlen)Úorigr   ÚparentsÚnodes       r   Úbookmarks_updater#   :   s.   € Ý
ˆ7�|„|�qÒÐàˆt�D˜' 4Ñ(Ô(Ð(ð ˆur   Nc                 óŽ   — |s4|j         }|D ]*}||v r$t          j        t          d¦  «        |z  ¦  «        ‚Œ+ | ||||||¦  «        S )Ns8   bookmark %s already exists, to move use the --rev option)r   r   r   r   )	r    r   ÚtrÚnamesÚrevÚforceÚinactiveÚmarksÚnames	            r   Úbookmarks_addbookmarksr,   C   sz   € ð ð 	Ø”ˆØð 	ð 	ˆDØ�uˆ}ˆ}Ý”kÝØSñô ð ññô ð ð ð ˆ4��b˜%  e¨XÑ6Ô6Ð6r   c                 ó<   — t          ||¦  «          | ||g|¢R i |¤ŽS ©N)r   )r    r   r   ÚargsÚoptss        r   Úcommands_commitr1   S   s4   € Ý��DÑÔÐØˆ4��DÐ(˜4Ð(Ð(Ð( 4Ð(Ð(Ð(r   c                 ó¦   —  | ||g|¢R i |¤Ž}|j         j        }|r5t          ||¦  «        s%|                     t	          d¦  «        |z  ¦  «         |S )NsB   working directory out of sync with active bookmark, run 'hg up %s')r   r   r   Úwarnr   )r    r   r   r/   r0   Úrcr   s          r   Úcommands_pullr5   X   s   € Ø	ˆˆb�$Ð	&˜Ð	&Ð	&Ð	& Ð	&Ð	&€BØŒ_Ô#€FØð 
•o d¨FÑ3Ô3ð 
Ø
�ŠÝðñô ð ñ	ñ	
ô 	
ð 	
ð €Ir   c                 ó¶   — |rM|                      d¦  «        s8|                      d¦  «        s#t          j        t          d¦  «        d¬¦  «        ‚ | |||fi |¤ŽS )NÚcleanr'   s@   creating named branches is disabled and you should use bookmarkss   see 'hg help bookflow'r   )Úgetr   r   r   )r    r   r   Úlabelr0   s        r   Úcommands_branchr:   f   sz   € Øð 
�T—X’X˜gÑ&Ô&ð 
¨t¯xªx¸©¬ð 
ÝŒkÝØSñô ð +ð	
ñ 
ô 
ð 	
ð ˆ4��D˜%Ð(Ð( 4Ð(Ð(Ð(r   c                 óR   — | j         |         }|                      d¦  «        }||k    S )Nó   .)r   Úlookup)r   ÚmarkÚmark_idÚcur_ids       r   r   r   q   s*   € ØŒo˜dÔ#€GØ�[Š[˜ÑÔ€FØ�WÒÐr   c                 óž  — t          j        t          dt          ¦  «         t          j        t          dt          ¦  «         t          j        t          j        dt          ¦  «         t          j        t          j        dt          ¦  «         |  
                    t          d¦  «        s't          j        t          j        dt          ¦  «         d S d S )Ns   updates   addbookmarkss   commits   pullr   s   branch)r   Úwrapfunctionr   r#   r,   Úwrapcommandr   Útabler1   r5   r   r   r:   )r   s    r   ÚuisetuprE   w   s�   € ÝÔ�I yÕ2BÑCÔCÐCÝÔ�I Õ8NÑOÔOÐOÝÔ�8œ>¨9µoÑFÔFÐFÝÔ�8œ>¨7µMÑBÔBÐBØ�=Š=�Ð"4Ñ5Ô5ð KÝÔ�xœ~¨y½/ÑJÔJÐJÐJÐJðKð Kr   )NFFr.   )Ú__doc__Úmercurial.i18nr   Ú	mercurialr   r   r   r   r   r   ÚconfigtableÚ
configitemÚcmdtableÚcommandr   r#   r,   r1   r5   r:   r   rE   © r   r   ú<module>rN      su  ððð ð  Ð Ð Ð Ð Ð ðð ð ð ð ð ð ð ð ð ð ð ð ð ð €à€Ø!ˆYÔ! +Ñ.Ô.€
à 
€
ˆ7�J  Ñ 'Ô 'Ð 'Ø 
€
ˆ7Ð'¨Ñ .Ô .Ð .Ø 
€
ˆ7Ð&¨Ñ .Ô .Ð .à€Ø
ˆ)Ô
˜HÑ
%Ô
%€ðð ð ð&ð ð ð <Að7ð 7ð 7ð 7ð )ð )ð )ð
ð ð ð)ð )ð )ð )ðð ð ðKð Kð Kð Kð Kr   