§
    cÌcFÎ  ã                   óÜ  — d Z 	 ddlZddlZddlZddlZddlmZmZmZ erddl	m
Z
 ddlmZ ddlZddlmZ  e e¦   «         d¦  «         dd	lmZmZ dd
lmZmZmZmZmZ ddlmZ ddlmZ ddlmZ ddlmZm Z  ddl!m"Z"m#Z# ddl$m%Z%  G d„ dej&        ¦  «        Z' G d„ dej&        ¦  «        Z( G d„ dej&        ¦  «        Z) G d„ dej*        e¦  «        Z+ G d„ de¦  «        Z, e,¦   «         Z- G d„ de¦  «        Z.e- /                    ddd¦  «         e- /                    d dd!¦  «         e- /                    d"dd#¦  «         e- /                    d$d%d&¦  «         e- 0                    d"¦  «         dS )'Úgoogleé    N)ÚOptionalÚTupleÚTYPE_CHECKINGé   )ÚBranch)ÚRevisionTree)Úlazy_importz4
import stat

from breezy import (
    views,
    )
)ÚerrorsÚrevision)ÚControlComponentÚControlComponentFormatRegistryÚControlComponentFormatÚ
ControlDirÚControlDirFormat)Úosutils)Úgettext)Úmutabletree)Údeprecated_methodÚdeprecated_in)ÚmutterÚnote)Ú
NoSuchFilec                   ó   — e Zd ZdZdS )ÚSettingFileIdUnsupportedz.This format does not support setting file ids.N©Ú__name__Ú
__module__Ú__qualname__Ú_fmt© ó    ú4/usr/lib/python3/dist-packages/breezy/workingtree.pyr   r   J   ó   € € € € € à;€D€D€Dr"   r   c                   ó   — e Zd ZdZdS )ÚShelvingUnsupportedz.This format does not support shelving changes.Nr   r!   r"   r#   r&   r&   O   r$   r"   r&   c                   ó   — e Zd ZdZdS )ÚPointlessMergezNothing to merge.Nr   r!   r"   r#   r(   r(   T   s   € € € € € à€D€D€Dr"   r(   c                   ó˜  ‡ — e Zd ZU dZded<   d„ Z	 	 	 	 	 	 dsd„Zed	„ ¦   «         Zed
„ ¦   «         Z	d„ Z
d„ Z ed„ d¬¦  «        Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zedtdud„¦   «         Zedvdee         ded ef         fd„¦   «         Ze	 	 dwd„¦   «         Zdxd „Zedvdud!„¦   «         Zd"„ Z d#„ Z!dyd%„Z"d&„ Z#d'„ Z$dzd(„Z%de&j'        fd)„Z(dzd*„Z)dzd+„Z*d,„ Z+dvd-„Z,dvd.„Z-d/„ Z.d0„ Z/d{d1„Z0d{d2„Z1d3„ Z2d4„ Z3d5„ Z4d6„ Z5d7„ Z6d{d8„Z7d9„ Z8d:„ Z9d;„ Z:	 	 d|d<„Z;d=„ Z<d>„ Z=d?„ Z>d@„ Z?dA„ Z@dvdB„ZAdC„ ZBdD„ ZC	 	 d}dE„ZDdtdF„ZEdG„ ZFdH„ ZGdI„ ZH	 	 	 d~dJ„ZIdK„ ZJdL„ ZKdM„ ZLdN„ ZMdO„ ZNdP„ ZOdQ„ ZPdR„ ZQdS„ ZRdT„ ZSdU„ ZTdV„ ZUdW„ ZVdX„ ZWdY„ ZX	 	 d}dZ„ZY	 	 dd[„ZZd\„ Z[d]„ Z\dyd^„Z]d_„ Z^d`„ Z_da„ Z`	 	 d€db„Zadc„ Zbdd„ Zcde„ Zdd�dg„Zedh„ Zfdi„ Zgdj„ Zhdvdk„Ziˆ fdl„Zjdm„ Zkdn„ Zldo„ Zmd‚dp„Zndvdq„Zodr„ Zpˆ xZqS )ƒÚWorkingTreez’Working copy tree.

    Attributes:
      basedir: The root of the tree on disk. This is a unicode path object
        (as opposed to a URL).
    r   Úbranchc                 ó6   — t                                | ¦  «        S ©N)ÚviewsÚDisabledViews©Úselfs    r#   Ú_make_viewszWorkingTree._make_viewsd   s   € Ý×"Ò" 4Ñ(Ô(Ð(r"   ú.NFc                 óf  — || _         || _        |st          j        d¦  «        ‚t	          j        |¦  «        }t          d|¦  «         |�|| _        n| j                             ¦   «         | _        t	          j	        |¦  «        | _
        || _        d| _        |                      ¦   «         | _        dS )z’Construct a WorkingTree instance. This is not a public API.

        Args:
          branch: A branch to override probing for the branch.
        zUPlease use controldir.open_workingtree or WorkingTree.open() to obtain a WorkingTree.zopening working tree %rN)Ú_formatÚ
controldirr   ÚBzrErrorr   Úsafe_unicoder   Ú_branchÚopen_branchÚrealpathÚbasedirÚ
_transportÚ_rules_searcherr2   r.   )r1   r<   r+   Ú	_internalr=   r5   Ú_controldirs          r#   Ú__init__zWorkingTree.__init__g   sµ   € ð ˆŒØ%ˆŒØð 	QÝ”/ð #Pñ Qô Qð QåÔ& wÑ/Ô/ˆÝÐ(¨'Ñ2Ô2Ð2ØÐØ!ˆDŒLˆLàœ?×6Ò6Ñ8Ô8ˆDŒLÝÔ'¨Ñ0Ô0ˆŒØ$ˆŒØ#ˆÔØ×%Ò%Ñ'Ô'ˆŒ
ˆ
ˆ
r"   c                 ó   — | j         j        S r-   )r6   Úuser_transportr0   s    r#   rC   zWorkingTree.user_transport‚   s   € àŒÔ-Ð-r"   c                 ó   — | j         S r-   )r=   r0   s    r#   Úcontrol_transportzWorkingTree.control_transport†   s
   € àŒÐr"   c                 ó4   — t          j        | j        ¦  «        S r-   )r   Úsupports_symlinksr<   r0   s    r#   rG   zWorkingTree.supports_symlinksŠ   s   € ÝÔ(¨¬Ñ6Ô6Ð6r"   c                 ó6   — | j                              |¦  «        S )a•  True if filename is the name of a control file in this tree.

        Args:
          filename: A filename within the tree. This is a relative path
            from the root of this tree.

        This is true IF and ONLY IF the filename is part of the meta data
        that bzr controls in this tree. I.E. a random .bzr directory placed
        on disk will not be a control file for this tree.
        )r6   Úis_control_filename©r1   Úfilenames     r#   rI   zWorkingTree.is_control_filename�   s   € ð Œ×2Ò2°8Ñ<Ô<Ð<r"   c                 ó   — | j         S r-   )r9   r0   s    r#   ú<lambda>zWorkingTree.<lambda>›   s   € ˜$œ,€ r"   zÁThe branch this WorkingTree is connected to.

            This cannot be set - it is reflective of the actual disk structure
            the working tree has been constructed from.
            )ÚfgetÚdocc                 ó   — | j         j        S )z%See `Tree.has_versioned_directories`.)r5   Úsupports_versioned_directoriesr0   s    r#   Úhas_versioned_directoriesz%WorkingTree.has_versioned_directories¢   s   € àŒ|Ô:Ð:r"   c                 ó   — | j         j        S )zKIndicate whether this workingtree supports storing merge_modified.
        )r5   Úsupports_merge_modifiedr0   s    r#   rT   z#WorkingTree.supports_merge_modified¦   s   € ð Œ|Ô3Ð3r"   c                 ó4   — t          j        | j        ¦  «        S r-   )r   Úsupports_executabler<   r0   s    r#   Ú_supports_executablez WorkingTree._supports_executable«   s   € ÝÔ*¨4¬<Ñ8Ô8Ð8r"   c                 ó*   — t          | j        ¦  «        ‚)zäBreak a lock if one is present from another instance.

        Uses the ui factory to ask for confirmation if the lock may be from
        an active process.

        This will probe the repository for its lock as well.
        )ÚNotImplementedErrorÚ
break_lockr0   s    r#   rZ   zWorkingTree.break_lock®   s   € õ " $¤/Ñ2Ô2Ð2r"   c                 ó   — | j         j        S r-   )r5   Úrequires_rich_rootr0   s    r#   r\   zWorkingTree.requires_rich_root¸   s   € ØŒ|Ô.Ð.r"   c                 ó   — dS ©NFr!   r0   s    r#   Úsupports_tree_referencez#WorkingTree.supports_tree_reference»   s   € Øˆur"   c                 ó4   — | j                              ¦   «         S r-   )r5   Úsupports_content_filteringr0   s    r#   ra   z&WorkingTree.supports_content_filtering¾   s   € ØŒ|×6Ò6Ñ8Ô8Ð8r"   c                 ó4   — | j                              ¦   «         S r-   )r.   Úsupports_viewsr0   s    r#   rc   zWorkingTree.supports_viewsÁ   s   € ØŒz×(Ò(Ñ*Ô*Ð*r"   c                 ó   — | j         j        S r-   )r5   Úsupports_setting_file_idsr0   s    r#   re   z%WorkingTree.supports_setting_file_idsÄ   s   € ØŒ|Ô5Ð5r"   c                 ó4   — | j                              ¦   «         S )zgRetrieve the config stack for this tree.

        Returns:
          A ``breezy.config.Stack``
        )r+   Úget_config_stackr0   s    r#   rg   zWorkingTree.get_config_stackÇ   s   € ð Œ{×+Ò+Ñ-Ô-Ð-r"   Úreturnc                 ó„   — | €t          j        ¦   «         } t          j        | |¬¦  «        }|                     |¬¦  «        S )z0Open an existing working tree at path.

        N©Ú_unsupported)Úunsupported)r   Úgetcwdr   ÚopenÚopen_workingtree)Úpathrk   Úcontrols      r#   rn   zWorkingTree.openÐ   sA   € ð
 ˆ<Ý”>Ñ#Ô#ˆDÝ”/ $°\ÐBÑBÔBˆØ×'Ò'°LÐ'ÑAÔAÐAr"   rp   c                 ó†   — | €t          j        ¦   «         } t          j        | ¦  «        \  }}|                     ¦   «         |fS )aó  Open an existing working tree which has its root about path.

        This probes for a working tree at path and searches upwards from there.

        Basically we keep looking up until we find the control directory or
        run into /.  If there isn't one, raises NotBranchError.
        TODO: give this a new exception.
        If there is one, it is returned, along with the unused portion of path.

        Returns:
          The WorkingTree that contains 'path', and the rest of path
        )r   rm   r   Úopen_containingro   )rp   rq   Úrelpaths      r#   rs   zWorkingTree.open_containingÚ   sB   € ð ˆ<Ý”>Ñ#Ô#ˆDÝ%Ô5°dÑ;Ô;Ñˆ�Ø×'Ò'Ñ)Ô)¨7Ð2Ð2r"   Tc                 ó  ‡— ‰€dŠ| �t          | ¦  «        dk    r�t                               ‰¦  «        d         }|                     ¦   «         rX|rV|j                             ¦   «         }|r;|} t                               |¦  «        }t          t          d¦  «        |z  ¦  «         || fS ‰dk    r	| d         }n‰}ˆfd„| D ¦   «         } t                               |¦  «        d         }|| 	                    | ||¬¦  «        fS )a  Open the WorkingTree that contains a set of paths.

        Fail if the paths given are not all in a single tree.

        This is used for the many command-line interfaces that take a list of
        any number of files and that require they all be in the same tree.
        Nr3   r   z'Ignoring files outside view. View is %sc                 ó:   •— g | ]}t          j        ‰|¦  «        ‘ŒS r!   )r   Úpathjoin)Ú.0ÚfÚdefault_directorys     €r#   ú
