§
    cÌcÊM  ã                   ó,  — d Z ddlmZmZ ddl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 d„ Z G d	„ d
e¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        ZdS )z Bazaar command-line subcommands.é   )ÚCommandÚdisplay_command)ÚCommandErrorÚConflictsInTreeÚNoWorkingTreeÚUncommittedChanges)ÚOption)Únote)Ú
NoSuchFile)Úgettextc                 óÀ   — ddl m } 	  ||j        j        ||¦  «         n*# t          $ r t	          t          d¦  «        ¦  «        ‚w xY w|                      ¦   «          d S )Né   )ÚrebasezuA conflict occurred replaying a commit. Resolve the conflict and run 'brz rebase-continue' or run 'brz rebase-abort'.)r   ÚbranchÚ
repositoryr   r   r   Úremove_plan)ÚstateÚwtÚreplace_mapÚreplayerr   s        úA/usr/lib/python3/dist-packages/breezy/plugins/rewrite/commands.pyÚfinish_rebaser   *   s™   € ð
ð 
ð 
ð 
ð 
ð 
ð(àˆˆrŒyÔ# [°(Ñ;Ô;Ð;Ð;øÝð (ð (ð (Ý�7ð&ñ'ô 'ñ (ô (ð 	(ð(øøøð 
×ÒÑÔÐÐÐs	   ˆ   'Ac                   óÀ   — e Zd ZdZdgZddd edd¬¦  «         ed	d
¬¦  «         edd¬¦  «         edde¬¦  «         eddde¬¦  «        gZe	 	 	 	 dd„¦   «         Z	dS )Ú
cmd_rebaseaý  Re-base a branch.

    Rebasing is the process of taking a branch and modifying the history so
    that it appears to start from a different point. This can be useful
    to clean up the history before submitting your changes. The tree at the
    end of the process will be the same as if you had merged the other branch,
    but the history will be different.

    The command takes the location of another branch on to which the branch in
    the specified directory (by default, the current working directory)
    will be rebased. If a branch is not specified then the parent branch
    is used, and this is usually the desired result.

    The first step identifies the revisions that are in the current branch that
    are not in the parent branch. The current branch is then set to be at the
    same revision as the target branch, and each revision is replayed on top
    of the branch. At the end of the process it will appear as though your
    current branch was branched off the current last revision of the target.

    Each revision that is replayed may cause conflicts in the tree. If this
    happens the command will stop and allow you to fix them up. Resolve the
    commits as you would for a merge, and then run 'brz resolve' to marked
    them as resolved. Once you have resolved all the conflicts you should
    run 'brz rebase-continue' to continue the rebase operation.

    If conflicts are encountered and you decide that you do not wish to continue
    you can run 'brz rebase-abort'.

    The '--onto' option allows you to specify a different revision in the
    target branch to start at when replaying the revisions. This means that
    you can change the point at which the current branch will appear to be
    branched from when the operation completes.
    zupstream_location?Úrevisionú
merge-typeÚverbosezdry-runz8Show what would be done, but don't actually do anything.)Úhelpzalways-rebase-mergesz:Don't skip revisions that merge already present revisions.zpending-mergesz(Rebase pending merges onto local branch.Úontoz"Different revision to replay onto.©r   ÚtypeÚ	directoryÚdúLBranch to replay onto, rather than the one containing the working directory.©Ú
short_namer   r!   NFú.c
           	      óP
  ‡!‡"— ddl m}
 ddlm} ddlm} ddlm}m}m}m	}m
Š!m} |�|rt          t          d¦  «        ¦  «        ‚|                     |	¦  «        d         Š"‰"                     ¦   «          	  |‰"¦  «        }|€Y|r|	}nT‰"j                              ¦   «         }|€t          t          d	¦  «        ¦  «        ‚t#          t          d
¦  «        |¦  «         |
                     |¦  «        d         }|j        }|                     ¦   «         }|                     ¦   «         rt          t          d¦  «        ¦  «        ‚d }d }|�¼t+          |¦  «        dk    r)|d         � |d                              ‰"j         ¦  «        }n€t+          |¦  «        dk    rQ|d         � |d                              ‰"j         ¦  «        }|d         � |d                              ‰"j         ¦  «        }nt          t          d¦  «        ¦  «        ‚|r„‰"                     ¦   «         }t+          |¦  «        dv rt          t          d¦  «        ¦  «        ‚t+          |¦  «        dk    rt          t          d¦  «        ¦  «        ‚|d         }|€
