403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.208
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/__pycache__/revisionspec.cpython-313.pyc
�

p��g����l�SSKJr SSKJrJr SSKJr SSKJrJ	r	J
r
Jr SSKJr "SS\R5r"S	S
5r"SS5r"S
S\5r"SS\5r\r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS5r\	R4"S5rSr"SS \5r"S!S"\5r"S#S$\5r"S%S&\5r "S'S(\5r!"S)S*\5r"\RG\5 \RG\5 \RG\5 \RG\5 \
RH\%\4"5r&S+r'\'"\5 \'"\5 \'"\5 \'"\5 \'"\5 \'"\5 \'"\5 \'"\5 \'"\ 5 \'"\!5 \'"\"5 g,)-�)�Optional)�revision�workingtree)�gettext�)�errors�
lazy_regex�registry�trace)rc�"�\rSrSrSrSSjrSrg)�InvalidRevisionSpec�zPRequested revision: '%(spec)s' does not exist in branch: %(branch_url)s%(extra)sNc��[RRXUS9 [US[	U55UlU(aS[	U5-UlgSUlg)N)�branch�spec�user_url�
�)r�BzrError�__init__�getattr�str�
branch_url�extra)�selfrrrs    �5/usr/lib/python3/dist-packages/breezy/revisionspec.pyr�InvalidRevisionSpec.__init__ sG����� � ��4� �@�!�&�*�c�&�k�B������E�
�*�D�J��D�J�)rr�N)�__name__�
__module__�__qualname__�__firstlineno__�_fmtr�__static_attributes__�rrr
r
s��	#�	�
rr
c�n�\rSrSrSrSrSSjr\S5rSr	\	r
SrS	rS
r
SrSr\S
5rSrg)�RevisionInfo�)z=The results of applying a revision specification to a branch.aThe results of applying a revision specification to a branch.

    An instance has two useful attributes: revno, and rev_id.

    They can also be accessed as spec[0] and spec[1] respectively,
    so that you can write code like:
    revno, rev_id = RevisionSpec(branch, spec)
    although this is probably going to be deprecated later.

    This class exists mostly to be the return value of a RevisionSpec,
    so that you can access the member you're interested in (number or id)
    or treat the result as a tuple.
    Nc��XlUSLUlX lX0lURc/URb!UR	UR5Ulgggr)r�
_has_revno�_revno�rev_id�
get_rev_id)rr�revnor-s    rr�RevisionInfo.__init__:sN�����t�+��������;�;��4�;�;�#:� �+�+�D�K�K�8�D�K�$;�rc��UR(d?URb2URRUR5UlSUlUR$![
R[
R4a
 SUlN@f=f)NT)r+r-r�revision_id_to_revnor,r�NoSuchRevision�RevnoOutOfBounds�rs rr/�RevisionInfo.revnoCsm�����4�;�;�#:�
#�"�k�k�>�>�t�{�{�K���#�D�O��{�{����)�)�6�+B�+B�C�
#�"���
#�s�*A�+B�
Bc�|�URcgURRRUR5$�NF)r-r�
repository�has_revisionr5s r�__bool__�RevisionInfo.__bool__Ms0���;�;����{�{�%�%�2�2�4�;�;�?�?rc��g)N�r&r5s r�__len__�RevisionInfo.__len__Ws��rc�`�US:XaUR$US:XaUR$[U5e�Nrr)r/r-�
IndexError)r�indexs  r�__getitem__�RevisionInfo.__getitem__Zs/���A�:��:�:���A�:��;�;�����rc�`�URRRUR5$r)rr9�get_revisionr-r5s r�get�RevisionInfo.getas!���{�{�%�%�2�2�4�;�;�?�?rc���[U5[[[U54;ag[U[U55(aURURLag[U5[U5:H$r8)�type�tuple�list�
isinstancer)r�others  r�__eq__�RevisionInfo.__eq__dsR����;�u�d�D��J�7�7���e�T�$�Z�(�(�T�[�[����-L���T�{�e�E�l�*�*rc�d�SRURURUR5$)Nz9<breezy.revisionspec.RevisionInfo object {}, {} for {!r}>)�formatr/r-rr5s r�__repr__�RevisionInfo.__repr__ks(��J�Q�Q��J�J����T�[�[�
�	
rc��[USUS9$)zcConstruct a RevisionInfo given just the id.

Use this if you don't know or care what the revno is.
N)r/r-)r()r�revision_ids  r�from_revision_id�RevisionInfo.from_revision_idps���F�$�{�C�Cr)r+r,rr-�NN)r r!r"r#�__doc__�help_txtr�propertyr/r;�__nonzero__r?rErIrQrU�staticmethodrYr%r&rrr(r()sb��G��H�9�����@��K�� �@�+�
�
�D��Drr(c��\rSrSr%SrSrSr\\\	S'\
/r\\
\\	S'\S5rSSjrS	rS
rSr\r\rSrS
rSrSrSrSrSrSrg)�RevisionSpec�yz A parsed revision specification.a�A parsed revision specification.

    A revision specification is a string, which may be unambiguous about
    what it represents by giving a prefix like 'date:' or 'revid:' etc,
    or it may have no prefix, in which case it's tried against several
    specifier types in sequence to determine what the user meant.

    Revision specs are an UI element, and they have been moved out
    of the branch class to leave "back-end" classes unaware of such
    details.  Code that gets a revno or rev_id from other code should
    not be using revision specs - revnos and revision ids are the
    accepted ways to refer to revisions internally.

    (Equivalent to the old Branch method get_revision_info())
    N�prefix�dwim_catchable_exceptionsc��Uc
[SSS9$[U[5(d[S5e[RU5nUb-Uup#[R"SURU5 U"USS9$[USS9$)z�Parse a revision spec string into a RevisionSpec object.

:param spec: A string specified by the user
:return: A RevisionSpec object that understands how to parse the
    supplied notation.
NT��	_internalzrevision spec needs to be textz Returning RevisionSpec %s for %s)
rbrOr�	TypeError�revspec_registry�
get_prefixr�mutterr �RevisionSpec_dwim)r�match�spectype�
specsuffixs    r�from_string�RevisionSpec.from_string�s����<����5�5��$��$�$��<�=�=� �+�+�D�1����#(� �H��L�L�;�X�=N�=N�PT�U��D�D�1�1�%�T�T�:�:rc���U(d[S5eXlUR(a8URUR5(aU[	UR5SnXlg)z�Create a RevisionSpec referring to the Null revision.

:param spec: The original spec supplied by the user
:param _internal: Used to ensure that RevisionSpec is not being
    called directly. Only from RevisionSpec.from_string()
zZCreating a RevisionSpec directly is not supported. Use RevisionSpec.from_string() instead.N)�AssertionError�	user_specrd�
startswith�lenr)rrrhs   rr�RevisionSpec.__init__�sT��� �:��
����;�;�4�?�?�4�;�;�7�7���D�K�K�(�*�+�D��	rc�H�[R"S5 [USS5$)Nz&Returning RevisionSpec._match_on: None)rrlr(�rr�revss   r�	_match_on�RevisionSpec._match_on�s��
���=�>��F�D�$�/�/rc��URX5nU(aU$US:XaU$UR(a[URU5e[URU5e)Nr[)r|rdr
rur)rrr{�infos    r�_match_on_and_check� RevisionSpec._match_on_and_check�sN���~�~�f�+����K�
�\�
!��K�
�[�[�%�d�n�n�f�=�=�%�d�i�i��8�8rc�"�URUSS9$)N)r{)r��rrs  r�
in_history�RevisionSpec.in_history�s���'�'��T�'�:�:rc�$�URU5$)z�Return just the revision_id for this revisions spec.

Some revision specs require a context_branch to be able to determine
their value. Not all specs will make use of it.
)�_as_revision_id�r�context_branchs  r�as_revision_id�RevisionSpec.as_revision_id�s���#�#�N�3�3rc�8�URU5R$)z�Implementation of as_revision_id().

Classes should override this function to provide appropriate
functionality. The default is to just call '.in_history().rev_id'
)r�r-r�s  rr��RevisionSpec._as_revision_id�s�����~�.�5�5�5rc�$�URU5$)z�Return the tree object for this revisions spec.

Some revision specs require a context_branch to be able to determine
the revision id and access the repository. Not all specs will make
use of it.
)�_as_treer�s  r�as_tree�RevisionSpec.as_tree�s���}�}�^�,�,rc�Z�URU5nURRU5$)z�Implementation of as_tree().

Classes should override this function to provide appropriate
functionality. The default is to just call '.as_revision_id()'
and get the revision tree from context_branch's repository.
)r�r9�
revision_tree)rr�rXs   rr��RevisionSpec._as_tree�s+���)�)�.�9���(�(�6�6�{�C�Crc�b�SRURRUR5$)Nz<{} {}>)rT�	__class__r rur5s rrU�RevisionSpec.__repr__�s#�������� 7� 7����H�Hrc��g)zlWhether this revision spec needs a branch.

Set this to False the branch argument of _match_on is not used.
Tr&r5s r�needs_branch�RevisionSpec.needs_branch���
rc��g)z\When the revision specifier contains a branch location, return it.

Otherwise, return None.
Nr&r5s r�
get_branch�RevisionSpec.get_branch	r�r)rru)F)r r!r"r#r\r]rdrr�__annotations__r
rerNrL�	Exceptionr`rqrr|r�r��in_store�	in_branchr�r�r�r�rUr�r�r%r&rrrbrbys���*��H� !�F�H�S�M� �8K�7L��t�D��O�4�L���;��;�*�"0�
9�;��H��I�4�6�-�D�I��rrbc��\rSrSr%Sr\\S'\R"S5r	/r
\\\
R\S'SrSr\S5r\S	5rS
rg)rmiaJProvides a DWIMish revision specifier lookup.

Note that this does not go in the revspec_registry because by definition
there is no prefix to identify it.  It's solely called from
RevisionSpec.from_string() because the DWIMification happen when _match_on
is called so the string describing the revision is kept here until needed.
r]z^(?:(\d+(\.\d+)*)|-\d+)(:.*)?$�_possible_revspecsc�F�U"URSS9nURU5$)NTrg)rr�)r�rstyper�rss    r�
_try_spectype�RevisionSpec_dwim._try_spectype$s#��
�D�I�I��
.���}�}�V�$�$rc��URRUR5bUR[U5$URH%nUR5nURXA5s $ [URU5e![[R5a Njf=f![UR5a M~f=f)z'Run the lookup and see what we can get.)
�_revno_regexrnrr��RevisionSpec_revnorMrer��get_objr
)rrr{�	objgetter�rs_classs     rr|�RevisionSpec_dwim._match_on*s������"�"�4�9�9�-�9�
��)�)�*<�f�E�E�
�0�0�I� �(�(�*�H�
��)�)�(�;�;�1�"�$�)�)�V�4�4���+�E�E�F�
��
����;�;�<�
��
�s#�B	�B,�	B)�(B)�,C	�C	c�b�URR[R"U55 g)zGAppend a possible DWIM revspec.

:param revspec: Revision spec to try.
N)r��appendr
�
_ObjectGetter)�cls�revspecs  r�append_possible_revspec�)RevisionSpec_dwim.append_possible_revspec@s#��	���%�%�h�&<�&<�W�&E�Frc�b�URR[R"X55 g)z�Append a possible lazily loaded DWIM revspec.

:param module_name: Name of the module with the revspec
:param member_name: Name of the revspec within the module
N)r�r�r
�_LazyObjectGetter)r��module_name�member_names   r�append_possible_lazy_revspec�.RevisionSpec_dwim.append_possible_lazy_revspecHs&��	���%�%��&�&�{�@�	
rr&N)r r!r"r#r\rr�r	�lazy_compiler�r�rNrLr
r�r�r|�classmethodr�r�r%r&rrrmrmsq����M��*�*�+L�M�L�>@���T�(�"8�"8�9�:�?�%�5�,�G��G��
��
rrmc�>�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)r�iTz"Selects a revision using a number.a�Selects a revision using a number.

    Use an integer to specify a revision in the history of the branch.
    Optionally a branch can be specified.  A negative number will count
    from the end of the branch (-1 is the last revision, -2 the previous
    one). If the negative number is larger than the branch's history, the
    first revision is returned.
    Examples::

      revno:1                   -> return the first revision of this branch
      revno:3:/path/to/branch   -> return the 3rd revision of
                                   the branch '/path/to/branch'
      revno:-1                  -> The last revision in a branch.
      -2:http://other/branch    -> The second to last revision in the
                                   remote branch.
      -1000000                  -> Most likely the first revision, unless
                                   your history is very long.
    zrevno:c�B�URU5upn[XU5$)z%Lookup a revision by revision number.)�_lookupr(�rrr{r/rXs     rr|�RevisionSpec_revno._match_onks"��%)�\�\�&�%9�"��{��F�;�7�7rc��URRS5nUS:XaURnSnO!URSUnURUS-SnUS:Xa!U(d[URUS5eSnO[	U5nSnU(aSS
KJ	n	 U	RU5nW(aURWS	S9n
USU
4$UR5up�WS:aU*U:�aSnOX�-S-nUR!U5n
XU
4$![
aP [
SURS555nO(![
an[URX5eSnAff=fS	nN�f=f![R[R4a [URU5ef=f![R[R4a [URU5ef=f)
N�:���rrz(cannot have an empty revno and no branchFc3�8# �UHn[U5v� M g7fr)�int)�.0�numbers  r�	<genexpr>�-RevisionSpec_revno._lookup.<locals>.<genexpr>�s���'X�BW���F���BW�s��.T��Branch)�_cache_reverser)r�findr
rur��
ValueErrorrM�splitrr��open�dotted_revno_to_revision_idrr3r4�last_revision_infor.)
rr�loc�
revno_spec�branch_specr/�dotted�match_revno�er�rX�
last_revno�last_revision_ids
             rr��RevisionSpec_revno._lookupps����i�i�n�n�S�!���"�9����J��K����4�C��J��)�)�C�!�G�I�.�K�����)��N�N�F�,V����E�
��J������&��[�[��-�F��	
1�$�@�@���A����t�[�0�0�+1�+D�+D�+F�(�J��q�y��F�z�)��E�&�.��2�E�
B�$�/�/��6���k�)�)��S�	
�I�"'�'X�*�BR�BR�SV�BW�'X�"X�K��!�I�-�d�n�n�f�H�H��I����	
��,�)�)�6�+B�+B�C�
B�)�$�.�.�&�A�A�
B��"�)�)�6�+B�+B�C�
B�)�$�.�.�&�A�A�
B�sN�:
D�-E�,F�
E�!D.�-E�.
E�8E�E�E�E�;F�;Gc�.�URU5up#nU$r)r�)rr�rr/rXs     rr��"RevisionSpec_revno._as_revision_id�s��%)�\�\�.�%A�"��{��rc�>�URRS5S:H$)Nr�r��rr�r5s rr��RevisionSpec_revno.needs_branch�s���y�y�~�~�c�"�b�(�(rc��URRS5S:XagURURRS5S-S$)Nr�r�rr�r5s rr��RevisionSpec_revno.get_branch�s>���9�9�>�>�#��"�$���9�9�T�Y�Y�^�^�C�0�1�4�6�7�7rr&N)
r r!r"r#r\r]rdr|r�r�r�r�r%r&rrr�r�Ts-��,��H�$�F�8�
<*�|�
)�8rr�c��\rSrSrSrSrg)�RevisionIDSpeci�c�N�URU5n[RX5$r)r�r(rY)rrr{rXs    rr|�RevisionIDSpec._match_on�s#���)�)�&�1���,�,�V�A�Arr&N)r r!r"r#r|r%r&rrr�r��s��Brr�c�&�\rSrSrSrSrSrSrSrg)�RevisionSpec_revidi�z)Selects a revision using the revision id.a$Selects a revision using the revision id.

    Supply a specific revision id, that can be used to specify any
    revision id in the ancestry of the branch.
    Including merges, and pending merges.
    Examples::

      revid:aaaa@bbbb-123456789 -> Select revision 'aaaa@bbbb-123456789'
    zrevid:c��[UR[5(aURRS5$UR$)Nzutf-8)rOrr�encoder�s  rr��"RevisionSpec_revid._as_revision_id�s4���d�i�i��%�%��9�9�#�#�G�,�,��y�y�rr&N)	r r!r"r#r\r]rdr�r%r&rrr�r��s��3��H��F�rr�c�2�\rSrSrSrSrSrSrSrSr	Sr
g	)
�RevisionSpec_lasti�z&Selects the nth revision from the end.a5Selects the nth revision from the end.

    Supply a positive number to get the nth revision from the end.
    This is the same as supplying negative numbers to the 'revno:' spec.
    Examples::

      last:1        -> return the last revision
      last:3        -> return the revision 2 before the end.
    zlast:c�@�URU5up4[XU5$r)�_revno_and_revision_idr(r�s     rr|�RevisionSpec_last._match_on�s"��!�8�8��@����F�;�7�7rc���UR5up#URS:Xa U(d[R"U5eX#4$[	UR5nUS::a[
URUS5eX$-
S-nURU5nXg4$![
an[
URX5eSnAff=f![R[R4a [
URU5ef=f)Nrrz you must supply a positive valuer)r�rr�	NoCommitsr�r�r
rur.r3r4)rr�r�r��offsetr�r/rXs        rr��(RevisionSpec_last._revno_and_revision_id�s���'5�'H�'H�'J�$�
��9�9��?���&�&�~�6�6��/�/�	I�����^�F��Q�;�%�����0R��
��#�a�'��	F�(�3�3�E�:�K��!�!���	I�%�d�n�n�n�H�H��	I���%�%�v�'>�'>�?�	F�%�d�n�n�n�E�E�	F�s$�B�>B:�
B7�B2�2B7�:;C5c�,�URU5up#U$r)r�)rr�r/rXs    rr��!RevisionSpec_last._as_revision_ids��"�8�8��H����rr&N)r r!r"r#r\r]rdr|r�r�r%r&rrr�r��s"��0��H��F�8�"�2rr�c�,�\rSrSrSrSrSrSrSrSr	g)	�RevisionSpec_beforeiz-Selects the parent of the revision specified.a�Selects the parent of the revision specified.

    Supply any revision spec to return the parent of that revision.  This is
    mostly useful when inspecting revisions that are not in the revision history
    of a branch.

    It is an error to request the parent of the null revision (before:0).

    Examples::

      before:1913    -> Return the parent of revno 1913 (revno 1912)
      before:revid:aaaa@bbbb-1234567890  -> return the parent of revision
                                            aaaa@bbbb-1234567890
      bzr diff -r before:1913..1913
            -> Find the changes between revision 1913 and its parent (1912).
               (What changes did revision 1913 introduce).
               This is equivalent to:  bzr diff -c 1913
    zbefore:c�N�[RUR5RX5nURS:Xa[URUS5eURcYURRUR5nUR(d[RnOURSnSnO!URS-
nURXb5n[#XU5$![R[R 4a [URU5ef=f)Nr�#cannot go before the null: revisionr)rbrqrr|r/r
rur9rHr-�
parent_idsr�
NULL_REVISIONr.rr3r4r()rrr{�r�revrXr/s       rr|�RevisionSpec_before._match_on*s����$�$�T�Y�Y�/�9�9�&�G���7�7�a�<�%�����(M��
�
�7�7�?��#�#�0�0����:�C��>�>�&�4�4��!�n�n�Q�/���E��G�G�a�K�E�
B�$�/�/��<���F�;�7�7���)�)�6�+B�+B�C�
B�)�$�.�.�&�A�A�
B�s�C)�);D$c���[RUR5RU5nU[R
:Xa[
URUS5eURnUR5 URU/5nSSS5 UW;a[
URUS5eXBn[U5S:a[
URUS5eUS$!,(df   NZ=f)Nr�z!cannot find the matching revisionrzNo parents for revision.r)rbrqrr�rrr
rur9�	lock_read�get_parent_maprw)rr��base_revision_id�context_repo�
parent_map�parentss      rr��#RevisionSpec_before._as_revision_id@s���'�3�3�D�I�I�>�N�N��
���x�5�5�5�%�����0U��
�&�0�0��
�
#�
#�
%�%�4�4�6F�5G�H�J�&��:�-�%�����0S��
��.���w�<�!��%�����0J��
��q�z��&�
%�s�6C�
C+r&N)
r r!r"r#r\r]rdr|r�r%r&rrr�r�s��7��H�&�F�8�,rr�c�\�\rSrSrSrSrSr\R\R/r
SrSrSr
g)	�RevisionSpec_tagiXz)Select a revision identified by tag name.zvSelects a revision identified by a tag name.

    Tags are stored in the branch and created by the 'tag' command.
    ztag:c�r�[RXRRUR55$r)r(rY�tags�
lookup_tagrrzs   rr|�RevisionSpec_tag._match_oncs&���,�,�V�[�[�5K�5K�D�I�I�5V�W�Wrc�L�URRUR5$r)rrrr�s  rr�� RevisionSpec_tag._as_revision_idgs���"�"�-�-�d�i�i�8�8rr&N)r r!r"r#r\r]rdr�	NoSuchTag�TagsNotSupportedrer|r�r%r&rrrrXs5��3��H�
�F�!'�!1�!1�6�3J�3J� K��X�9rrc�*�\rSrSrSrS/rSrSrSrg)�_RevListToTimestampsikzAThis takes a list of revisions, and allows you to bisect by date.rc��Xlgr�rr�s  rr�_RevListToTimestamps.__init__ps���rc��URRRURRU55nUR	5$)z!Get the date of the index'd item.)rr9rHr.�datetime)rrDrs   rrE� _RevListToTimestamps.__getitem__ss7���K�K�"�"�/�/����0F�0F�u�0M�N���z�z�|�rrN)	r r!r"r#r\�	__slots__rrEr%r&rrrrks��K��
�I��rrz�(?P<date>(?P<year>\d\d\d\d)-(?P<month>\d\d)-(?P<day>\d\d))?(,|T)?\s*(?P<time>(?P<hour>\d\d):(?P<minute>\d\d)(:(?P<second>\d\d))?)?c	�"�SSKnURRURR5R	55nUR5S:XaX!R
SS9-
$UR5S:XaU$UR5S:XaX!R
SS9-$[RU5nU(a,URS5(dURS5(d[eURS5(aO[URS	55n[URS
55n[URS55nO$URnURnURnURS5(ah[URS55n[URS
55nURS5(a[URS55n	OSn	OSupxn	URXEXgX�S9$)Nr�	yesterdayr)�days�today�tomorrow�date�time�year�month�day�hour�minute�second)rrr)r'r(r)r*r+r,)r�fromordinalr%r#�	toordinal�lower�	timedelta�_date_regexrn�groupr�r�r'r(r))
rrr#�mr'r(r)r*r+r,s
          r�_parse_datespecr4�s����

���)�)�(�-�-�*=�*=�*?�*I�*I�*K�L�E��z�z�|�{�"��)�)�q�)�1�1�1�	
�����	 ���	
�����	#��)�)�q�)�1�1�1����d�#������������������7�7�6�?�?��q�w�w�v��'�D������(�)�E��a�g�g�e�n�%�C��:�:�D��K�K�E��)�)�C��7�7�6�?�?��q�w�w�v��'�D������*�+�F��w�w�x� � ��Q�W�W�X�.�/����#*� �D�&�� � ���v�!�
�	
rc�2�\rSrSrSrSrSrSrSrSr	Sr
g	)
�RevisionSpec_datei�z/Selects a revision on the basis of a datestamp.arSelects a revision on the basis of a datestamp.

    Supply a datestamp to select the first revision that matches the date.
    Date can be 'yesterday', 'today', 'tomorrow' or a YYYY-MM-DD string.
    Matches the first entry after a given date (either at midnight or
    at a specified time).

    One way to display all the changes since yesterday would be::

        brz log -r date:yesterday..

    Examples::

      date:yesterday            -> select the first revision since yesterday
      date:2006-08-14,17:10:14  -> select the first revision after
                                   August 14th, 2006 at 5:10pm.
    zdate:c���UR5 URR5nSnURUR	5[
R45HenURRU5nUR5U:a1Uc[URU5e[USU5s sSSS5 $UnMg [USU5sSSS5 $!,(df   g=fr)rr9�	get_graph�iter_lefthand_ancestry�
last_revision�
_mod_revisionrrHrr
rur()rr�dt�graph�
last_match�revidrs       r�_scan_backwards�!RevisionSpec_date._scan_backwards�s���
�
�
�
��%�%�/�/�1�E��J��5�5��$�$�&��)D�)D�(F����%�%�2�2�5�9���:�:�<�"�$�!�)�1�$�.�.�&�I�I�'���j�A�A� �
�#�
�� ���j�9� �
�
�s�B%C�C�
C*c��SSKnUR5 UR[U5USU5nSSS5 WUR5:Xa[	UR
U5e[
X5$!,(df   NC=frB)�bisectrrr/r
rur()rrr<�hirCrs      r�_bisect_backwards�#RevisionSpec_date._bisect_backwards�sc���
�
�
�
��-�-� 4�V� <�b�!�R�H�C� ��&�,�,�.� �%�d�n�n�f�=�=��F�(�(�	 �
�s�A0�0
A>c���[UR5nUR5nUcUR
X5$URXU5$![a [URUS5ef=f)z�Spec for date revisions:
date:value
value can be 'yesterday', 'today', 'tomorrow' or a YYYY-MM-DD string.
matches the first entry after a given date (either at midnight or
at a specified time).
zinvalid date)r4rr�r
rur/r@rE)rrr{r<r/s     rr|�RevisionSpec_date._match_on�sr��	N� ����+�B�������=��'�'��3�3��)�)�&�e�<�<��
�	N�%�d�n�n�f�n�M�M�	N�s�A
�
"A/r&N)r r!r"r#r\r]rdr@rEr|r%r&rrr6r6�s"��9��H�"�F�
:�)�=rr6c�L�\rSrSrSrSrSrSrSr\	S5r
\	S5rS	rg
)�RevisionSpec_ancestori�z/Selects a common ancestor with a second branch.a7Selects a common ancestor with a second branch.

    Supply the path to a branch to select the common ancestor.

    The common ancestor is the last revision that existed in both
    branches. Usually this is the branch point, but it could also be
    a revision that was merged.

    This is frequently used with 'diff' to return all of the changes
    that your branch introduces, while excluding the changes that you
    have not merged from the remote branch.

    Examples::

      ancestor:/path/to/branch
      $ bzr diff -r ancestor:../../mainline/branch
    z	ancestor:c�|�[R"SURU5 URXR5$�Nzmatching ancestor: on: %s, %s)rrlr�_find_revision_inforzs   rr|�RevisionSpec_ancestor._match_ons,��
���4�d�i�i��H��'�'��	�	�:�:rc�8�URXR5$r)�_find_revision_idrr�s  rr��%RevisionSpec_ancestor._as_revision_ids���%�%�n�i�i�@�@rc�F�[RX5n[USU5$r)rJrPr()r�other_locationrXs   rrM�)RevisionSpec_ancestor._find_revision_infos!��+�=�=�f�U���F�D�+�6�6rc��SSKJn UR5 UR5nU[R
:Xa[R"U5eUS:XaUR5nURU5nUR5 UR5nU[R
:Xa[R"U5eURRUR5nURX55nSSS5 W[R
:Xa[R"UW5eUsSSS5 $!,(df   ND=f!,(df   g=f)Nrr�r)rr�rr:rrrr��
get_parentr�r9r8�find_unique_lca�NoCommonAncestor)rrSr��
revision_a�other_branch�
revision_br=r-s        rrP�'RevisionSpec_ancestor._find_revision_ids��"�
�
�
�
��-�-�/�J��X�3�3�3��&�&�v�.�.���#�!'�!2�!2�!4��!�;�;�~�6�L��'�'�)�)�7�7�9�
���!7�!7�7� �*�*�<�8�8��)�)�3�3�L�4K�4K�L���.�.�z�F��*���/�/�/��-�-�j�*�E�E�� �
�*�)�� �
�s%�A2E	�	A1D8�:4E	�8
E	�E	�	
Er&N)
r r!r"r#r\r]rdr|r�r`rMrPr%r&rrrJrJ�sF��9��H�"�F�;�A��7��7����rrJc�X�\rSrSrSrSrSr\R/r	Sr
SrSrSr
S	rS
rg)�RevisionSpec_branchi"z0Selects the last revision of a specified branch.z�Selects the last revision of a specified branch.

    Supply the path to a branch to select its last revision.

    Examples::

      branch:/path/to/branch
    zbranch:c�>�SSKJn URUR5nUR	5nUS[
R4;a[R"U5eUcUnOURXE5 [USU5$![Ra UnN%f=f�Nrr�)rr�r�rr:rrrr��fetch�
ReadOnlyErrorr()rrr{r�rZr[s      rr|�RevisionSpec_branch._match_on0s���"��{�{�4�9�9�-��!�/�/�1�
��$�� 6� 6�7�7��"�"�<�0�0��>�!�F�
&����\�6��F�D�*�5�5���'�'�
&�%��
&�s�%B�B�Bc���SSKJn URUR5nUR	5nURX45 U[R:Xa[R"U5eU$r`)
rr�r�rr:rarrrr��rr�r�rZr:s     rr��#RevisionSpec_branch._as_revision_idAsX��"��{�{�4�9�9�-��$�2�2�4�
����\�9��H�2�2�2��"�"�<�0�0��rc���SSKJn URUR5nUR	5nU[
R:Xa[R"U5eURRU5$r`)rr�r�rr:rrrr�r9r�res     rr��RevisionSpec_branch._as_treeKs[��"��{�{�4�9�9�-��$�2�2�4�
��H�2�2�2��"�"�<�0�0��&�&�4�4�]�C�Crc��gr8r&r5s rr�� RevisionSpec_branch.needs_branchTs��rc��UR$r)rr5s rr��RevisionSpec_branch.get_branchWs���y�y�rr&N)r r!r"r#r\r]rdr�NotBranchErrorrer|r�r�r�r�r%r&rrr^r^"s<��:��H��F�!'�!6�!6� 7��6�"�D��rr^c�2�\rSrSrSrSrSrSrSrSr	Sr
g	)
�RevisionSpec_submiti[z/Selects a common ancestor with a submit branch.a"Selects a common ancestor with the submit branch.

    Diffing against this shows all the changes that were made in this branch,
    and is a good predictor of what merge will do.  The submit branch is
    used by the bundle and merge directive commands.  If no submit branch
    is specified, the parent branch is used instead.

    The common ancestor is the last revision that existed in both
    branches. Usually this is the branch point, but it could also be
    a revision that was merged.

    Examples::

      $ bzr diff -r submit:
    zsubmit:c���UR5nSnUcUR5nSnUc[R"U5e[R
"[
S5RX255 U$)Nz
submit branchz
parent branchz
Using {0} {1})�get_submit_branchrVr�NoSubmitBranchr�noterrT)rr�submit_location�
location_types    r�_get_submit_location�(RevisionSpec_submit._get_submit_locationpsg�� �2�2�4��'�
��"�$�/�/�1�O�+�M��"��'�'��/�/�
�
�
�7�?�+�2�2�=�R�S��rc��[R"SURU5 URXR	U55$rL)rrlrrMrvrzs   rr|�RevisionSpec_submit._match_on{s3��
���4�d�i�i��H��'�'��0I�0I�&�0Q�R�Rrc�B�URXRU55$r)rPrvr�s  rr��#RevisionSpec_submit._as_revision_ids#���%�%��5�5�n�E�
�	
rr&N)r r!r"r#r\r]rdrvr|r�r%r&rrroro[s#��9��H� �F�	�S�
rroc�(�\rSrSrSrSrSrSrSrg)�RevisionSpec_annotatei�z	annotate:a?Select the revision that last modified the specified line.

    Select the revision that last modified the specified line.  Line is
    specified as path:number.  Path is a relative path to the file.  Numbers
    start at 1, and are relative to the current version, not the last-
    committed version of the file.
    c�N�[URUSRU55e)NzNo such line: {})r
rurT)r�	numstringr�s   r�_raise_invalid�$RevisionSpec_annotate._raise_invalid�s&��!��N�N�N�,>�,E�,E�i�,P�
�	
rc���URRSS5up#[U5S-
n[
RRU5upVUR5 URU5(d&[URUSRU55eURU5VVs/sHupxUPM	 n	nnSSS5 W	Wn
W
[R :Xa&[URUSRU55eU
$![a UR	X15 N�f=fs snnf!,(df   Nw=f![a UR	X15 N�f=f)Nr�rzFile '{}' is not versioned.zLine {} has not been committed.)r�rsplitr�r�r�r�WorkingTree�open_containingr�has_filenamer
rurT�
annotate_iterrCr�CURRENT_REVISION)rr��pathrrD�tree�	file_pathr�l�revision_idsrXs           rr��%RevisionSpec_annotate._as_revision_id�sH���)�)�*�*�3��2���	;��	�N�Q�&�E�&�1�1�A�A�$�G���
�^�^�
��$�$�Y�/�/�)��N�N�"�1�8�8��C���
-1�,>�,>�y�,I�J�,I�&�1�A�,I�L�J��	;�&�u�-�K��(�3�3�3�%�����1�8�8��C��
�
���+�	;����	�:�	;��K��
���	;����	�:�	;�sB�D�AD2�0D,�>D2�
E�D)�(D)�,D2�2
E�E!� E!r&N)	r r!r"r#rdr]r�r�r%r&rrr}r}�s��
�F��H�
�
rr}c�"�\rSrSrSrSrSrSrg)�RevisionSpec_mainlinei�z�Select mainline revision that merged the specified revision.

    Select the revision that merged the specified revision into mainline.
    z	mainline:c�|�[RUR5nUR5cUnO%SSKJn UR
UR55nURU5nURR5nURXQR55nUc[URU5eU$r`)rbrqrr�rr�r�r�r9r8�find_lefthand_mergerr:r
ru)rr�r��spec_branchr�rXr=�results        rr��%RevisionSpec_mainline._as_revision_id�s����*�*�4�9�9�5������'�(�K�&� �+�+�g�&8�&8�&:�;�K��,�,�[�9���)�)�3�3�5���+�+�K�9U�9U�9W�X���>�%�d�n�n�n�E�E��
rr&N)r r!r"r#r]rdr�r%r&rrr�r��s���H�
�F�
rr�c�D�[RURU5 gr)rj�registerrd)r�s r�_register_revspecr��s�����g�n�n�g�6rN)(�typingr�breezyrr�breezy.i18nrrrr	r
rr;rr
r(rbrmr��RevisionSpec_intr�r�r�r�rrr�r1r4r6rJr^ror}r�r��Registryrrjr�r&rr�<module>r�s���"�(��1�1�'��&�/�/��MD�MD�`U�U�v=
��=
�@f8��f8�T&��B�\�B����00��0�fC�,�C�L9�|�9�&���%�%�F���'
�T==��==�@5�L�5�p6�,�6�r'
�/�'
�T)�N�)�X�N��6�)�)�*:�;��)�)�*<�=��)�)�*;�<��)�)�*=�>��$�$�S�,�%6�7�9��7��$�%��$�%��#�$��%�&��"�#��#�$��'�(��%�&��%�&��'�(��'�(r

Youez - 2016 - github.com/yon3zu
LinuXploit