<listcomp>z5WorkingTree.open_containing_paths.<locals>.<listcomp>
  s7   ø€ ð -ð -ð -Øõ !Ô)Ð*;¸QÑ?Ô?ð -ð -ð -r"   )Ú
apply_view)
Úlenr*   rs   rc   r.   Úlookup_viewÚview_display_strr   r   Úsafe_relpath_files)Ú	file_listrz   Úcanonicalizer|   ÚtreeÚ
view_filesÚview_strÚseeds    `      r#   Úopen_containing_pathsz!WorkingTree.open_containing_pathsí   sC  ø€ ð Ð$Ø #ÐàÐ¥ I¡¤°!Ò 3Ð 3Ý×.Ò.Ð/@ÑAÔAÀ!ÔDˆDð ×"Ò"Ñ$Ô$ð X¨ð XØ!œZ×3Ò3Ñ5Ô5�
Øð XØ *�IÝ$×5Ò5°jÑAÔA�HÝ�Ð!JÑKÔKÈhÑVÑWÔWÐWØ˜�?Ð"Ø Ò#Ð#Ø˜Q”<ˆDˆDà$ˆDð-ð -ð -ð -Ø"+ð-ñ -ô -ˆIå×*Ò*¨4Ñ0Ô0°Ô3ˆØ�T×,Ò,¨Y¸Ø8Bð -ñ Dô Dð Dð 	Dr"   c                 óh  ‡ — |€dS ‰                       ¦   «         r|r‰ j                             ¦   «         }ng }g }|rˆ fd„}n‰ j        }|D ]f} |t	          j        |¦  «        ¦  «        }|r0t	          j        ||¦  «        st                               ||¦  «        ‚|                     |¦  «         Œg|S )aÇ  Convert file_list into a list of relpaths in tree.

        Args:
          self: A tree to operate on.
          file_list: A list of user provided paths or None.
          apply_view: if True and a view is set, apply it or check that
            specified files are within it

        Returns:
          A list of relative paths.

        Raises:
          errors.PathNotChild: When a provided path is in a different self than
             self
        Nc                 ó8   •— t          j        ‰j        | ¦  «        S r-   )r   Úcanonical_relpathr<   )Úpr1   s    €r#   Úfixerz-WorkingTree.safe_relpath_files.<locals>.fixer*  s   ø€ ÝÔ0°´¸qÑAÔAÐAr"   )	rc   r.   r~   rt   r   Údereference_pathÚis_inside_anyÚFileOutsideViewÚappend)	r1   r�   r‚   r|   r„   Únew_listrŒ   rK   rt   s	   `        r#   r€   zWorkingTree.safe_relpath_files  sø   ø€ ð  ÐØ�4Ø×ÒÑ Ô ð 	 Zð 	Øœ×/Ò/Ñ1Ô1ˆJˆJàˆJØˆð ð 	!ðBð Bð Bð Bð Bð Bð ”LˆEØ!ð 	%ð 	%ˆHØ�e�GÔ4°XÑ>Ô>Ñ?Ô?ˆGØð B¥'Ô"7¸
ÀGÑ"LÔ"Lð BÝ×+Ò+¨H°jÑAÔAÐAØ�OŠO˜GÑ$Ô$Ð$Ð$Øˆr"   c                 ó:   — t                                | d¬¦  «        S )z~Open an unsupported working tree.

        Only intended for advanced situations like upgrading part of a controldir.
        Trj   )r*   rn   )rp   s    r#   Úopen_downlevelzWorkingTree.open_downlevel5  s   € õ ×Ò °4ÐÑ8Ô8Ð8r"   c                 ó`   — d                      | j        j        t          | dd ¦  «        ¦  «        S )Nz
<{} of {}>r<   )ÚformatÚ	__class__r   Úgetattrr0   s    r#   Ú__repr__zWorkingTree.__repr__=  s0   € Ø×"Ò" 4¤>Ô#:Ý& t¨Y¸Ñ=Ô=ñ?ô ?ð 	?r"   c                 ó6   — t          j        | j        |¦  «        S r-   )r   rw   r<   rJ   s     r#   ÚabspathzWorkingTree.abspathA  s   € ÝÔ ¤¨hÑ7Ô7Ð7r"   r	   c                 ó  — 	 |                       ¦   «         d         }n9# t          $ r, | j        j                             t
          j        ¦  «        cY S w xY w	 |                      |¦  «        S # t          j        $ r Y nw xY w	 | j        j                             |¦  «        S # t          j	        t          j        f$ rL | j        j         
                    |¦  «        r‚ | j        j                             t
          j        ¦  «        cY S w xY w)zçReturn RevisionTree for the current last revision.

        If the left most parent is a ghost then the returned tree will be an
        empty tree - one obtained by calling
        repository.revision_tree(NULL_REVISION).
        r   )Úget_parent_idsÚ
IndexErrorr+   Ú
repositoryÚrevision_treeÚ_mod_revisionÚNULL_REVISIONr   ÚNoSuchRevisionÚRevisionNotPresentÚhas_revision©r1   Úrevision_ids     r#   Ú
basis_treezWorkingTree.basis_treeD  s6  € ð	-Ø×-Ò-Ñ/Ô/°Ô2ˆKˆKøÝð 	-ð 	-ð 	-ð ”;Ô)×7Ò7ÝÔ+ñ-ô -ð -ð -ð -ð		-øøøð	Ø×%Ò% kÑ2Ô2Ð2øÝÔ$ð 	ð 	ð 	ØˆDð	øøøð

	-Ø”;Ô)×7Ò7¸ÑDÔDÐDøÝÔ)­6Ô+@ÐAð 	-ð 	-ð 	-ð Œ{Ô%×2Ò2°;Ñ?Ô?ð Øà”;Ô)×7Ò7ÝÔ+ñ-ô -ð -ð -ð -ð	-øøøs4   ‚ �3AÁAÁA, Á,A>Á=A>ÂB! Â!A$DÄDc                 ó6   — t          j        | j        |¦  «        S )zËReturn the local path portion from a given path.

        The path may be absolute or relative. If its a relative path it is
        interpreted relative to the python current working directory.
        )r   rt   r<   ©r1   rp   s     r#   rt   zWorkingTree.relpathf  s   € õ Œ˜tœ|¨TÑ2Ô2Ð2r"   c                 óP   — t          j        |                      |¦  «        ¦  «        S r-   )r   Úlexistsrš   rJ   s     r#   Úhas_filenamezWorkingTree.has_filenamen  s   € ÝŒ˜tŸ|š|¨HÑ5Ô5Ñ6Ô6Ð6r"   c                 ó<   — |                       ||¬¦  «        d         S )N©Úfilteredr   )Úget_file_with_stat)r1   rp   r¯   s      r#   Úget_filezWorkingTree.get_fileq  s    € Ø×&Ò& t°hÐ&Ñ?Ô?ÀÔBÐBr"   c                 ó(  — |                       |¦  «        }	 t          |d¦  «        }n7# t          $ r*}|j        t          j        k    rt          |¦  «        ‚‚ d}~ww xY w ||                     ¦   «         ¦  «        }|r’|                      ¦   «         r~|                      |¦  «        }|rgddl	m
}	 |}
	 |	                     ||¦  «        \  }}|
                     ¦   «          n# |
                     ¦   «          w xY w|	                     ||¬¦  «        }||fS )zSee Tree.get_file_with_stat.ÚrbNr   )Úfilters)Úst_size)rš   rn   ÚOSErrorÚerrnoÚENOENTr   Úfilenora   Ú_content_filter_stackÚ r´   Úfiltered_input_fileÚcloseÚFilteredStat)r1   rp   r¯   Ú_fstatrš   Úfile_objÚeÚ