J d¦   «         ‚|sH‰"                     ¦   «                              ‰"¦  «                             ¦   «         rt7          ‰"¦  «        ‚‰"j         j                             ||¦  «         |€|                     ¦   «         }n*|                     |¦  «        }|                     |¦  «        }‰"j         j                             ||¬¦  «         |€‰"j                              ¦   «         }‰"j         j                             ¦   «         }|                     ||¦  «        \  }}|€™|s>| j          !                    t          d¦  «        ¦  «         	 ‰" "                    ¦   «          d S |sW| j          !                    t          d¦  «        ¦  «         |s‰" #                    ||¬¦  «         	 ‰" "                    ¦   «          d S  ||||||ˆ!ˆ"fd„| ¦  «        }|s|rftI           |‰"j         j        |¦  «        ¦  «        }t#          t          d¦  «        t+          |¦  «        z  ¦  «         |D ]}t#          d|z  ¦  «         Œ|s5| %                    |¦  «          |‰"||¬¦  «        } tM          |‰"|| ¦  «         ‰" "                    ¦   «          d S # ‰" "                    ¦   «          w xY w)Nr   ©ÚBranch)ÚRevisionSpec©ÚWorkingTreer   )Úgenerate_simple_planr   ÚRebaseState1ÚWorkingTreeRevisionRewriterÚregenerate_default_revidÚrebase_todoz6--revision and --pending-merges are mutually exclusiveé    zNo upstream branch specified.zRebasing on %szjA rebase operation was interrupted. Continue using 'brz rebase-continue' or abort using 'brz rebase-abort'é   ú*--revision takes only one or two arguments)r3   r   zNo pending merges present.z2Rebasing more than one pending merge not supportedzstop revid invalid©Úrevision_idzNo revisions to rebase.
z>Base branch is descendant of current branch. Pulling instead.
)Ústop_revisionc                 ó0   •—  ‰‰j         j        | ¦  «        S ©N)r   r   )ÚrevidÚpsr1   r   s     €€r   ú<lambda>z cmd_rebase.run.<locals>.<lambda>Ú   s   ø€ Ð":Ð":Ø”IÔ(¨%ñ#1ô #1€ ó    z%d revisions will be rebased:z%s©Ú
merge_type)'r   r*   Úrevisionspecr+   Úworkingtreer-   r   r.   r/   r0   r1   r2   r   r   Úopen_containingÚ
lock_writeÚ
get_parentr
   r   Úlast_revisionÚhas_planÚlenÚas_revision_idÚget_parent_idsÚ
