§
    	^µcÑ  ã                   ó.   — d Z ddlmZ ddlmZmZ dd„ZdS )aB  reject_new_heads is a hook to check that branches touched by new changesets
have at most one open head. It can be used to enforce policies for
merge-before-push or rebase-before-push. It does not handle pre-existing
hydras.

Usage:
  [hooks]
  pretxnclose.reject_new_heads =     python:hgext.hooklib.reject_new_heads.hook
é    )Ú_)ÚerrorÚpycompatNc                 óP  — |dk    r6t          j        t          d¦  «        t          j        |¦  «        z  ¦  «        ‚|                     ¦   «         |         }t          ¦   «         }|j                             | 	                    ¦   «         ¬¦  «        D ]1}||         }| 
                    |                     ¦   «         ¦  «         Œ2|D ]_}t          |                     d|¦  «        ¦  «        dk    r6t          j        t          d¦  «        t          j        |¦  «        z  ¦  «        ‚Œ`d S )Ns   pretxncloses   Unsupported hook type %r)Ústartz&head() and not closed() and branch(%s)é   s/   Changes on branch %r resulted in multiple heads)r   ÚAbortr   r   ÚbytestrÚ
unfilteredÚsetÚ	changelogÚrevsÚrevÚaddÚbranchÚlen)	ÚuiÚrepoÚhooktypeÚnodeÚkwargsÚctxÚbranchesr   r   s	            ú@/usr/lib/python3/dist-packages/hgext/hooklib/reject_new_heads.pyÚhookr      s   € Ø�>Ò!Ð!ÝŒkÝÐ)Ñ*Ô*­XÔ-=¸hÑ-GÔ-GÑGñ
ô 
ð 	
ð �/Š/Ñ
Ô
˜DÔ
!€CÝ‰uŒu€HØŒ~×"Ò"¨¯ª©¬Ð"Ñ3Ô3ð #ð #ˆØ�3ŒiˆØ�Š�S—Z’Z‘\”\Ñ"Ô"Ð"Ð"Øð ð ˆÝˆt�yŠyÐAÀ6ÑJÔJÑKÔKÈaÒOÐOÝ”+ÝÐDÑEÔEÝÔ" 6Ñ*Ô*ñ+ñô ð ð Pðð ó    )N)Ú__doc__Úmercurial.i18nr   Ú	mercurialr   r   r   © r   r   ú<module>r!      si   ðð	ð 	ð Ð Ð Ð Ð Ð ðð ð ð ð ð ð ð ðð ð ð ð ð r   