stat_valuer´   Ú_mod_filtersÚorig_file_objÚsizes               r#   r°   zWorkingTree.get_file_with_statt  sN  € ð —,’,˜tÑ$Ô$ˆð	Ý˜G TÑ*Ô*ˆHˆHøÝð 	ð 	ð 	ØŒw�%œ,Ò&Ð&Ý  Ñ&Ô&Ð&Øøøøøð	øøøð �V˜HŸOšOÑ-Ô-Ñ.Ô.ˆ
Øð 	.˜×7Ò7Ñ9Ô9ð 	.Ø×0Ò0°Ñ6Ô6ˆGØð 	.Ø5Ð5Ð5Ð5Ð5Ð5Ø (�ð*Ø%1×%EÒ%EØ  'ñ&+ô &+‘N�H˜dð "×'Ò'Ñ)Ô)Ð)Ð)ø�M×'Ò'Ñ)Ô)Ð)Ð)øøøØ)×6Ò6Ø¨ð 7ñ .ô .�
à˜*Ð%Ð%s    —( ¨
A²%AÁAÂ2C  Ã C6c                 óŒ   — |                       ||¬¦  «        5 }|                     ¦   «         cd d d ¦  «         S # 1 swxY w Y   d S )Nr®   )r±   Úread)r1   rp   r¯   Úmy_files       r#   Úget_file_textzWorkingTree.get_file_text�  s„   € Ø�]Š]˜4¨(ˆ]Ñ3Ô3ð 	"°wØ—<’<‘>”>ð	"ð 	"ð 	"ð 	"ñ 	"ô 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"øøøð 	"ð 	"ð 	"ð 	"ð 	"ð 	"ó   ˜9¹=Á =c                 óŒ   — |                       ||¬¦  «        5 }|                     ¦   «         cddd¦  «         S # 1 swxY w Y   dS )zSee Tree.get_file_lines()r®   N)r±   Ú	readlines)r1   rp   r¯   Úfiles       r#   Úget_file_lineszWorkingTree.get_file_lines‘  s†   € à�]Š]˜4¨(ˆ]Ñ3Ô3ð 	$°tØ—>’>Ñ#Ô#ð	$ð 	$ð 	$ð 	$ñ 	$ô 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$øøøð 	$ð 	$ð 	$ð 	$ð 	$ð 	$rÊ   c                 ó4  — |                       ¦   «         }t          j        |k    rg }n|g}	 | j                             d¦  «        }t          j        |¦  «        D ],}|                     d¦  «        }|                     |¦  «         Œ-n# t          $ r Y nw xY w|S )zµSee Tree.get_parent_ids.

        This implementation reads the pending merges list and last_revision
        value and uses that to decide what the parents list should be.
        úpending-mergesó   
)
Ú_last_revisionr    r¡   r=   Ú	get_bytesr   Úsplit_linesÚrstripr�   r   )r1   Úlast_revÚparentsÚmerges_bytesÚlr¦   s         r#   rœ   zWorkingTree.get_parent_ids–  sº   € ð ×&Ò&Ñ(Ô(ˆÝÔ&¨(Ò2Ð2ØˆGˆGà�jˆGð	,Øœ?×4Ò4Ð5EÑFÔFˆLõ Ô(¨Ñ6Ô6ð ,ð ,�ØŸhšh u™oœo�Ø—’˜{Ñ+Ô+Ð+Ð+ð,øõ ð 	ð 	ð 	ØˆDð	øøøð ˆs   ¬B Â
BÂBc                 ó¶   — |                       ¦   «         5  |                     ¦   «         }|                      ||¦  «         |cddd¦  «         S # 1 swxY w Y   dS )aÔ  Duplicate this working tree into to_bzr, including all state.

        Specifically modified files are kept as modified, but
        ignored and unknown files are discarded.

        If you want to make a new line of development, see ControlDir.sprout()

        revision
            If not None, the cloned tree will have its last revision set to
            revision, and difference between the source trees last revision
            and this one merged in.
        N)Ú	lock_readÚcreate_workingtreeÚcopy_content_into)r1   Úto_controldirr¦   Úresults       r#   ÚclonezWorkingTree.clone«  s¢   € ð �^Š^ÑÔð 	ð 	à"×5Ò5Ñ7Ô7ˆFØ×"Ò" 6¨;Ñ7Ô7Ð7Øð		ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   •,AÁAÁAc                 óÞ  — ddl m} |                      ¦   «         5  |                     |                      d¦  «        ¦  «         |€ ||| ¦  «         n‚	 |                      |¦  «        }n4# t          j        $ r" | j        j	                             |¦  «        }Y nw xY w |||¦  «         |t          j        k    rg }n|g}|                     |¦  «         ddd¦  «         dS # 1 swxY w Y   dS )z?Copy the current content and user files of this tree into tree.r   )Útransform_treer»   N)Úmergerâ   rÛ   Úset_root_idÚpath2idrŸ   r   r¢   r+   rž   r    r¡   Úset_parent_ids)r1   rƒ   r¦   râ   Ú
other_treeÚnew_parentss         r#   rÝ   zWorkingTree.copy_content_into¾  s`  € à)Ð)Ð)Ð)Ð)Ð)Ø�^Š^ÑÔð 	1ð 	1Ø×Ò˜TŸ\š\¨"Ñ-Ô-Ñ.Ô.Ð.ØÐ"Ø�˜t TÑ*Ô*Ð*Ð*ð%Ø!%×!3Ò!3°KÑ!@Ô!@�J�JøÝÔ,ð %ð %ð %Ø!%¤Ô!7×!EÒ!EØ#ñ"%ô "%�J�J�Jð%øøøð �˜t ZÑ0Ô0Ð0Ø¥-Ô"=Ò=Ð=Ø"$�K�Kà#. -�KØ×#Ò# KÑ0Ô0Ð0ð%	1ð 	1ð 	1ñ 	1ô 	1ð 	1ð 	1ð 	1ð 	1ð 	1ð 	1ð 	1øøøð 	1ð 	1ð 	1ð 	1ð 	1ð 	1s5   ›8C"ÁA*Á)C"Á*.BÂC"ÂBÂ:C"Ã"C&Ã)C&c                 óÄ   — 	 t           j                             |                      |¦  «        ¦  «        S # t          $ r!}|j        t
          j        k    r‚ Y d}~dS d}~ww xY w)zSee Tree.get_file_sizeN)Úosrp   Úgetsizerš   r¶   r·   r¸   )r1   rp   rÁ   s      r#   Úget_file_sizezWorkingTree.get_file_sizeÕ  se   € ð	Ý”7—?’? 4§<¢<°Ñ#5Ô#5Ñ6Ô6Ð6øÝð 	ð 	ð 	ØŒw�%œ,Ò&Ð&Øà�t�t�t�t�tøøøøð		øøøs   ‚14 ´
A¾AÁAc                 ó’  — |                       ¦   «         5  t          |¦  «        D ]ˆ\  }}||         €{t          j        |                      |¦  «        ¦  «        }	 t          j        |¦  «        ||<   ŒM# t          $ r.}|j        t          j        k    rt          |¦  «        ‚Y d}~Œ€d}~ww xY wŒ‰	 ddd¦  «         dS # 1 swxY w Y   dS )zSee MutableTree._gather_kinds.N)
Úlock_tree_writeÚ	enumerater   Únormpathrš   Ú	file_kindr¶   r·   r¸   r   )r1   ÚfilesÚkindsÚposry   ÚfullpathrÁ   s          r#   Ú_gather_kindszWorkingTree._gather_kindsá  s)  € à×!Ò!Ñ#Ô#ð 	7ð 	7Ý# EÑ*Ô*ð 7ð 7‘��QØ˜”:Ð%Ý&Ô/°·²¸Q±´Ñ@Ô@�Hð7Ý%,Ô%6°xÑ%@Ô%@˜˜c™
˜
øÝ"ð 7ð 7ð 7Øœ7¥e¤lÒ2Ð2Ý",¨XÑ"6Ô"6Ð6ð 3Ð2Ð2Ð2Ð2øøøøð7øøøð	 &ð7ð	7ð 	7ð 	7ñ 	7ô 	7ð 	7ð 	7ð 	7ð 	7ð 	7ð 	7ð 	7øøøð 	7ð 	7ð 	7ð 	7ð 	7ð 	7s<   •AB<ÁA2Á1B<Á2
B*Á<$B%Â B<Â%B*Â*B<Â<C ÃC c                 óä   — |                       ¦   «         5  |                      ¦   «         |gz   }|                      |t          |¦  «        dk    p|¬¦  «         ddd¦  «         dS # 1 swxY w Y   dS )aÞ  Add revision_id as a parent.

        This is equivalent to retrieving the current list of parent ids
        and setting the list to its value plus revision_id.

        Args:
          revision_id: The revision id to add to the parent list. It may
            be a ghost revision as long as its not the first parent to be
            added, or the allow_leftmost_as_ghost parameter is set True.
          allow_leftmost_as_ghost: Allow the first parent to be a ghost.
        r   ©Úallow_leftmost_as_ghostN)Ú
lock_writerœ   ræ   r}   )r1   r¦   rù   r×   s       r#   Úadd_parent_tree_idzWorkingTree.add_parent_tree_idí  sÆ   € ð �_Š_ÑÔð 	<ð 	<Ø×)Ò)Ñ+Ô+¨{¨mÑ;ˆGØ×Ò ÅÀWÁÄÐPQÒAQð B;Ø#:ð  ñ <ô <ð <ð	<ð 	<ð 	<ñ 	<ô 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<øøøð 	<ð 	<ð 	<ð 	<ð 	<ð 	<s   •AA%Á%A)Á,A)c                 óô   — |                       ¦   «         5  |                      ¦   «         |d         gz   }t          |¦  «        dk    rd}|                      ||¬¦  «         ddd¦  «         dS # 1 swxY w Y   dS )ag  Add revision_id, tree tuple as a parent.

        This is equivalent to retrieving the current list of parent trees
        and setting the list to its value plus parent_tuple. See also
        add_parent_tree_id - if you only have a parent id available it will be
        simpler to use that api. If you have the parent already available, using
        this api is preferred.

        Args:
          parent_tuple: The (revision id, tree) to add to the parent list.
            If the revision_id is a ghost, pass None for the tree.
          allow_leftmost_as_ghost: Allow the first parent to be a ghost.
        r   r   Trø   N)rî   rœ   r}   ræ   )r1   Úparent_tuplerù   Ú