basis_treeÚchanges_fromÚhas_changedr   ÚfetchÚfrom_stringÚ	get_graphÚfind_differenceÚoutfÚwriteÚunlockÚpullÚlistÚ
write_planr   )#ÚselfÚupstream_locationr   r   r@   r   Údry_runÚalways_rebase_mergesÚpending_mergesr"   r*   r+   r-   r.   r   r/   r0   r2   r   ÚupstreamÚupstream_repositoryÚupstream_revisionÚstart_revidÚ
stop_revidÚ
wt_parentsÚrev_specÚ
repo_graphÚour_newÚonto_uniquer   Útodor;   r   r1   r   s#                                    @@r   Úrunzcmd_rebase.runr   sõ  øø€ ð
 	%Ð$Ð$Ð$Ð$Ð$Ø0Ð0Ð0Ð0Ð0Ð0Ø.Ð.Ð.Ð.Ð.Ð.ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð Ð NÐÝ�wØHñ Jô  Jñ Kô Kð Kð ×(Ò(¨Ñ3Ô3°AÔ6ˆØ
�Š‰Œˆðd	Ø �L Ñ$Ô$ˆEØ Ð(Ø!ð GØ(1Ð%Ð%à(*¬	×(<Ò(<Ñ(>Ô(>Ð%Ø(Ð0Ý*­7Ð3RÑ+SÔ+SÑTÔTÐTÝ�Ð!1Ñ2Ô2Ð4EÑFÔFÐFØ×-Ò-Ð.?Ñ@Ô@ÀÔCˆHØ"*Ô"5ÐØ (× 6Ò 6Ñ 8Ô 8Ðà�~Š~ÑÔð &Ý"¥7ð$ñ$%ô $%ñ &ô &ð &ð
 ˆKØˆJØÐ#Ý�x‘=”= AÒ%Ð%Ø ”{Ð.Ø%-¨a¤[×%?Ò%?ÀÄ	Ñ%JÔ%J˜
øÝ˜‘]”] aÒ'Ð'Ø ”{Ð.Ø&.¨q¤k×&@Ò&@ÀÄÑ&KÔ&K˜Ø ”{Ð.Ø%-¨a¤[×%?Ò%?ÀÄ	Ñ%JÔ%J˜
øå&¥wØDñ(Fô (Fñ Gô Gð Gð ð DØ×.Ò.Ñ0Ô0�
Ý�z‘?”? fÐ,Ð,Ý&¥wÐ/KÑ'LÔ'LÑMÔMÐMÝ˜‘_”_ qÒ(Ð(Ý&¥wØLñ(Nô (Nñ Oô Oð Oà'¨œ]�
Ø!Ð-Ð-Ð/CÑ-Ô-Ð-ð #ð -Ø—M’M‘O”O×0Ò0°Ñ4Ô4×@Ò@ÑBÔBð-å(¨Ñ,Ô,Ð,ð ŒIÔ ×&Ò&Ð':Ð<MÑNÔNÐNØˆ|Ø×-Ò-Ñ/Ô/��à'×3Ò3°DÑ9Ô9�Ø×.Ò.¨xÑ8Ô8�àŒIÔ ×&Ò&Ð':ÈÐ&ÑMÔMÐMàÐ!ØœY×4Ò4Ñ6Ô6�
ØœÔ-×7Ò7Ñ9Ô9ˆJØ#-×#=Ò#=¸jÈ$Ñ#OÔ#OÑ ˆG�[àÐ"Ø"ð Ø”I—O’O¥GÐ,GÑ$HÔ$HÑIÔIÐIØð@ �IŠI‰KŒKˆKˆKˆKð? ð Ø”I—O’O¥Gð5ñ%6ô %6ñ 7ô 7ð 7ð #ð >ØŸš ¸˜Ñ=Ô=Ð=Øð2 �IŠI‰KŒKˆKˆKˆKð) /Ð.Ø˜ j°$¸
ð1ð 1ð 1ð 1ð 1à(Ð(ñ	*ô *ˆKð ð '˜'ð 'Ý˜K˜K¨¬	Ô(<¸kÑJÔJÑKÔK�Ý•WÐ<Ñ=Ô=ÅÀDÁ	Ä	ÑIÑJÔJÐJØ!ð 'ð '�EÝ˜ ™Ñ&Ô&Ð&Ð&àð @à× Ò  Ñ-Ô-Ð-à6Ð6°r¸5ÈZÐXÑXÔX�å˜e R¨°hÑ?Ô?Ð?à�IŠI‰KŒKˆKˆKˆKøˆB�IŠI‰KŒKˆKˆKøøøs   Á5MT Ï)AT ÑB7T ÔT%)	NNNNFFFFr'   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
takes_argsr	   ÚstrÚtakes_optionsr   rh   © r>   r   r   r   :   s  € € € € € ð ð  ðB 'Ð'€Jà�L )ØˆØØKð	Mñ 	Mô 	Mð 	ˆØ"ØMð	Oñ 	Oô 	Oð 	ˆØØ;ð	=ñ 	=ô 	=ð 	ˆØÐ=Øð	ñ 	ô 	ð 	ˆØØØ_Øð		ñ 	ô 	ð
€Mð* Ø>BØ49Ø7<Øðyð yð yñ „_ðyð yð yr>   r   c                   óJ   — e Zd ZdZ eddde¬¦  «        gZed	d„¦   «         ZdS )
Úcmd_rebase_abortzAbort an interrupted rebase.r"   r#   r$   r%   r'   c                 ó²  — ddl m}m} ddlm} |                     |¦  «        d         }|                     ¦   «          	  ||¦  «        }	 |                     ¦   «         d         }n# t          $ r t          d¦  «        ‚w xY w |||d         g¦  «         | 
                    ¦   «          |                     ¦   «          d S # |                     ¦   «          w xY w)Nr   )r/   Úcomplete_revertr   r,   r3   zNo rebase to abort)r   r/   rt   rB   r-   rC   rD   Ú	read_planr   r   r   rT   )rX   r"   r/   rt   r-   r   r   Úlast_rev_infos           r   rh   zcmd_rebase_abort.runù   s  € ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	/Ð.Ð.Ð.Ð.Ð.Ø×(Ò(¨Ñ3Ô3°AÔ6ˆØ
�Š‰Œˆð
	Ø �L Ñ$Ô$ˆEð9Ø %§¢Ñ 1Ô 1°!Ô 4��øÝð 9ð 9ð 9Ý"Ð#7Ñ8Ô8Ð8ð9øøøàˆO˜B ¨qÔ!1Ð 2Ñ3Ô3Ð3Ø×ÒÑÔÐà�IŠI‰KŒKˆKˆKˆKøˆB�IŠI‰KŒKˆKˆKøøøs#   ¿C  ÁA& Á%C  Á&B Â *C  Ã CN©r'   ©	ri   rj   rk   rl   r	   rn   ro   r   rh   rp   r>   r   rr   rr   ï   sc   € € € € € Ø&Ð&ð 	ˆØØØ_Øð		ñ 	ô 	ð€Mð ðð ð ñ „_ðð ð r>   rr   c                   óL   — e Zd ZdZd eddde¬¦  «        gZed
d	„¦   «         ZdS )Úcmd_rebase_continuez9Continue an interrupted rebase after resolving conflicts.r   r"   r#   r$   r%   Nr'   c                 óî  — ddl m}m} ddlm} |                     |¦  «        d         }|                     ¦   «          	  ||¦  «        } ||||¬¦  «        }t          |                     ¦   «         ¦  «        dk    rt          t          d¦  «        ¦  «        ‚	 |                     ¦   «         d         }	n*# t          $ r t          t          d¦  «        ¦  «        ‚w xY w|                     ¦   «         }
|
�A|j        j                             |
¦  «        }|                     ||	|
         d         ¦  «         t%          |||	|¦  «         |                     ¦   «          d S # |                     ¦   «          w xY w)	Nr   )r/   r0   r   r,   r3   r?   zbThere are still conflicts present. Resolve the conflicts and then run 'brz resolve' and try again.zNo rebase to continue)r   r/   r0   rB   r-   rC   rD   rH   Ú	conflictsr   r   ru   r   Úread_active_revidr   r   Úget_revisionÚcommit_rebaser   rT   )rX   r@   r"   r/   r0   r-   r   r   r   r   ÚoldrevidÚoldrevs               r   rh   zcmd_rebase_continue.run  s¤  € ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	/Ð.Ð.Ð.Ð.Ð.Ø×(Ò(¨Ñ3Ô3°AÔ6ˆØ
�Š‰Œˆð	Ø �L Ñ$Ô$ˆEØ2Ð2°2°uÈÐTÑTÔTˆHå�2—<’<‘>”>Ñ"Ô" aÒ'Ð'Ý"¥7ð3ñ$4ô $4ñ 5ô 5ð 5ð
EØ#ŸošoÑ/Ô/°Ô2��øÝð Eð Eð EÝ"¥7Ð+BÑ#CÔ#CÑDÔDÐDðEøøøà×.Ò.Ñ0Ô0ˆHØÐ#ØœÔ-×:Ò:¸8ÑDÔD�Ø×&Ò& v¨{¸8Ô/DÀQÔ/GÑHÔHÐHÝ˜%  [°(Ñ;Ô;Ð;à�IŠI‰KŒKˆKˆKˆKøˆB�IŠI‰KŒKˆKˆKøøøs%   ¿AE ÂB5 Â4E Â5'CÃA,E ÅE4)Nr'   rx   rp   r>   r   rz   rz     sc   € € € € € ØCÐCà�f�fØØØ_Øð	ñ ô ð€Mð ðð ð ñ „_ðð ð r>   rz   c                   ó:   — e Zd ZdZ eddde¬¦  «        gZd	d„ZdS )
Úcmd_rebase_todoziPrint list of revisions that still need to be replayed as part of the
    current rebase operation.

    r"   r#   r$   r%   r'   c           	      ój  — ddl m}m} ddlm} |                     |¦  «        d         }|                     ¦   «         5   ||¦  «        }	 |                     ¦   «         d         }n*# t          $ r t          t          d¦  «        ¦  «        ‚w xY w|                     ¦   «         }|�t          t          d¦  «        |z  ¦  «          ||j        j        |¦  «        D ]>}	t          t          d¦  «                             |	||	         d         ¦  «        ¦  «         Œ?	 d d d ¦  «         d S # 1 swxY w Y   d S )	Nr   )r/   r2   r   r,   r3   zNo rebase in progresszCurrently replaying: %sz
{0} -> {1})r   r/   r2   rB   r-   rC   Ú	lock_readru   r   r   r   r}   r
   r   r   Úformat)
rX   r"   r/   r2   r-   r   r   r   Úcurrentrevidr;   s
             r   rh   zcmd_rebase_todo.runE  sË  € ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	/Ð.Ð.Ð.Ð.Ð.Ø×(Ò(¨Ñ3Ô3°AÔ6ˆØ�\Š\‰^Œ^ð 
	Qð 
	QØ �L Ñ$Ô$ˆEðEØ#ŸošoÑ/Ô/°Ô2��øÝð Eð Eð EÝ"¥7Ð+BÑ#CÔ#CÑDÔDÐDðEøøøà ×2Ò2Ñ4Ô4ˆLØÐ'Ý•WÐ6Ñ7Ô7¸,ÑFÑGÔGÐGØ$˜ R¤YÔ%9¸;ÑGÔGð Qð Q�Ý•W˜\Ñ*Ô*×1Ò1°%¸ÀUÔ9KÈAÔ9NÑOÔOÑPÔPÐPÐPðQð
	Qð 
	Qð 
	Qñ 
	Qô 
	Qð 
	Qð 
	Qð 
	Qð 
	Qð 
	Qð 
	Qð 
	Qøøøð 
	Qð 
	Qð 
	Qð 
	Qð 
	Qð 
	Qs*   ¾D(ÁA&Á%D(Á&'BÂBD(Ä(D,Ä/D,Nrw   )ri   rj   rk   rl   r	   rn   ro   rh   rp   r>   r   rƒ   rƒ   8  sa   € € € € € ðð ð 	ˆØØØ_Øð		ñ 	ô 	ð€MðQð Qð Qð Qð Qð Qr>   rƒ   c                   óH   — e Zd ZdZdd eddde¬¦  «        gZdgZd	Zdd„Z	d
S )Ú
cmd_replayz<Replay commits from another branch on top of this one.

    r   r   r"   r#   r$   r%   ÚlocationTNr'   c                 ó`  — ddl m} ddlm} ddlm} ddlm}m}	m	}
 | 
                    |¦  «        d         }|�út          |¦  «        dk    r%|d         �|d                              |¦  «        g}nÞt          |¦  «        dk    r“|d                              |¦  «        \  }}|d                              |¦  «        \  }}|€|                     ¦   «         }g }t          ||dz   ¦  «        D ]*}|                     |                     |¦  «        ¦  «         Œ+n8t%          t'          d	¦  «        ¦  «        ‚t%          t'          d
¦  «        ¦  «        ‚|                     |¦  «        }|                     ¦   «          	  ||¦  «        } |
|||¬¦  «        }|j                             ¦   «         }	 |D ]¡}|                     t'          d¦  «        |                     |¦  «        t          |¦  «        ¦  «         |j         j                             |j        |¦  «          |	|j         j        |¦  «        } ||||                     ¦   «         g¦  «         Œ¢	 |                     ¦   «          n# |                     ¦   «          w xY w	 |                     ¦   «          d S # |                     ¦   «          w xY w)Nr   r)   r,   )Úuir   )r/   r1   r0   r3   r4   r5   z--revision is mandatoryr?   zreplaying commits)r   r*   rB   r-   Ú rŒ   r   r/   r1   r0   rC   rH   rI   Ú
in_historyÚrevnoÚrangeÚappendÚ
get_rev_idr   r   ÚopenrD   Ú
ui_factoryÚnested_progress_barÚupdateÚindexr   rN   rF   ÚfinishedrT   )rX   rŠ   r   r@   r"   r*   r-   rŒ   r/   r1   r0   Úfrom_branchrg   Ú
from_revnoÚ
from_revidÚto_revnoÚto_revidr�   r   r   r   Úpbr;   Únewrevids                           r   rh   zcmd_replay.runh  sú  € Ø$Ð$Ð$Ð$Ð$Ð$Ø.Ð.Ð.Ð.Ð.Ð.ØÐÐÐÐÐð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð ×,Ò,¨XÑ6Ô6°qÔ9ˆàÐÝ�8‰}Œ} Ò!Ð!Ø˜A”;Ð*Ø$ QœK×6Ò6°{ÑCÔCÐD�DøÝ�X‘” !Ò#Ð#Ø)1°!¬×)?Ò)?ÀÑ)LÔ)LÑ&�
˜JØ%-¨a¤[×%;Ò%;¸KÑ%HÔ%HÑ"�˜(ØÐ#Ø*×0Ò0Ñ2Ô2�HØ�Ý" :¨x¸!©|Ñ<Ô<ð ?ð ?�EØ—K’K × 6Ò 6°uÑ =Ô =Ñ>Ô>Ð>Ð>ð?õ #¥7Ø@ñ$Bô $Bñ Cô Cð Cõ �wÐ'@ÑAÔAÑBÔBÐBà×Ò˜iÑ(Ô(ˆØ
�Š‰Œˆð	Ø �L Ñ$Ô$ˆEØ2Ð2°2°uÈÐTÑTÔTˆHØ”×2Ò2Ñ4Ô4ˆBðØ!ð Dð D�EØ—I’I�gÐ&9Ñ:Ô:¸D¿JºJÀuÑ<MÔ<MÍsÐSWÉyÌyÑYÔYÐYØ”IÔ(×.Ò.¨{Ô/EÀuÑMÔMÐMØ7Ð7¸¼	Ô8LÈeÑTÔT�HØ�H˜U H¨r×/?Ò/?Ñ/AÔ/AÐ.BÑCÔCÐCÐCð	Dð —’‘”��ø�—’‘”��øøø�à�IŠI‰KŒKˆKˆKˆKøˆB�IŠI‰KŒKˆKˆKøøøs%   Å:2J Æ-B$I' ÉJ É'I=É=J ÊJ-)NNr'   )
ri   rj   rk   rl   r	   rn   ro   rm   Úhiddenrh   rp   r>   r   r‰   r‰   Y  sn   € € € € € ðð ð
 	�LØˆØØØ_Øð		ñ 	ô 	ð€Mð �€JØ€Fð-ð -ð -ð -ð -ð -r>   r‰   c                   ó$   — e Zd ZdZdgZdZdd„ZdS )Úcmd_pseudonymszÝShow a list of 'pseudonym' revisions.

    Pseudonym revisions are revisions that are roughly the same revision,
    usually because they were converted from the same revision in a
    foreign version control system.
    zrepository?TNc                 ó  — ddl m} |                     |¦  «        \  }}|                     ¦   «         }ddlm}  |||                     ¦   «         ¦  «        D ]2}| j                             d 	                    |¦  «        dz   ¦  «         Œ3d S )Nr   )Ú