parent_idss       r#   Úadd_parent_treezWorkingTree.add_parent_treeþ  sé   € ð ×!Ò!Ñ#Ô#ð 	Qð 	QØ×,Ò,Ñ.Ô.°,¸q´/Ð1BÑBˆJÝ�:‰Œ Ò"Ð"ð +/Ð'Ø×Ò 
Ø8Oð  ñ Qô Qð Qð	Qð 	Qð 	Qñ 	Qô 	Qð 	Qð 	Qð 	Qð 	Qð 	Qð 	Qð 	Qøøøð 	Qð 	Qð 	Qð 	Qð 	Qð 	Qs   •AA-Á-A1Á4A1c                 ó   — |                       ¦   «         5  |                      ¦   «         }d}|D ]}||v rŒ|                     |¦  «         d}Œ|r|                      |d¬¦  «         d d d ¦  «         d S # 1 swxY w Y   d S )NFTrø   )rî   rœ   r�   ræ   )r1   Úrevision_idsr×   ÚupdatedÚrev_ids        r#   Úadd_pending_mergezWorkingTree.add_pending_merge  sü   € Ø×!Ò!Ñ#Ô#ð 	Kð 	Kð ×)Ò)Ñ+Ô+ˆGØˆGØ&ð ð �Ø˜WÐ$Ð$ØØ—’˜vÑ&Ô&Ð&Ø��Øð KØ×#Ò# GÀTÐ#ÑJÔJÐJð	Kð 	Kð 	Kñ 	Kô 	Kð 	Kð 	Kð 	Kð 	Kð 	Kð 	Kð 	Køøøð 	Kð 	Kð 	Kð 	Kð 	Kð 	Ks   •AA3Á3A7Á:A7c                 ó*   — t          | j        ¦  «        ‚)zSee Tree.path_content_summary.)rY   Úpath_content_summaryr©   s     r#   r  z WorkingTree.path_content_summary#  s   € å! $Ô";Ñ<Ô<Ð<r"   c                 ó®   — t          |¦  «        dk    r=|d         }|s5| j        j                             |¦  «        st	          j        |¦  «        ‚dS dS dS )z¡Common ghost checking functionality from set_parent_*.

        This checks that the left hand-parent exists if there are any
        revisions present.
        r   N)r}   r+   rž   r¤   r   ÚGhostRevisionUnusableHere)r1   r  rù   Úleftmost_ids       r#   Ú_check_parents_for_ghostsz%WorkingTree._check_parents_for_ghosts'  sv   € õ ˆ|ÑÔ˜qÒ Ð Ø& qœ/ˆKØ+ð DØ”KÔ*×7Ò7¸ÑDÔDðDåÔ6°{ÑCÔCÐCð	 !Ð ðDð Dð Dð Dr"   c                 ó¨   — |dd …         }| j                              dd                     |¦  «        | j                             ¦   «         ¬¦  «         d S )Nr   rÐ   rÑ   )Úmode)r=   Ú	put_bytesÚjoinr6   Ú_get_file_mode)r1   rþ   Úmergess      r#   Ú_set_merges_from_parent_idsz'WorkingTree._set_merges_from_parent_ids3  s_   € Ø˜A˜B˜B”ˆØŒ×!Ò!Ð"2°E·J²J¸vÑ4FÔ4FØ'+¤×'EÒ'EÑ'GÔ'Gð 	"ñ 	Iô 	Ið 	Ið 	Ið 	Ir"   c                 ó,  — t          |¦  «        dk    r|S | j        j                             ¦   «         }|                     |¦  «        }|dd…         }|dd…         D ]}||v r||vr|                     |¦  «         Œ ||k    rt          d||¦  «         |S )zŸCheck that all merged revisions are proper 'heads'.

        This will always return the first revision_id, and any merged revisions
        which are
        r   Nr   z6requested to set revision_ids = %s, but filtered to %s)r}   r+   rž   Ú	get_graphÚheadsr�   r   )r1   r  Úgraphr  Únew_revision_idsr¦   s         r#   Ú_filter_parent_ids_by_ancestryz*WorkingTree._filter_parent_ids_by_ancestry8  sÇ   € õ ˆ|ÑÔ Ò!Ð!ØÐØ”Ô&×0Ò0Ñ2Ô2ˆØ—’˜LÑ)Ô)ˆØ'¨¨¨Ô+ÐØ'¨¨¨Ô+ð 	5ð 	5ˆKØ˜eÐ#Ð#¨Ð;KÐ(KÐ(KØ ×'Ò'¨Ñ4Ô4Ð4øØ˜|Ò+Ð+Ýð )Ø*6Ð8HñJô Jð JàÐr"   c                 ó°  — |                       ¦   «         5  |                      ||¬¦  «         |D ]}t          j        |¦  «         Œ|                      |¦  «        }t          |¦  «        dk    r|                      |d         ¦  «         n|                      t          j        ¦  «         |                      |¦  «         ddd¦  «         dS # 1 swxY w Y   dS )a	  Set the parent ids to revision_ids.

        See also set_parent_trees. This api will try to retrieve the tree data
        for each element of revision_ids from the trees repository. If you have
        tree data already available, it is more efficient to use
        set_parent_trees rather than set_parent_ids. set_parent_ids is however
        an easier API to use.

        Args:
          revision_ids: The revision_ids to set as the parent ids of this
            working tree. Any of these may be ghosts.
        rø   r   N)	rî   r
  r    Úcheck_not_reserved_idr  r}   Úset_last_revisionr¡   r  )r1   r  rù   r¦   s       r#   ræ   zWorkingTree.set_parent_idsK  s0  € ð ×!Ò!Ñ#Ô#ð 	;ð 	;Ø×*Ò*¨<ØCZð +ñ \ô \ð \à+ð Að A�ÝÔ3°KÑ@Ô@Ð@Ð@à×>Ò>¸|ÑLÔLˆLå�<Ñ Ô  1Ò$Ð$Ø×&Ò& |°A¤Ñ7Ô7Ð7Ð7à×&Ò&¥}Ô'BÑCÔCÐCà×,Ò,¨\Ñ:Ô:Ð:ð	;ð 	;ð 	;ñ 	;ô 	;ð 	;ð 	;ð 	;ð 	;ð 	;ð 	;ð 	;øøøð 	;ð 	;ð 	;ð 	;ð 	;ð 	;s   •B)CÃCÃCc                 óÐ   — |                       ¦   «         5  |                      ¦   «         }|d d…         }||z   }|                      |¦  «         d d d ¦  «         d S # 1 swxY w Y   d S )Nr   )rî   rœ   ræ   )r1   Úrev_listr×   Úleftmostrè   s        r#   Úset_pending_mergeszWorkingTree.set_pending_mergesg  s´   € Ø×!Ò!Ñ#Ô#ð 	-ð 	-Ø×)Ò)Ñ+Ô+ˆGØ˜r ˜r”{ˆHØ" XÑ-ˆKØ×Ò Ñ,Ô,Ð,ð		-ð 	-ð 	-ñ 	-ô 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-øøøð 	-ð 	-ð 	-ð 	-ð 	-ð 	-s   •9AÁAÁ"Ac                 ó*   — t          | j        ¦  «        ‚)zSet the merge modified hashes.)rY   Úset_merge_modified)r1   Úmodified_hashess     r#   r   zWorkingTree.set_merge_modifiedn  s   € å! $Ô"9Ñ:Ô:Ð:r"   c                 ó   — dS )zÜGet a sha digest from the tree's stat cache.

        The default implementation assumes no stat cache is present.

        Args:
          path: The path.
          stat_result: The stat result being looked up.
        Nr!   )r1   rp   Ústat_results      r#   Ú_sha_from_statzWorkingTree._sha_from_statr  s	   € ð ˆtr"   c                 ó”  — ddl m}m} |                      ¦   «         5   || j        | ¬¦  «        }|s(|                      ¦   «         rt          j        | ¦  «        ‚|€|                     ¦   «         }||_	        t          j        |j	        ¦  «        rt          j        |¦  «        ‚| j                             ||j	        ¬¦  «         |j	        |_        | j        j                             |j	        ¦  «        |_        ||_        |€|                     ¦   «          n|                     ||¦  «         |j        |j	        k    rt-          ¦   «         ‚d|_        |€||_        n||_        |                     d¦  «         d|_        d|_        |                     ¦   «         }	|                     ¦   «          |	cddd¦  «         S # 1 swxY w Y   dS )az  Merge from a branch into this working tree.

        Args:
          branch: The branch to merge from.
          to_revision: If non-None, the merge will merge to to_revision,
            but not beyond it. to_revision does not need to be in the history
            of the branch when it is supplied. If None, to_revision defaults to
            branch.last_revision().
        r   )ÚMergerÚMerge3Merger)Ú	this_treeN)Ústop_revisionF)rã   r&  r'  rú   r+   Úhas_changesr   ÚUncommittedChangesÚlast_revisionÚother_rev_idr    Úis_nullÚ	NoCommitsÚfetchÚother_basisrž   rŸ   rç   Úother_branchÚ	find_baseÚset_base_revisionÚbase_rev_idr(   Úbackup_filesÚ
merge_typeÚset_interesting_filesÚ	show_baseÚ	reprocessÚdo_mergeÚset_pending)
r1   r+   Úto_revisionÚfrom_revisionr7  Úforcer&  r'  ÚmergerÚ	conflictss
             r#   Úmerge_from_branchzWorkingTree.merge_from_branch}  s#  € ð 	0Ð/Ð/Ð/Ð/Ð/Ð/Ð/Ø�_Š_ÑÔð 	ð 	Ø�V˜DœK°4Ð8Ñ8Ô8ˆFàð 6˜T×-Ò-Ñ/Ô/ð 6ÝÔ/°Ñ5Ô5Ð5ØÐ"Ø$×2Ò2Ñ4Ô4�Ø"-ˆFÔÝÔ$ VÔ%8Ñ9Ô9ð /ÝÔ& vÑ.Ô.Ð.ØŒK×Ò˜f°FÔ4GÐÑHÔHÐHØ!'Ô!4ˆFÔØ $¤Ô 6× DÒ DØÔ#ñ!%ô !%ˆFÔà"(ˆFÔØÐ$Ø× Ò Ñ"Ô"Ð"Ð"à×(Ò(¨¸Ñ?Ô?Ð?ØÔ! VÔ%8Ò8Ð8Ý$Ñ&Ô&Ð&Ø"'ˆFÔØÐ!Ø$0�Ô!Ð!à$.�Ô!Ø×(Ò(¨Ñ.Ô.Ð.Ø$ˆFÔØ$ˆFÔØŸšÑ)Ô)ˆIØ×ÒÑ Ô Ð Øð?	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   �FF=Æ=GÇGc                 ó*   — t          | j        ¦  «        ‚)av  Return a dictionary of files modified by a merge.

        The list is initialized by WorkingTree.set_merge_modified, which is
        typically called after we make some automatic updates to the tree
        because of a merge.

        This returns a map of file_id->sha1, containing only files which are
        still in the working tree and have that text hash.
        )rY   Úmerge_modifiedr0   s    r#   rD  zWorkingTree.merge_modifiedª  s   € õ " $Ô"5Ñ6Ô6Ð6r"   c                 óÞ   — |                       ¦   «         5  t          j        |                      |¦  «        ¦  «         |                      |gdg¦  «         ddd¦  «         dS # 1 swxY w Y   dS )zSee MutableTree.mkdir().Ú	directoryN)rú   rê   Úmkdirrš   Úaddr©   s     r#   rG  zWorkingTree.mkdir¶  sª   € à�_Š_ÑÔð 	,ð 	,ÝŒH�T—\’\ $Ñ'Ô'Ñ(Ô(Ð(Ø�HŠH�d�V˜k˜]Ñ+Ô+Ð+ð	,ð 	,ð 	,ñ 	,ô 	,ð 	,ð 	,ð 	,ð 	,ð 	,ð 	,ð 	,øøøð 	,ð 	,ð 	,ð 	,ð 	,ð 	,s   •A A"Á"A&Á)A&c                 óØ   — |                       |¦  «        }	 t          j        |¦  «        S # t          $ r4}t	          |dd ¦  «        t
          j        k    rt          |¦  «        ‚‚ d }~ww xY w)Nr·   )rš   r   Úreadlinkr¶   r—   r·   r¸   r   )r1   rp   rš   rÁ   s       r#   Úget_symlink_targetzWorkingTree.get_symlink_target¼  sr   € Ø—,’,˜tÑ$Ô$ˆð	ÝÔ# GÑ,Ô,Ð,øÝð 	ð 	ð 	Ý�q˜' 4Ñ(Ô(­E¬LÒ8Ð8Ý  Ñ&Ô&Ð&Øøøøøð	øøøs   —+ «
A)µ/A$Á$A)c                 ó*   — t          | j        ¦  «        ‚r-   )rY   Úsubsume)r1   rç   s     r#   rM  zWorkingTree.subsumeÅ  s   € Ý! $¤,Ñ/Ô/Ð/r"   c                 ó*   — t          | j        ¦  «        ‚r-   )rY   Ú_directory_is_tree_reference©r1   rt   s     r#   rO  z(WorkingTree._directory_is_tree_referenceÈ  s   € Ý! $Ô"CÑDÔDÐDr"   c                 ó*   — t          | j        ¦  «        ‚)zuExtract a subtree from this tree.

        A new branch will be created, relative to the path for this tree.
        )rY   Úextract)r1   rp   r•   s      r#   rR  zWorkingTree.extractË  s   € õ
 " $¤,Ñ/Ô/Ð/r"   c                 ó*   — t          | j        ¦  «        ‚)z&Write the in memory meta data to disk.)rY   Úflushr0   s    r#   rT  zWorkingTree.flushÒ  s   € å! $¤*Ñ-Ô-Ð-r"   c                 óP   — t          j        |                      |¦  «        ¦  «        S r-   )r   rñ   rš   rP  s     r#   ÚkindzWorkingTree.kindÖ  s   € ÝÔ  §¢¨gÑ!6Ô!6Ñ7Ô7Ð7r"   c                 ó*   — t          | j        ¦  «        ‚)a¾  List all files as (path, class, kind, id, entry).

        Lists, but does not descend into unversioned directories.
        This does not include files that have been deleted in this
        tree. Skips the control directory.

        Args:
          include_root: if True, return an entry for the root
          from_dir: start from this directory or None for the root
          recursive: whether to recurse into subdirectories or not
        )rY   Ú
list_files)r1   Úinclude_rootÚfrom_dirÚ	recursiveÚrecurse_nesteds        r#   rX  zWorkingTree.list_filesÙ  s   € õ " $¤/Ñ2Ô2Ð2r"   c                 ó*   — t          | j        ¦  «        ‚)aõ  Rename files.

        to_dir must be known to the working tree.

        If to_dir exists and is a directory, the files are moved into
        it, keeping their old names.

        Note that to_dir is only the last component of the new name;
        this doesn't change the directory.

        For each entry in from_paths the move mode will be determined
        independently.

        The first mode moves the file in the filesystem and updates the
        working tree metadata. The second mode only updates the working tree
        metadata without touching the file on the filesystem.

        move uses the second mode if 'after == True' and the target is not
        versioned but present in the working tree.

        move uses the second mode if 'after == False' and the source is
        versioned but no longer in the working tree, and the target is not
        versioned but present in the working tree.

        move uses the first mode if 'after == False' and the source is
        versioned and present in the working tree, and the target is not
        versioned and not present in the working tree.

        Everything else results in an error.

        This returns a list of (from_path, to_path) pairs for each
        entry that is moved.
        )rY   Úmove)r1   Ú
from_pathsÚto_dirÚafters       r#   r^  zWorkingTree.moveè  s   € õD " $¤)Ñ,Ô,Ð,r"   c                 ó°   — ddl }|                     |                      |¦  «        |                      |¦  «        ¦  «         |                      |¦  «         dS )a  Copy a file in the tree to a new location.

        This default implementation just copies the file, then
        adds the target.

        Args:
          from_rel: From location (relative to tree root)
          to_rel: Target location (relative to tree root)
        r   N)ÚshutilÚcopyfilerš   rH  )r1   Úfrom_relÚto_relrc  s       r#   Úcopy_onezWorkingTree.copy_one  sQ   € ð 	ˆˆˆØ�Š˜Ÿš XÑ.Ô.°·²¸VÑ0DÔ0DÑEÔEÐEØ�Š�ÑÔÐÐÐr"   c                 óº   ‡ — ‰                       ¦   «         5  t          ˆ fd„‰                      ¦   «         D ¦   «         ¦  «        cddd¦  «         S # 1 swxY w Y   dS )z�Return all unknown files.

        These are files in the working directory that are not versioned or
        control files or ignored.
        c                 ó>   •— g | ]}‰                      |¦  «        °|‘ŒS r!   )Ú
is_ignored)rx   Úsubpr1   s     €r#   r{   z(WorkingTree.unknowns.<locals>.<listcomp>$  s*   ø€ ÐMÐMÐM˜$°t·²ÀtÑ7LÔ7LÐM�ÐMÐMÐMr"   N)rÛ   ÚiterÚextrasr0   s   `r#   ÚunknownszWorkingTree.unknowns  s½   ø€ ð �^Š^ÑÔð 	Oð 	Oõ ØMÐMÐMÐM $§+¢+¡-¤-ÐMÑMÔMñOô Oð	Oð 	Oð 	Oð 	Oñ 	Oô 	Oð 	Oð 	Oð 	Oð 	Oð 	Oð 	Oøøøð 	Oð 	Oð 	Oð 	Oð 	Oð 	Os   –-AÁAÁAc                 ó*   — t          | j        ¦  «        ‚)a-  Remove the path in pahs from the current versioned set.

        When a path is unversioned, all of its children are automatically
        unversioned.

        Args:
          paths: The paths to stop versioning.

        Raises:
          NoSuchFile: if any path is not currently versioned.
        )rY   Ú	unversion)r1   Úpathss     r#   rp  zWorkingTree.unversion&  s   € õ " $¤.Ñ1Ô1Ð1r"   c	                 óè  ‡— ddl m}	 |                      ¦   «         5  |                     ¦   «         5  | j                             ¦   «         }
|                      ¦   «         }| j                             ||||||¬¦  «        }| j                             ¦   «         }||
k    �r–| j        j        Š‰j	        j
        r3|                      ¦   «         }|r|d         }‰                     |¦  «        }|                     ¦   «         5  | j                             ¦   «         } |	| j        ||| ||¬¦  «         |                     d¦  «        }|                     d¦  «        }|�||k    r|                      |¦  «         d d d ¦  «         n# 1 swxY w Y   g }| j                             ¦   «         t           j        k    r.|                     | j                             ¦   «         |f¦  «         |                      ¦   «         dd …         }|                     ˆfd„|D ¦   «         ¦  «         |                      |¦  «         |cd d d ¦  «         cd d d ¦  «         S # 1 swxY w Y   d d d ¦  «         d S # 1 swxY w Y   d S )Nr   )Úmerge_inner)Ú	overwriter)  Úpossible_transportsÚlocalÚtag_selectorr   )r(  Úchange_reporterr9  r»   c                 ó>   •— g | ]}|‰                      |¦  «        f‘ŒS r!   )rŸ   )rx   Úparentrž   s     €r#   r{   z$WorkingTree.pull.<locals>.<listcomp>`  s<   ø€ ð %&ð %&ð %&àð ˜Z×5Ò5°fÑ=Ô=Ð>ð%&ð %&ð %&r"   )rã   rs  rú   rÛ   r+   Úlast_revision_infor§   Úpullrž   r5   Úfast_deltasrœ   rŸ   rå   rä   r,  r    r¡   r�   ÚextendÚset_parent_trees)r1   Úsourcert  r)  rx  ru  rv  r9  rw  rs  Úold_revision_infor§   ÚcountÚnew_revision_inforþ   Úbasis_idÚnew_basis_treeÚbasis_root_idÚnew_root_idÚparent_treesr  rž   s                        @r#   r|  zWorkingTree.pull4  s•  ø€ ð 	'Ð&Ð&Ð&Ð&Ð&Ø�_Š_ÑÔð ,	ð ,	 × 0Ò 0Ñ 2Ô 2ð ,	ð ,	Ø $¤× >Ò >Ñ @Ô @ÐØŸšÑ*Ô*ˆJØ”K×$Ò$ V°yÐP]Ø9LØ+0¸|ð %ñ Mô MˆEð !%¤× >Ò >Ñ @Ô @ÐØ Ð$5Ò5Ñ5Ø!œ[Ô3�
ØÔ%Ô1ð HØ!%×!4Ò!4Ñ!6Ô!6�JØ!ð HØ#-¨a¤=˜Ø%/×%=Ò%=¸hÑ%GÔ%G˜
Ø×)Ò)Ñ+Ô+ð 6ð 6Ø%)¤[×%;Ò%;Ñ%=Ô%=�NØ�KØœØ&Ø"Ø"&Ø(7Ø"+ð-ñ -ô -ð -ð %/×$6Ò$6°rÑ$:Ô$:�MØ"0×"8Ò"8¸Ñ"<Ô"<�KØ"Ð.°=ÀKÒ3OÐ3OØ×(Ò(¨Ñ5Ô5Ð5ð6ð 6ð 6ñ 6ô 6ð 6ð 6ð 6ð 6ð 6ð 6øøøð 6ð 6ð 6ð 6ð   "�Ø”;×,Ò,Ñ.Ô.µ-Ô2MÒMÐMØ ×'Ò'Øœ×2Ò2Ñ4Ô4°nÐEñGô Gð Gð ×,Ò,Ñ.Ô.¨q¨r¨rÔ2�Ø×#Ò#ð %&ð %&ð %&ð %&à$ð%&ñ %&ô %&ñ 'ô 'ð 'ð ×%Ò% lÑ3Ô3Ð3ØðY,	ð ,	ð ,	ð ,	ñ ,	ô ,	ð ,	ð ,	ð ,	ð ,	ð ,	ñ ,	ô ,	ð ,	ð ,	ð ,	ð ,	ð ,	ð ,	øøøð ,	ð ,	ð ,	ð ,	ð ,	ð ,	ð ,	ñ ,	ô ,	ð ,	ð ,	ð ,	ð ,	ð ,	ð ,	ð ,	øøøð ,	ð ,	ð ,	ð ,	ð ,	ð ,	s[   œI'±CIÃ>A7FÅ5IÆFÆIÆFÆ	B-IÈ6I'ÉI	ÉI'ÉI	ÉI'É'I+É.I+c                 ó   — |                       ¦   «         5  t          |                      |¦  «        d¦  «        5 }|                     |¦  «         ddd¦  «         n# 1 swxY w Y   ddd¦  «         dS # 1 swxY w Y   dS )z*See MutableTree.put_file_bytes_non_atomic.ÚwbN)rú   rn   rš   Úwrite)r1   rp   ÚbytesÚstreams       r#   Úput_file_bytes_non_atomicz%WorkingTree.put_file_bytes_non_atomicf  sõ   € à�_Š_ÑÔð 	 ð 	 ¥ T§\¢\°$Ñ%7Ô%7¸Ñ >Ô >ð 	 À&Ø�LŠL˜ÑÔÐð	 ð 	 ð 	 ñ 	 ô 	 ð 	 ð 	 ð 	 ð 	 ð 	 ð 	 øøøð 	 ð 	 ð 	 ð 	 ð 	 ð 	 ð 	 ñ 	 ô 	 ð 	 ð 	 ð 	 ð 	 ð 	 ð 	 ð 	 øøøð 	 ð 	 ð 	 ð 	 ð 	 ð 	 s4   •$A3¹AÁA3ÁA	ÁA3Á"A	Á#A3Á3A7Á:A7c                 ó*   — t          | j        ¦  «        ‚)aÐ  Yield all unversioned files in this WorkingTree.

        If there are any unversioned directories and the file format
        supports versioning directories, then only the directory is returned,
        not all its children. But if there are unversioned files under a
        versioned subdirectory, they are returned.

        Currently returned depth-first, sorted by name within directories.
        This is the same order used by 'osutils.walkdirs'.
        )rY   rm  r0   s    r#   rm  zWorkingTree.extrask  s   € õ " $¤+Ñ.Ô.Ð.r"   c              #   ór   K  — |                       ¦   «         D ]}|                      |¦  «        }|�||fV — Œ dS )z"Yield list of PATH, IGNORE_PATTERNN)rm  rj  )r1   rk  Úpats      r#   Úignored_fileszWorkingTree.ignored_filesx  sK   è è € à—K’K‘M”Mð 	 ð 	 ˆDØ—/’/ $Ñ'Ô'ˆCØˆØ˜C�i���øð	 ð 	 r"   c                 ó*   — t          | j        ¦  «        ‚)z>Check whether the filename matches an ignore pattern.
        )rY   rj  rJ   s     r#   rj  zWorkingTree.is_ignored  s   € õ " $¤/Ñ2Ô2Ð2r"   c                 ó*   — t          | j        ¦  «        ‚)zSee Tree.stored_kind)rY   Ústored_kindr©   s     r#   r•  zWorkingTree.stored_kind„  ó   € å! $Ô"2Ñ3Ô3Ð3r"   c                 óÀ  — |                       |¦  «        }	 t          j        |¦  «        }|j        }t	          j        |¦  «        }|                      ¦   «         s|d uo|j        }nut          t           
                    |¦  «        ot          j        |z  ¦  «        }n># t          $ r1}t          |dd ¦  «        t          j        k    rd }d }d}n‚ Y d }~nd }~ww xY w|||fS )Nr·   F)rš   rê   ÚlstatÚst_moder   Úfile_kind_from_stat_moderW   Ú