ControlDirr   )Úfind_pseudonymsz, ú
)
Ú
controldirr¤   rC   Úfind_repositoryÚ
pseudonymsr¥   Úall_revision_idsrR   rS   Újoin)rX   r   r¤   ÚdirÚ_Úrr¥   r©   s           r   rh   zcmd_pseudonyms.run£  s§   € Ø,Ð,Ð,Ð,Ð,Ð,Ø×+Ò+¨JÑ7Ô7‰ˆˆQØ×ÒÑ!Ô!ˆØ/Ð/Ð/Ð/Ð/Ð/Ø)˜/¨!¨Q×-?Ò-?Ñ-AÔ-AÑBÔBð 	:ð 	:ˆJØŒI�OŠO˜DŸIšI jÑ1Ô1°DÑ8Ñ9Ô9Ð9Ð9ð	:ð 	:r>   r:   )ri   rj   rk   rl   rm   r    rh   rp   r>   r   r¢   r¢   ˜  s@   € € € € € ðð ð  �€JØ€Fð:ð :ð :ð :ð :ð :r>   r¢   c                   ó\   — e Zd ZdZdgZd edde¬¦  «         eddd	e¬
¦  «        gZdd„ZdS )Úcmd_rebase_foreigna3  Rebase revisions based on a branch created with a different import tool.

    This will change the identity of revisions whose parents
    were mapped from revisions in the other version control system.

    You are recommended to run "brz check" in the local repository
    after running this command.
    z	new_base?r   z