executableÚboolÚstatÚS_ISREGÚS_IEXECr¶   r—   r·   r¸   )	r1   Úentryrp   rš   rÂ   r  rV  r›  rÁ   s	            r#   Ú_comparison_datazWorkingTree._comparison_dataˆ  sü   € Ø—,’,˜tÑ$Ô$ˆð	NÝœ 'Ñ*Ô*ˆJð Ô%ˆDÝÔ3°DÑ9Ô9ˆDØ×,Ò,Ñ.Ô.ð NØ"¨$Ð.ÐC°5Ô3C�
�
å!¥$§,¢,¨tÑ"4Ô"4Ð"L½¼ÈÑ9LÑMÔM�
�
øõ ð 	ð 	ð 	Ý�q˜' 4Ñ(Ô(­E¬LÒ8Ð8Ø!�
Ø�Ø"�
�
àð �
�
�
�
øøøøð		øøøð �Z Ð+Ð+s   —B Â
CÂ''CÃCc                 ó*   — |                       ¦   «         S )zÔReturn the last revision of the branch for this tree.

        This format tree does not support a separate marker for last-revision
        compared to the branch.

        See MutableTree.last_revision
        )rÒ   r0   s    r#   r,  zWorkingTree.last_revisionœ  s   € ð ×"Ò"Ñ$Ô$Ð$r"   c                 ó�   — |                       ¦   «         5  | j                             ¦   «         cddd¦  «         S # 1 swxY w Y   dS )zhelper for get_parent_ids.N)rÛ   r+   r,  r0   s    r#   rÒ   zWorkingTree._last_revision¦  s‡   € à�^Š^ÑÔð 	/ð 	/Ø”;×,Ò,Ñ.Ô.ð	/ð 	/ð 	/ð 	/ñ 	/ô 	/ð 	/ð 	/ð 	/ð 	/ð 	/ð 	/øøøð 	/ð 	/ð 	/ð 	/ð 	/ð 	/s   •;»?Á?c                 ó*   — t          | j        ¦  «        ‚)zCheck if this tree is locked.)rY   Ú	is_lockedr0   s    r#   r¥  zWorkingTree.is_locked«  s   € å! $¤.Ñ1Ô1Ð1r"   c                 ó*   — t          | j        ¦  «        ‚)z¢Lock the tree for reading.

        This also locks the branch, and can be unlocked via self.unlock().

        Returns: A breezy.lock.LogicalLockResult.
        )rY   rÛ   r0   s    r#   rÛ   zWorkingTree.lock_read¯  s   € õ " $¤.Ñ1Ô1Ð1r"   c                 ó*   — t          | j        ¦  «        ‚)zsSee MutableTree.lock_tree_write, and WorkingTree.unlock.

        return: A breezy.lock.LogicalLockResult.
        )rY   rî   r0   s    r#   rî   zWorkingTree.lock_tree_write¸  s   € õ
 " $Ô"6Ñ7Ô7Ð7r"   c                 ó*   — t          | j        ¦  «        ‚)zoSee MutableTree.lock_write, and WorkingTree.unlock.

        Returns: A breezy.lock.LogicalLockResult.
        )rY   rú   r0   s    r#   rú   zWorkingTree.lock_write¿  s   € õ
 " $¤/Ñ2Ô2Ð2r"   c                 ó*   — t          | j        ¦  «        ‚r-   )rY   Úget_physical_lock_statusr0   s    r#   rª  z$WorkingTree.get_physical_lock_statusÆ  s   € Ý! $Ô"?Ñ@Ô@Ð@r"   c                 ó*   — t          | j        ¦  «        ‚)z-Change the last revision in the working tree.)rY   r  ©r1   Únew_revisions     r#   r  zWorkingTree.set_last_revisionÉ  ó   € å! $Ô"8Ñ9Ô9Ð9r"   c                 ó(  — t          j        |¦  «        r| j                             d|¦  «         dS t          j        |¦  «         	 | j                             |¦  «         n0# t          j        $ r | j                             |g¦  «         Y nw xY wdS )z½Template method part of set_last_revision to perform the change.

        This is used to allow WorkingTree3 instances to not affect branch
        when their last revision is set.
        r   FT)	r    r.  r+   Úset_last_revision_infor  Úgenerate_revision_historyr   r¢   Ú_set_revision_historyr¬  s     r#   Ú_change_last_revisionz!WorkingTree._change_last_revisionÍ  s¦   € õ Ô  Ñ.Ô.ð 	ØŒK×.Ò.¨q°,Ñ?Ô?Ð?Ø�5ÝÔ+¨LÑ9Ô9Ð9ð	>ØŒK×1Ò1°,Ñ?Ô?Ð?Ð?øÝÔ$ð 	>ð 	>ð 	>àŒK×-Ò-¨|¨nÑ=Ô=Ð=Ð=Ð=ð	>øøøð ˆts   ÁA" Á"*BÂBc                 ó*   — t          | j        ¦  «        ‚)a-  Remove nominated files from the working tree metadata.

        :files: File paths relative to the basedir.
        :keep_files: If true, the files will also be kept.
        :force: Delete files and directories, even if they are changed and
            even if the directories are not empty.
        )rY   Úremove)r1   rò   ÚverboseÚto_fileÚ
keep_filesr?  s         r#   rµ  zWorkingTree.removeÞ  ó   € õ " $¤+Ñ.Ô.Ð.r"   c           	      ó  — ddl m} ddlm} t	          j        ¦   «         5 }|                     |                      ¦   «         ¦  «         |€>|                      ¦   «         }	|                     |	 	                    ¦   «         ¦  «         |	}nd }	 || |||||¦  «        }
|€Àt          |                      ¦   «         ¦  «        dk    r›g }|                      ¦   «         }|t          j        k    rT|	€;|                      ¦   «         }	|                     |	 	                    ¦   «         ¦  «         |                     ||	f¦  «         |                      |¦  «          || ¦  «         n || |dd¬¦  «         |
cd d d ¦  «         S # 1 swxY w Y   d S )Nr   )Úresolve)ÚrevertT)Úignore_missesr[  )rA  r»  Ú	transformr¼  Ú
contextlibÚ	ExitStackÚenter_contextrî   r§   rÛ   r}   rœ   r,  r    r¡   r�   r  )r1   Ú	filenamesÚold_treeÚbackupsÚpbÚreport_changesr»  r¼  Ú
exit_stackr§   rA  rˆ  r,  s                r#   r¼  zWorkingTree.reverté  sê  € à&Ð&Ð&Ð&Ð&Ð&Ø%Ð%Ð%Ð%Ð%Ð%ÝÔ!Ñ#Ô#ð 	 zØ×$Ò$ T×%9Ò%9Ñ%;Ô%;Ñ<Ô<Ð<ØÐØ!Ÿ_š_Ñ.Ô.�
Ø×(Ò(¨×)=Ò)=Ñ)?Ô)?Ñ@Ô@Ð@Ø%��à!�
Ø˜˜t X¨y¸'À2Ø-ñ/ô /ˆIàÐ ¥S¨×)<Ò)<Ñ)>Ô)>Ñ%?Ô%?À!Ò%CÐ%CØ!�Ø $× 2Ò 2Ñ 4Ô 4�Ø ¥MÔ$?Ò?Ð?Ø!Ð)Ø%)§_¢_Ñ%6Ô%6˜
Ø"×0Ò0°×1EÒ1EÑ1GÔ1GÑHÔHÐHØ ×'Ò'¨¸
Ð(CÑDÔDÐDØ×%Ò% lÑ3Ô3Ð3Ø�˜‘”��à�˜˜i°tÀtÐLÑLÔLÐLØð-	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s    EE9Å9E=Æ E=c                 ó*   — t          | j        ¦  «        ‚)z6Store uncommitted changes from the tree in the branch.)rY   Ústore_uncommittedr0   s    r#   rÉ  zWorkingTree.store_uncommitted  r®  r"   c                 ó*   — t          | j        ¦  «        ‚)z:Restore uncommitted changes from the branch into the tree.)rY   Úrestore_uncommittedr0   s    r#   rË  zWorkingTree.restore_uncommitted	  s   € å! $Ô":Ñ;Ô;Ð;r"   c                 ó*   — t          | j        ¦  «        ‚)z®See Tree.revision_tree.

        For trees that can be obtained from the working tree, this
        will do so. For other trees, it will fall back to the repository.
        )rY   rŸ   r¥   s     r#   rŸ   zWorkingTree.revision_tree  s   € õ " $Ô"4Ñ5Ô5Ð5r"   c                 óð   — |                       ¦   «         st          ¦   «         ‚|                      ¦   «         5  |€t          d¦  «        ‚|                      |¦  «         ddd¦  «         dS # 1 swxY w Y   dS )zSet the root id for this tree.Nz(WorkingTree.set_root_id with fileid=None)re   r   rî   Ú