idmap-filez(Write map with old and new revision ids.r    r"   r#   r$   r%   NFr'   c                 óh  ‡‡‡‡‡— ddl m} ddlm} ddlm} ddlm}mŠm	}	 ddl
mŠm}
 ddlm} 	 |                     |¦  «        }|j        Šn'# t           $ r d }|                     |¦  «        ŠY nw xY w‰                     ¦   «         }‰€~|€t%          t'          d	¦  «        ¦  «        ‚|                     || j        j        ¦  «        }| j                             t'          d
¦  «        |z  ¦  «         |                     |¦  «        Šn|                     ‰¦  «        Š‰j                             ‰j        ‰                     ¦   «         ¬¦  «          |	 |‰j        ‰j                             ¦   «         ¦  «        ¦  «        Šˆˆˆˆfd„}ˆfd„}‰                     ¦   «          	 ‰j                             ¦   «         } |
‰||d|¬¦  «        }|�c|                     ¦   «         }|                     ¦   «          	  |||¦  «         |                      ¦   «          n# |                      ¦   «          w xY w‰                      ¦   «          n# ‰                      ¦   «          w xY w|i k    rtC          t'          d¦  «        ¦  «         |�ƒt          |d¦  «        }	 | "                    ¦   «         D ].\  }}|                     d #                    ||¦  «        ¦  «         Œ/	 | $                    ¦   «          n# | $                    ¦   «          w xY w|�)| %                    ‰                     ¦   «         ¦  «         d S d S )Nr   )Úurlutilsr)   r,   r   )r¥   Ú#generate_rebase_map_from_pseudonymsÚpseudonyms_as_dict)Úcreate_deterministic_revidÚupgrade_branch)Úupdate_workingtree_fileidsz$No pull location known or specified.zUsing saved location: %s
r6   c                 ó¢   •—  ‰‰‰j                              | ¦  «        ‰j                              ‰                     ¦   «         ¦  «        ¦  «        S r:   )r   Úget_ancestryrF   )r7   Ú	branch_tor³   Únew_baser©   s    €€€€r   Úgenerate_rebase_mapz3cmd_rebase_foreign.run.<locals>.generate_rebase_mapî  sQ   ø€ Ø6Ð6Ø˜IÔ0×=Ò=¸kÑJÔJØÔ$×1Ò1°(×2HÒ2HÑ2JÔ2JÑKÔKñMô Mð Mr>   c                 ó   •—  ‰| |¦  «        S r:   rp   )Ú	old_revidÚnew_parentsrµ   s     €r   Údetermine_new_revidz3cmd_rebase_foreign.run.<locals>.determine_new_revidò  s   ø€ Ø-Ð-¨i¸ÑEÔEÐEr>   T)Úallow_changesr   zNothing to do.Úwz{}	{}
)&r�   r²   r   r*   rB   r-   r©   r¥   r³   r´   Úupgraderµ   r¶   Úforeignr·   r“   r   rE   r   r   Úunescape_for_displayrR   ÚencodingrS   r   rN   rF   rª   rD   rP   rK   r…   rT   r
   Ú	iteritemsr†   ÚcloseÚset_last_revision)rX   r»   r   Ú
idmap_filer"   r²   r*   r-   r¥   r´   r¶   r·   Úwt_toÚ
stored_locÚdisplay_urlr¼   rÀ   ÚgraphÚrenamesrK   ÚfÚoldidÚnewidrº   rµ   r³   r©   s    `                     @@@@r   rh   zcmd_rebase_foreign.runÁ  sH  øøøøø€ ð	ð 	ð 	ð 	ð 	ð 	ð 	%Ð$Ð$Ð$Ð$Ð$Ø.Ð.Ð.Ð.Ð.Ð.ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð
	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð	ð 	ð 	ð 	ð 	ð 	ð	/Ø×$Ò$ YÑ/Ô/ˆEØœˆIˆIøÝð 	/ð 	/ð 	/ØˆEØŸš IÑ.Ô.ˆIˆIˆIð	/øøøð ×)Ò)Ñ+Ô+ˆ
ØÐØÐ!Ý"¥7Ø:ñ$<ô $<ñ =ô =ð =ð '×;Ò;Ø ¤	Ô 2ñ4ô 4�à”	—’¥Ð(DÑ EÔ EÈÑ SÑTÔTÐTØ!Ÿ;š; zÑ2Ô2��à—{’{ 8Ñ,Ô,ˆHàÔ×"Ò"ØÔ¨Y×-DÒ-DÑ-FÔ-Fð 	#ñ 	Hô 	Hð 	Hð (Ð'¨¨ØÔ  )Ô"6×"GÒ"GÑ"IÔ"Iñ)Kô )Kñ Lô Lˆ
ð	Mð 	Mð 	Mð 	Mð 	Mð 	Mð 	Mð 	Mð	Fð 	Fð 	Fð 	Fð 	Fà×ÒÑÔÐð	ØÔ(×2Ò2Ñ4Ô4ˆEØ$�nØÐ.Ø#°4Øð!ñ !ô !ˆGð Ð Ø"×-Ò-Ñ/Ô/�
Ø×$Ò$Ñ&Ô&Ð&ð(Ø.Ð.¨u°jÑAÔAÐAà×%Ò%Ñ'Ô'Ð'Ð'ø�J×%Ò%Ñ'Ô'Ð'Ð'øøøà×ÒÑÔÐÐøˆI×ÒÑÔÐÐøøøà�bŠ=ˆ=Ý•Ð)Ñ*Ô*Ñ+Ô+Ð+àÐ!Ý�Z Ñ%Ô%ˆAðØ$+×$5Ò$5Ñ$7Ô$7ð =ð =‘L�E˜5Ø—G’G˜J×-Ò-¨e°UÑ;Ô;Ñ<Ô<Ð<Ð<ð=ð —’‘	”	�	�	ø�—’‘	”	�	�	øøøàÐØ×#Ò# I×$;Ò$;Ñ$=Ô$=Ñ>Ô>Ð>Ð>Ð>ð ÐsC   ±A Á!A2Á1A2Æ$AI Ç8H ÈI ÈH/È/I ÉIÊAK. Ë.L)NFNr'   )	ri   rj   rk   rl   rm   r	   rn   ro   rh   rp   r>   r   r°   r°   ¬  s‡   € € € € € ðð ð �€JàØˆˆ|Ð"LØð	ñ 	ô 	àˆØØØ_Øð		ñ 	ô 	ð		
€MðP?ð P?ð P?ð P?ð P?ð P?r>   r°   N)rl   Úcommandsr   r   Úerrorsr   r   r   r   Úoptionr	   Útracer
   Ú	transportr   Úi18nr   r   r   rr   rz   rƒ   r‰   r¢   r°   rp   r>   r   ú<module>rÙ      s=  ðð" 'Ð &ðð ð ð ð ð ð ð ðð ð ð ð ð ð ð ð ð ð ð ðð ð ð ð ð ðð ð ð ð ð ðð ð ð ð ð ð Ð Ð Ð Ð Ð ðð ð ð rð rð rð rð r�ñ rô rð rðjð ð ð ð �wñ ô ð ð@&ð &ð &ð &ð &˜'ñ &ô &ð &ðRQð Qð Qð Qð Q�gñ Qô Qð QðB<ð <ð <ð <ð <�ñ <ô <ð <ð~:ð :ð :ð :ð :�Wñ :ô :ð :ð(e?ð e?ð e?ð e?ð e?˜ñ e?ô e?ð e?ð e?ð e?r>   