ValueErrorÚ_set_root_id©r1   Úfile_ids     r#   rä   zWorkingTree.set_root_id  sÉ   € à×-Ò-Ñ/Ô/ð 	-Ý*Ñ,Ô,Ð,Ø×!Ò!Ñ#Ô#ð 	'ð 	'àˆÝ Ø>ñ@ô @ð @à×Ò˜gÑ&Ô&Ð&ð	'ð 	'ð 	'ñ 	'ô 	'ð 	'ð 	'ð 	'ð 	'ð 	'ð 	'ð 	'øøøð 	'ð 	'ð 	'ð 	'ð 	'ð 	's   ·'A+Á+A/Á2A/c                 ó*   — t          | j        ¦  «        ‚)a  Set the root id for this tree, in a format specific manner.

        Args:
          file_id: The file id to assign to the root. It must not be
            present in the current inventory or an error will occur. It must
            not be None, but rather a valid file id.
        )rY   rÏ  rÐ  s     r#   rÏ  zWorkingTree._set_root_id   s   € õ " $Ô"3Ñ4Ô4Ð4r"   c                 ó*   — t          | j        ¦  «        ‚)aŠ  See Branch.unlock.

        WorkingTree locking just uses the Branch locking facilities.
        This is current because all working trees have an embedded branch
        within them. IF in the future, we were to make branch data shareable
        between multiple working trees, i.e. via shared storage, then we
        would probably want to lock both the local tree, and the branch.
        )rY   Úunlockr0   s    r#   rÔ  zWorkingTree.unlock*  r¹  r"   c                 ó*   — t          | j        ¦  «        ‚)aÞ  Update a working tree along its branch.

        This will update the branch if its bound too, which means we have
        multiple trees involved:

        - The new basis tree of the master.
        - The old basis tree of the branch.
        - The old basis tree of the working tree.
        - The current working tree state.

        Pathologically, all three may be different, and non-ancestors of each
        other.  Conceptually we want to:

        - Preserve the wt.basis->wt.state changes
        - Transform the wt.basis to the new master basis.
        - Apply a merge of the old branch basis to get any 'local' changes from
          it into the tree.
        - Restore the wt.basis->wt.state changes.

        There isn't a single operation at the moment to do that, so we:

        - Merge current state -> basis tree of the master w.r.t. the old tree
          basis.
        - Do a 'normal' merge of the old branch basis if it is relevant.

        Args:
          revision: The target revision to update to. Must be in the
            revision history.
          old_tip: If branch.update() has already been run, the value it
            returned (old tip of the branch or None). _marker is used
            otherwise.
        )rY   Úupdate)r1   rx  ru  r   Úold_tipr9  s         r#   rÖ  zWorkingTree.update5  s   € õD " $¤+Ñ.Ô.Ð.r"   c                 ó6   — t          j        | j        | ¦  «        ‚r-   )r   ÚUnsupportedOperationÚset_conflicts©r1   Úargs     r#   rÚ  zWorkingTree.set_conflictsY  ó   € ÝÔ)¨$Ô*<¸dÑCÔCÐCr"   c                 ó6   — t          j        | j        | ¦  «        ‚r-   )r   rÙ  Úadd_conflictsrÛ  s     r#   rß  zWorkingTree.add_conflicts\  rÝ  r"   c                 ó*   — t          | j        ¦  «        ‚r-   )rY   rA  r0   s    r#   rA  zWorkingTree.conflicts_  s   € Ý! $¤.Ñ1Ô1Ð1r"   r»   c                 ó*   — t          | j        ¦  «        ‚)a	  Walk the directories of this tree.

        returns a generator which yields items in the form:
                (current_directory_path,
                 [(file1_path, file1_name, file1_kind, (lstat),
                   file1_kind), ... ])

        This API returns a generator, which is only valid during the current
        tree transaction - within a single lock_read or lock_write duration.

        If the tree is not locked, it may cause an error to be raised,
        depending on the tree implementation.
        )rY   Úwalkdirs)r1   Úprefixs     r#   râ  zWorkingTree.walkdirsb  s   € õ " $¤-Ñ0Ô0Ð0r"   c                 ó�  — |                       ¦   «         5  g }g }|                      ¦   «         D ]g}	 |                     | ¦  «         |                     | ¦  «         |                     |¦  «         ŒC# t
          $ r |                     |¦  «         Y Œdw xY w|                      |¦  «         ||fcddd¦  «         S # 1 swxY w Y   dS )a¢  Automatically resolve text conflicts according to contents.

        Only text conflicts are auto_resolvable. Files with no conflict markers
        are considered 'resolved', because bzr always puts conflict markers
        into files that have text conflicts.  The corresponding .THIS .BASE and
        .OTHER files are deleted, as per 'resolve'.

        Returns: a tuple of lists: (un_resolved, resolved).
        N)rî   rA  Úaction_autoÚcleanupr�   rY   rÚ  )r1   Úun_resolvedÚresolvedÚconflicts       r#   Úauto_resolvezWorkingTree.auto_resolver  s6  € ð ×!Ò!Ñ#Ô#ð 	)ð 	)ØˆKØˆHØ ŸNšNÑ,Ô,ð .ð .�ð.Ø×(Ò(¨Ñ.Ô.Ð.ð ×$Ò$ TÑ*Ô*Ð*Ø—O’O HÑ-Ô-Ð-Ð-øõ	 +ð 1ð 1ð 1Ø×&Ò& xÑ0Ô0Ð0Ð0Ð0ð1øøøð
 ×Ò˜{Ñ+Ô+Ð+Ø Ð(ð	)ð 	)ð 	)ð 	)ñ 	)ô 	)ð 	)ð 	)ð 	)ð 	)ð 	)ð 	)øøøð 	)ð 	)ð 	)ð 	)ð 	)ð 	)s4   •B;±A1Á+B;Á1BÂB;ÂBÂB;Â;B?ÃB?c                 ó   — dS )a(  Validate internal structures.

        This is meant mostly for the test suite. To give it a chance to detect
        corruption after actions have occurred. The default implementation is a
        just a no-op.

        Returns: None. An exception should be raised if there is an error.
        Nr!   r0   s    r#   Ú	_validatezWorkingTree._validateŠ  s	   € ð 	ˆr"   c                 ó*   — t          | j        ¦  «        ‚)z,Check that the working state is/isn't valid.)rY   Úcheck_stater0   s    r#   rî  zWorkingTree.check_state•  r–  r"   c                 ó*   — t          | j        ¦  «        ‚)zÈReset the state of the working tree.

        This does a hard-reset to a last-known-good state. This is a way to
        fix if something got corrupted (like the .bzr/checkout/dirstate file)
        )rY   Úreset_state)r1   r  s     r#   rð  zWorkingTree.reset_state™  s   € õ " $Ô"2Ñ3Ô3Ð3r"   c                 ól   •— | j         €&t          ¦   «                              |¦  «        | _         | j         S )zSee Tree._get_rules_searcher.)r>   ÚsuperÚ_get_rules_searcher)r1   Údefault_searcherr–   s     €r#   ró  zWorkingTree._get_rules_searcher¡  s0   ø€ àÔÐ'Ý#(¡7¤7×#>Ò#>Ð?OÑ#PÔ#PˆDÔ ØÔ#Ð#r"   c                 ó*   — t          | j        ¦  «        ‚)z-Return the ShelfManager for this WorkingTree.)rY   Úget_shelf_managerr0   s    r#   rö  zWorkingTree.get_shelf_manager§  r®  r"   c              #   óž   K  — |                       ¦   «         5  |D ]}|                     d¦  «        V — Œ	 ddd¦  «         dS # 1 swxY w Y   dS )aK  Like get_canonical_path() but works on multiple items.

        Args:
          paths: A sequence of paths relative to the root of the tree.

        Returns:
          A list of paths, with each item the corresponding input path
          adjusted to account for existing elements that match case
          insensitively.
        ú/N)rÛ   Ústrip)r1   rq  rp   s      r#   Úget_canonical_pathszWorkingTree.get_canonical_paths«  s©   è è € ð �^Š^ÑÔð 	&ð 	&Øð &ð &�Ø—j’j ‘o”oÐ%Ð%Ð%Ð%ð&ð	&ð 	&ð 	&ñ 	&ô 	&ð 	&ð 	&ð 	&ð 	&ð 	&ð 	&ð 	&øøøð 	&ð 	&ð 	&ð 	&ð 	&ð 	&s   —AÁAÁ	Ac                 ó¤   — |                       ¦   «         5  t          |                      |g¦  «        ¦  «        cddd¦  «         S # 1 swxY w Y   dS )au  Returns the first item in the tree that matches a path.

        This is meant to allow case-insensitive path lookups on e.g.
        FAT filesystems.

        If a path matches exactly, it is returned. If no path matches exactly
        but more than one path matches according to the underlying file system,
        it is implementation defined which is returned.

        If no path matches according to the file system, the input path is
        returned, but with as many path entries that do exist changed to their
        canonical form.

        If you need to resolve many names from the same tree, you should
        use get_canonical_paths() to avoid O(N) behaviour.

        Args:
          path: A paths relative to the root of the tree.

        Returns:
          The input path adjusted to account for existing elements
          that match case insensitively.
        N)rÛ   Únextrú  r©   s     r#   Úget_canonical_pathzWorkingTree.get_canonical_pathº  s“   € ð0 �^Š^ÑÔð 	:ð 	:Ý˜×0Ò0°$°Ñ8Ô8Ñ9Ô9ð	:ð 	:ð 	:ð 	:ñ 	:ô 	:ð 	:ð 	:ð 	:ð 	:ð 	:ð 	:øøøð 	:ð 	:ð 	:ð 	:ð 	:ð 	:s   •#AÁA	ÁA	c                 ó6   — t          j        | j        | ¦  «        ‚r-   )r   rÙ  Úreference_parent)r1   rp   r+   ru  s       r#   rÿ  zWorkingTree.reference_parentÕ  s   € ÝÔ)¨$Ô*?ÀÑFÔFÐFr"   c                 ó6   — t          j        | j        | ¦  «        ‚r-   )r   rÙ  Úget_reference_info)r1   rp   r+   s      r#   r  zWorkingTree.get_reference_infoØ  ó   € ÝÔ)¨$Ô*AÀ4ÑHÔHÐHr"   c                 ó6   — t          j        | j        | ¦  «        ‚r-   )r   rÙ  Úset_reference_info)r1   Ú	tree_pathÚbranch_locations      r#   r  zWorkingTree.set_reference_infoÛ  r  r"   )r3   NFNNNr^   )rh   r*   r-   )NTT)TT)rh   r	   )T)F©NNNF)FNTF)FNNNFFN)NNTNF)NNNNF)r»   )NN)rr   r   r   Ú__doc__Ú__annotations__r2   rA   ÚpropertyrC   rE   rG   rI   r+   rR   rT   rW   rZ   r\   r_   ra   rc   re   rg   Ústaticmethodrn   r   Ústrr   rs   r‡   r€   r“   r˜   rš   r§   rt   r¬   r±   r   Úfstatr°   rÉ   rÎ   rœ   rà   rÝ   rì   rö   rû   rÿ   r  r  r
  r  r  ræ   r  r   r$  rB  rD  rG  rK  rM  rO  rR  rT  rV  rX  r^  rg  rn  rp  r|  rŽ  rm  r’  rj  r•  r¡  r,  rÒ   r¥  rÛ   rî   rú   rª  r  r³  rµ  r¼  rÉ  rË  rŸ   rä   rÏ  rÔ  rÖ  rÚ  rß  rA  râ  rê  rì  rî  rð  ró  rö  rú  rý  rÿ  r  r  Ú__classcell__©r–   s   @r#   r*   r*   Y   så  ø€ € € € € € ðð ð ÐÐÑð)ð )ð )ð  #ØØ Ø ØØ!ð(ð (ð (ð (ð6 ð.ð .ñ „Xð.ð ðð ñ „Xðð7ð 7ð 7ð=ð =ð =ð ˆXØ&Ð&ððñ ô €Fð;ð ;ð ;ð4ð 4ð 4ð
9ð 9ð 9ð3ð 3ð 3ð/ð /ð /ðð ð ð9ð 9ð 9ð+ð +ð +ð6ð 6ð 6ð.ð .ð .ð ðBð Bð Bð Bñ „\ðBð ð3ð 3˜h sœmð 3°u¸]ÈCÐ=OÔ7Pð 3ð 3ð 3ñ „\ð3ð$ Ø;?Ø<@ð Dð  Dð  Dñ „\ð DðD#ð #ð #ð #ðJ ð9ð 9ð 9ð 9ñ „\ð9ð?ð ?ð ?ð8ð 8ð 8ð -ð  -ð  -ð  -ðD3ð 3ð 3ð7ð 7ð 7ðCð Cð Cð Cð 15Ø")¤-ð&ð &ð &ð &ð2"ð "ð "ð "ð$ð $ð $ð $ð
ð ð ð*ð ð ð ð&1ð 1ð 1ð 1ð.
ð 
ð 
ð
7ð 
7ð 
7ð<ð <ð <ð <ð"Qð Qð Qð Qð.Kð Kð Kð=ð =ð =ð
Dð 
Dð 
DðIð Ið Ið
 ð  ð  ð&;ð ;ð ;ð ;ð8-ð -ð -ð;ð ;ð ;ð	ð 	ð 	ð IMØ16ð+ð +ð +ð +ðZ
7ð 
7ð 
7ð,ð ,ð ,ðð ð ð0ð 0ð 0ðEð Eð Eð0ð 0ð 0ð 0ð.ð .ð .ð8ð 8ð 8ð GKØ"'ð3ð 3ð 3ð 3ð"-ð "-ð "-ð "-ðHð ð ð
Oð 
Oð 
Oð2ð 2ð 2ð ;?ØCHØ+/ð0ð 0ð 0ð 0ðd ð  ð  ð
/ð /ð /ð ð  ð  ð3ð 3ð 3ð
4ð 4ð 4ð,ð ,ð ,ð(%ð %ð %ð/ð /ð /ð
2ð 2ð 2ð2ð 2ð 2ð8ð 8ð 8ð3ð 3ð 3ðAð Að Að:ð :ð :ðð ð ð" EIØð	/ð 	/ð 	/ð 	/ð =AØ',ðð ð ð ð8:ð :ð :ð<ð <ð <ð6ð 6ð 6ð 6ð	'ð 	'ð 	'ð5ð 5ð 5ð	/ð 	/ð 	/ð @DØ6;ð"/ð "/ð "/ð "/ðHDð Dð DðDð Dð Dð2ð 2ð 2ð1ð 1ð 1ð 1ð )ð )ð )ð0	ð 	ð 	ð4ð 4ð 4ð4ð 4ð 4ð 4ð$ð $ð $ð $ð $ð:ð :ð :ð&ð &ð &ð:ð :ð :ð6Gð Gð Gð GðIð Ið Ið IðIð Ið Ið Ið Ið Ið Ir"   r*   c                   ó6   ‡ — e Zd ZdZdˆ fd„	Zd„ Zd„ Zd„ Zˆ xZS )ÚWorkingTreeFormatRegistryz"Registry for working tree formats.Nc                 óf   •— t          ¦   «                              |¦  «         d | _        d | _        d S r-   )rò  rA   Ú_default_formatÚ_default_format_key)r1   Úother_registryr–   s     €r#   rA   z"WorkingTreeFormatRegistry.__init__â  s1   ø€ Ý‰Œ×Ò˜Ñ(Ô(Ð(Ø#ˆÔØ#'ˆÔ Ð Ð r"   c                 ój   — | j         �&| j        €|                      | j         ¦  «        | _        | j        S )z"Return the current default format.)r  r  Úgetr0   s    r#   Úget_defaultz%WorkingTreeFormatRegistry.get_defaultç  s4   € àÔ$Ð0ØÔ$Ð,Ø#'§8¢8¨DÔ,DÑ#EÔ#EˆDÔ ØÔ#Ð#r"   c                 ó"   — || _         d| _        dS )zSet the default format.N)r  r  )r1   r•   s     r#   Úset_defaultz%WorkingTreeFormatRegistry.set_defaultî  s   € à%ˆÔØ#'ˆÔ Ð Ð r"   c                 ó"   — || _         d| _        dS )z,Set the default format by its format string.N)r  r  )r1   Úformat_strings     r#   Úset_default_keyz)WorkingTreeFormatRegistry.set_default_keyó  s   € à#0ˆÔ Ø#ˆÔÐÐr"   r-   )	r   r   r   r  rA   r  r  r  r  r  s   @r#   r  r  ß  sp   ø€ € € € € Ø,Ð,ð(ð (ð (ð (ð (ð (ð
$ð $ð $ð(ð (ð (ð
$ð $ð $ð $ð $ð $ð $r"   r  c                   ó    — e Zd ZU dZdZdZdZdZdZ	 e	e
d<   dZ	 dZ	 dZ	 dZdZdZee         e
d<   	 	 	 dd„Zd	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ ZdS )ÚWorkingTreeFormata–  An encapsulation of the initialization and open routines for a format.

    Formats provide three things:
     * An initialization routine,
     * a format string,
     * an open routine.

    Formats are placed in an dict by their format string for reference
    during workingtree opening. Its not required that these be instances, they
    can be classes themselves with class methods - it simply depends on
    whether state is needed for a given format or not.

    Once a format is deprecated, just deprecate the initialize and open
    methods on the format class. Do not deprecate the object, as the
    object will be created every time regardless.
    FÚFoRMaTrQ   TNÚignore_filenamec                 ó*   — t          | j        ¦  «        ‚)aŠ  Initialize a new working tree in controldir.

        Args:
          controldir: ControlDir to initialize the working tree in.
          revision_id: allows creating a working tree at a different
            revision than the branch is at.
          from_branch: Branch to checkout
          accelerator_tree: A tree which can be used for retrieving file
            contents more quickly than the revision tree, i.e. a workingtree.
            The revision tree will be used for cases where accelerator_tree's
            content is different.
          hardlink: If true, hard-link files from accelerator_tree,
            where possible.
        )rY   Ú
initialize)r1   r6   r¦   Úfrom_branchÚaccelerator_treeÚhardlinks         r#   r#  zWorkingTreeFormat.initialize+  s   € õ  " $¤/Ñ2Ô2Ð2r"   c                 ó   — | j         |j         u S r-   r  ©r1   Úothers     r#   Ú__eq__zWorkingTreeFormat.__eq__=  s   € ØŒ~ ¤Ð0Ð0r"   c                 ó   — | |k     S r-   r!   r(  s     r#   Ú__ne__zWorkingTreeFormat.__ne__@  s   € Ø˜E’MÐ"Ð"r"   c                 ó*   — t          | j        ¦  «        ‚)z-Return the short description for this format.)rY   Úget_format_descriptionr0   s    r#   r.  z(WorkingTreeFormat.get_format_descriptionC  s   € å! $Ô"=Ñ>Ô>Ð>r"   c                 ó   — dS )zõIs this format supported?

        Supported formats can be initialized and opened.
        Unsupported formats may not support initialization or committing or
        some other features depending on the reason for not being supported.
        Tr!   r0   s    r#   Úis_supportedzWorkingTreeFormat.is_supportedG  s	   € ð ˆtr"   c                 ó   — dS )z/True if this format supports content filtering.Fr!   r0   s    r#   ra   z,WorkingTreeFormat.supports_content_filteringP  ó   € àˆur"   c                 ó   — dS )z*True if this format supports stored views.Fr!   r0   s    r#   rc   z WorkingTreeFormat.supports_viewsT  r2  r"   c                 ó   — | j         S )zÂGet the control directory format for creating branches.

        This is to support testing of working tree formats that can not exist
        in the same control directory as a branch.
        )Ú_matchingcontroldirr0   s    r#   Úget_controldir_for_branchz+WorkingTreeFormat.get_controldir_for_branchX  s   € ð Ô'Ð'r"   r  )r   r   r   r  r\   Úupgrade_recommendedÚ%requires_normalized_unicode_filenamesÚcase_sensitive_filenameÚmissing_parent_conflictsrœ  r	  rT   re   Úsupports_store_uncommittedÚ$supports_leftmost_parent_id_as_ghostÚ%supports_righthand_parent_id_as_ghostr!  r   r  r#  r*  r,  r.  r0  ra   rc   r6  r!   r"   r#   r  r  ü  s  € € € € € € ðð ð" ÐàÐà,1Ð)à&Ðà$ÐØ;à$(Ð(Ð(Ñ(à"ÐØ@à $ÐØ4à!%ÐØ<à+/Ð(à,0Ð)à%)€O�X˜c”]Ð)Ð)Ñ)Ø5àCGØ38ð3ð 3ð 3ð 3ð$1ð 1ð 1ð#ð #ð #ð?ð ?ð ?ðð ð ðð ð ðð ð ð(ð (ð (ð (ð (r"   r  s(   Bazaar Working Tree Format 4 (bzr 0.15)
zbreezy.bzr.workingtree_4ÚWorkingTreeFormat4s(   Bazaar Working Tree Format 5 (bzr 1.11)
ÚWorkingTreeFormat5s(   Bazaar Working Tree Format 6 (bzr 1.14)
ÚWorkingTreeFormat6s   Bazaar-NG Working Tree format 3zbreezy.bzr.workingtree_3ÚWorkingTreeFormat3)1Ú__docformat__r¿  r·   rê   ÚsysÚtypingr   r   r   r+   r   Úrevisiontreer	   Úbreezyr
   Úglobalsr»   r   r   r    r6   r   r   r   r   r   r   Úi18nr   r   Úsymbol_versioningr   r   Útracer   r   Ú	transportr   r7   r   r&   r(   ÚMutableTreer*   r  Úformat_registryr  Úregister_lazyr  r!   r"   r#   ú<module>rO     s•  ðð" €ðð Ð Ð Ð Ø €€€Ø 	€	€	€	Ø 
€
€
€
Ø 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1àð +ØÐÐÐÐÐØ*Ð*Ð*Ð*Ð*Ð*à €€€à $Ð $Ð $Ð $Ð $Ð $Ø €ˆGˆG‰IŒIð ñ ô ð ðð ð ð ð ð ð ð ðð ð ð ð ð ð ð ð ð ð ð ð ð ðð ð ð ð ð ð Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø ?Ð ?Ð ?Ð ?Ð ?Ð ?Ð ?Ð ?Ø Ð Ð Ð Ð Ð Ð Ð Ø !Ð !Ð !Ð !Ð !Ð !ð<ð <ð <ð <ð <˜vœñ <ô <ð <ð
<ð <ð <ð <ð <˜&œ/ñ <ô <ð <ð
ð ð ð ð �V”_ñ ô ð ð
CIð CIð CIð CIð CI�+Ô)Ð+;ñ CIô CIð CIðL$$ð $ð $ð $ð $Ð >ñ $ô $ð $ð4 ,Ð+Ñ-Ô-€ðb(ð b(ð b(ð b(ð b(Ð.ñ b(ô b(ð b(ðJ × Ò ÐJØ8Ð:NñPô Pð Pà × Ò ÐJØ8Ð:NñPô Pð Pà × Ò ÐJØ8Ð:NñPô Pð Pà × Ò Ð@Ø8Ð:NñPô Pð Pà × Ò Ð LÑ MÔ MÐ MÐ MÐ Mr"   