403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/mercurial/__pycache__/copies.cpython-39.opt-1.pyc
a

�+�b	��@s~ddlmZddlZddlZddlmZddlmZddlm	Z
mZmZm
Z
mZddlmZddlmZmZe�d	�Zd
d�Zdd
�Zdd�ZdEdd�ZdFdd�Zdd�Zdd�Zdd�Zdd�Zdd�Z dd�Z!dZ"dZ#d Z$d!d"�Z%d#d$�Z&d%d&�Z'd'd(�Z(d)d*�Z)dGd+d,�Z*d-d.�Z+d/d0�Z,dHd1d2�Z-d3d4�Z.d5d6�Z/d7d8�Z0Gd9d:�d:e1�Z2d;d<�Z3d=d>�Z4d?d@�Z5dAdB�Z6dCdD�Z7dS)I�)�absolute_importN�)�_)�nullrev)�match�pathutil�policy�pycompat�util)�
stringutil)�flagutil�sidedataZcopy_tracingcCsHt|���D]6\}}||kr$||=q||vr4||=q||vr||=qdS)z)filters out invalid copies after chainingN)�list�items)�src�dst�t�k�v�r�6/usr/lib64/python3.9/site-packages/mercurial/copies.py�_filter$srcCs0|��}t�|�D]\}}|�||�||<q|S)z.chain two sets of copies 'prefix' and 'suffix')�copyr	�	iteritems�get)�prefix�suffix�result�key�valuerrr�_chainEsr cCsV|��D]H}|��}|�|d�|��kr0|S|r|�|d�|��kr|SqdS)a	return file context that is the ancestor of fctx present in ancestor
    manifest am

    Note: we used to try and stop after a given limit, however checking if that
    limit is reached turned out to be very expensive. we are better off
    disabling that feature.N)�	ancestors�pathrZfilenode)�fctx�am�basemf�fr"rrr�
_tracefileMsr'cCsB|j}|����}t|�D]"}|�|�jr6|r||�s||=q|S�N)�dirstate�copiesrrZ	get_entryZtracked)�reporZds�crrrr�_dirstatecopies]sr-cCs|��}|��}|j||d�S)z�Computes which files are in b but not a.
    This is its own function so extensions can easily wrap this call to see what
    files _forwardcopies is about to process.
    �r)�manifest�
filesnotin)�a�brZma�mbrrr�_computeforwardmissingfsr4cCs(|jdkrdS|j�dd�}d}||vS)z9Checks if we should use changeset-centric copy algorithms�changeset-sidedataT�experimentalscopies.read-from)schangeset-onlys
compatibility)�filecopiesmode�ui�config)r+ZreadfromZchangesetsourcerrr�usechangesetcentricalgops

r:cCs�|j}t|�rt|||�S|jjo.|j�dd�}|jj}|rL|d||f�|��}|dur`dn|��}i}	|}
|��|kr�|�	��
�tkr�t�
|���}t�||�}
|j�dd�r�t|�|��}|r�|dt|��n"t|||
d�}|r�|dt|��|jjj|�
�gd	d
�}
t|�D]z}|�r0|d|�||}|
|_|�rLt��}t|||�}|�rx|�rp|d|�||	|<|�r|d
t��|��q|	S)z@Like _forwardcopies(), but b.rev() cannot be None (working copy)�devel�debug.copiess3debug.copies:    looking into rename from %s to %s
Nscopy-tracing.trace-all-filess+debug.copies:      searching all files: %d
r.s/debug.copies:      missing files to search: %d
T�Z	inclusives&debug.copies:        tracing file: %s
s%debug.copies:          rename of: %s
s(debug.copies:          time: %f seconds
)�_repor:�_changesetforwardcopiesr8�	debugflag�
configbool�debugr/�p1�p2�revr�matchmod�exact�filesZintersectmatchersr�walk�lenr4�	changelogr!�sortedZ_ancestrycontextr
Ztimerr')r1r2�baserr+rBZdbgr$r%�cmZforwardmissingmatchZfilesmatcher�missingZancestrycontextr&r#�startZopathrrr�_committedforwardcopiesysZ��
��rQcsP|j}|j�|j�tj�|j�tdur:����fdd�}n����fdd�}|S)z�returns a function that returns the following data given a <rev>"

    * p1: revision number of first parent
    * p2: revision number of first parent
    * changes: a ChangingFiles object
    Ncs:�|�\}}�|��@r,�|�j�tj�}nd}|||fSr()Z	_sidedatar�sidedatamodZSD_FILES)rErCrD�raw�Z
HASCOPIESINFO�changelogrevision�flags�parentsrr�revinfo�s
z _revinfo_getter.<locals>.revinfocs2�|�\}}�|��@r$�|�j}nd}|||fSr()�changes)rErCrDrYrTrrrX�s
)rK�
parentrevsrVrZREVIDX_HASCOPIESINFOrU�rustmod)r+r�clrXrrTr�_revinfo_getter�s
r]csi���fdd�}|S)z&return a cached version of is_ancestorcsH||krdS||krdS||f}��|�}|durD�||�}�|<|S)NFT)r)ZancZdescr�ret��cache�is_ancestorrr�_is_ancestor�s
z(cached_is_ancestor.<locals>._is_ancestorr)rarbrr_r�cached_is_ancestor�srcc	s�|��t|��fvriS|����}|j}|j}|j}ttf}|j|��gdd�}|j|��g|��gd�}	t	�}
d}|j
�dd�}|	D]V}
||
�}||kr�d}q�|\}}|tkr�||vr�|
�|�|tkr�||vr�|
�|�q�|
s�iS|�r4t
|
�}
t|
�}|��g}|j|||
dd��t	����fdd	�|	D�}	|jd
k�r�tdd�|
D��}|	D]H}
|�|
�D]6}|tk�rv�qdd
||
<||v�rd||d7<�qd�qVt||�}|j���(t|	||��||||�Wd�S1�s�0Yn�tdd�|
D��}|	D]F}
|�|
�D]4}|tk�r&�qg||
<||v�r||�|
��q�q|	��}|	�|
�|	��t|�}t|	||��|||�SdS)NTr=)�commonZheadsFr;scopy-tracing.multi-thread)Zincludepathcsg|]}|�vr|�qSrr��.0�r�Z
roots_to_headrr�
<listcomp>+�z+_changesetforwardcopies.<locals>.<listcomp>r5css|]}|dfVqdS)rNrrerrr�	<genexpr>7rjz*_changesetforwardcopies.<locals>.<genexpr>rrcss|]}|gfVqdSr(rrerrrrkMrj)rErr+Z
unfilteredrKZ
isancestorrevZ_uncheckedparentrevsr!Zfindmissingrevs�setr8rA�addr�minZreachablerootsr7�dictrZr]Zreading�_combine_changeset_copies�append�pop�extend�sort�_revinfo_getter_extra�_combine_changeset_copies_extra)r1r2rr+r\�
isancestorrWZgraph_rootsr!�revs�rootsZhas_graph_roots�multi_threadrgZpsrCrD�m�h�children_count�prX�children�xrrhrr?�s�





�&


�r?cCs2|��}tdur*t�t|�||||�}�n�t|�}i}	|D�]�}
||
�\}}}
d}d|fd|ffD�]^\}}|tkrvqb|�|�}|dur�qb|d8}|||<|r�|	�|d�}n|	�|d�}|dur�i}}n|r�|��}n|}|
du�r�i}|dkr�|
j	}n|dk�r
|
j
}|�rd|��}t�|�D]@\}}|�|�}|du�rT|ddu�rT|d}|
|f||<�q"|
j
�r�|
j
D].}||v�rr||u�r�|��}|
df||<�qr|du�r�|}qbt||||
|
�}qb||	|
<q:i}|	|}|��D] \}\}}|du�r�|||<�q�|�s.t|���D]}||��s||=�q|S)a�combine the copies information for each item of iterrevs

    revs: sorted iterable of revision to visit
    children_count: a {parent: <number-of-relevant-children>} mapping.
    targetrev: the final copies destination revision (not in iterrevs)
    revinfo(rev): a function that return (p1, p2, p1copies, p2copies, removed)
    match: a matcher

    It returns the aggregated copies information for `targetrev`.
    Nr�)�alwaysr[Zcombine_changeset_copiesrrcrrrrrZcopied_from_p1Zcopied_from_p2r	r�removed�_merge_copies_dictr�keys)rxr}�	targetrevrXrrwrz�alwaysmatch�final_copies�
all_copiesZcurrent_revrCrDrYZcurrent_copies�parentZ
parent_revZremaining_childrenr*�	newcopies�childcopies�dest�source�prevr&Ztargetrev_items�tt�filenamerrrrp`s��











�



rpr�c
Cs�|��D]x\}}|�|�}|dur,|||<qt|||||�\}}	|	rp|tkr^||df||<q�||df||<q|tkr|||<q|S)a�merge two copies-mapping together, minor and major

    In case of conflict, value from "major" will be picked.

    - `isancestors(low_rev, high_rev)`: callable return True if `low_rev` is an
                                        ancestors of `high_rev`,

    - `ismerged(path)`: callable return True if `path` have been merged in the
                        current revision,

    return the resulting dict (in practice, the "minor" object, updated)
    Nr)rr�_compare_values�
PICK_MAJOR)
�minor�majorrwrYZ
current_merger�r�otherZpickZ	overwriterrrr��s



�
r�c	Cs�|\}}|\}}||kr tdfS|durJ|durJ|durJ||jvrJtdfS|durt|durt|durt||jvrttdfS|||�r�|dur�||jvr�tdfStdfSnV|||�r�|dur�||jvr�tdfStdfSn(|dur�tdfS|dur�tdfStdfSdS)z�compare two value within a _merge_copies_dict loop iteration

    return (pick, overwrite).

    - pick is one of PICK_MINOR, PICK_MAJOR or PICK_EITHER
    - overwrite is True if pick is a return of an ambiguity that needs resolution.
    FNT)�PICK_EITHERZsalvaged�
PICK_MINORr�Zmerged)	rYrwr�r�r�Zmajor_ttZmajor_valueZminor_ttZminor_valuerrrr��sF��������



r�cs,�j}|j��fdd�����fdd�}|S)aWreturn a function that return multiple data given a <rev>"i

    * p1: revision number of first parent
    * p2: revision number of first parent
    * p1copies: mapping of copies from p1
    * p2copies: mapping of copies from p2
    * removed: a list of removed files
    * ismerged: a callback to know if file was merged in that revision
    cs�|���fdd�}|S)NcsN|���vrdS�|}|j�|j�}d}|D]}|�jkr.|d7}q.|dkS)NFrrr�)rHZ_filelogrWZ	_filenodeZnullid)r"r#rWZ
nb_parents�n)�ctxr+rr�ismerged@s

z=_revinfo_getter_extra.<locals>.get_ismerged.<locals>.ismergedr)rEr�)r+)r�r�get_ismerged=sz+_revinfo_getter_extra.<locals>.get_ismergedcs:�|�\}}�|}|j\}}|��}|||||�|�fSr()Z_copiesZfilesremoved)rErCrDr��p1copies�p2copiesr��r�rWr+rrrXMs

z&_revinfo_getter_extra.<locals>.revinfo)rKrZ)r+r\rXrr�rru0s

rucs�i}���}|D�]P}|�|d�}	|	dur.i}	t||�D�]$\}
}||�\}}
}}}}||krjd}|}nd}|}|s��fdd�|��D�}|	}|r�|	��}t�|�D]:\}}|	�|�}|dur�|ddur�|d}||f||<q�|D]*}||vr�||	u�r|	��}|df||<q�|�|�}|du�r0|||<q:|dk�rJt||||�q:t||||�|||<q:qi}||��D] \}\}}|du�rt|||<�qt|S)zyversion of `_combine_changeset_copies` that works with the Google
    specific "extra" based storage for copy informationNrr�csi|]\}}�|�r||�qSrr)rfrrr.rr�
<dictcomp>msz3_combine_changeset_copies_extra.<locals>.<dictcomp>)	r�rr�	enumeraterrr	rr�_merge_copies_dict_extra)rxrr�rXrrwr�r�rgr*�ir,rCrDr�r�r�r�r�r�r�r�r�r�r&Zothercopiesr�r�rr.rrvWs\

�




	
��
rvc	Csv|��D]h\}}|�|�}|dur,|||<q|d}|d}|d|dkrNq||ksh|||�rh||�r|||<qdS)zrversion of `_merge_copies_dict` that works with the Google
    specific "extra" based storage for copy informationNrr)rr)	r�r�rwr�r�rr�Znew_ttZother_ttrrrr��s

���r�cCs^|dur|}|���|�}|��durLt||��||�}t|t|j|��}nt||||�}|S)z<find {dst@b: src@a} copy mapping where a is an ancestor of bN)r+�narrowmatchrErQrCr r-r>)r1r2rMrrNr*rrr�_forwardcopies�sr�cCs.|jj�dd�dkriSt||�}t|||�S)zfind renames from a to br6�	copytracesoff)r>r8r9r��_reverse_renames)r1r2rr*rrr�_backwardrenames�s
r�cCs@i}tt�|��D](\}}|r(||�s(q||vr2q|||<q|S)z>given copies to context 'dst', finds renames from that context)rLr	r)r*rrrgrrrrrr��s
r�c
Csv|j}|jjo|j�dd�}|r4|j�d||f�||ksD|rD|sHiS|��durz||��krz|rp|j�d�t||�S|�|�}||kr�|r�|j�d�t	|||d�}n�||kr�|r�|j�d�t
|||d�}n�|r�|j�d	�d}|��tkr�|}t	||�}t	||||d�}	t|�t|	�@}
|
D](}|�
|�|	�
|�k�r&||=|	|=�q&t|||�}t||	�}t|||�|S)
z5find {dst@y: src@x} copy mapping for directed comparer;r<s-debug.copies: searching copies from %s to %s
Ns$debug.copies: search mode: dirstate
s#debug.copies: search mode: forward
r.s$debug.copies: search mode: backward
s$debug.copies: search mode: combined
)r>r8r@rArBrErCr-Zancestorr�r�rrlrr�r r)
r��yrr+rBr1r*rMZx_copiesZy_copiesZ	same_keysrZx_backward_renamesrrr�
pathcopies�sP
�



�r�cCs�|r|r||krt�t�ifS|����}|��dur^|��|j��kr^tt||��t�ifS|j�dd�}t	�
|�dur�t�t�ifSt|�r�t||||�S|dkr�t
|||�r�t||||�St||||�St||||�SdS)a�
    Finds moves and copies between context c1 and c2 that are relevant for
    merging. 'base' will be used as the merge base.

    Copytracing is used in commands like rebase, merge, unshelve, etc to merge
    files that were moved/ copied in one merge parent and modified in another.
    For example:

    o          ---> 4 another commit
    |
    |   o      ---> 3 commit that modifies a.txt
    |  /
    o /        ---> 2 commit that moves a.txt to b.txt
    |/
    o          ---> 1 merge base

    If we try to rebase revision 3 on revision 4, since there is no a.txt in
    revision 4, and if user have copytrace disabled, we prints the following
    message:

    ```other changed <file> which local deleted```

    Returns a tuple where:

    "branch_copies" an instance of branch_copies.

    "diverge" is a mapping of source name -> list of destination names
    for divergent renames.

    This function calls different copytracing algorithms based on config.
    Nr6r�Fs
heuristics)�
branch_copiesr+r��noder)rCr-r8r9rZ	parseboolr:�_fullcopytracing�_isfullcopytraceable�_heuristicscopytracing)r+�c1�c2rMr�Zcopytracingrrr�mergecopies
s$!�r�cCsX|��dur|��}|��rT|��rT|j�dd�}t|�d|��|����}||kSdS)a�Checks that if base, source and destination are all no-public branches,
    if yes let's use the full copytrace algorithm for increased capabilities
    since it will be fast enough.

    `experimental.copytrace.sourcecommitlimit` can be used to set a limit for
    number of changesets from c1 to base such that if number of changesets are
    more than the limit, full copytracing algorithm won't be used.
    Nr6scopytrace.sourcecommitlimit�%d::%dF)rErCZmutabler8�	configintrJrx)r+r�rMZsourcecommitlimitZcommitsrrrr�Ss	�r�c	
Cs�||vr||vr�|||<nf||vr$n\||||krJt||||�sJdS||||ksn|�|�|�|�kr�|D]}	|||	<qrdSr()�_relatedrV)
r�dsts1�m1�m2r3r�rMr�renamedeleterrrr�_checksinglesidecopiesgs
"$r�c@s"eZdZdZddd�Zdd�ZdS)r�a	Information about copies made on one side of a merge/graft.

    "copy" is a mapping from destination name -> source name,
    where source is in c1 and destination is in c2 or vice-versa.

    "movewithdir" is a mapping from source name -> destination name,
    where the file at source present in one context but not the other
    needs to be moved to destination by the merge process, because the
    other context moved the directory it is in.

    "renamedelete" is a mapping of source name -> list of destination
    names for files deleted in c1 that were renamed in c2 or vice-versa.

    "dirmove" is a mapping of detected source dir -> destination dir renames.
    This is needed for handling changes to new files previously grafted into
    renamed directories.
    NcCsL|durin||_|durin||_|dur0in||_|durBin||_dSr(�rr��dirmove�movewithdir)�selfrr�r�r�rrr�__init__�szbranch_copies.__init__cCsd|j|j|j|jfS)NzJ<branch_copies
  copy=%r
  renamedelete=%r
  dirmove=%r
  movewithdir=%r
>r�)r�rrr�__repr__�s�zbranch_copies.__repr__)NNNN)�__name__�
__module__�__qualname__�__doc__r�r�rrrrr�|s�
r�c$s�|���|���|���t||�}t||�}|sB|sBt�t�ifSi}i}|��D]\}}	|�|	g��|�qR|��D]\}}	|�|	g��|�qvi}
i}i}i}
i}t|�t|�B}|D�]}	|�|	�}|�|	�}|�r�|�r�|	�v�rB|	�v�rBt|�}t|�}||@�r0||@D]}|	|
|<|	||<�qnt||B�||	<nD|	�v�r�|	�v�r�t|�}t|�}||@D]}|	|
|<|	||<�qnq�|�r�t	|	|���|||
|
�	q�|r�t	|	|���||||�	q�g������fdd���fdd�}�fdd�}�j
j�rf|�}|�}d}|�r4�j
�d|dd	�
|�f�|�rX�j
�d|d
d	�
|�f�t�}t�}|��D]}|�|��ql|
��D]}|�|��q�|��D]}|�|��q��j
�d�d|fd|ffD]�\}}|�s�qΈj
�d
|�t|�D]d}d}||
v�s||v�r|d7}||v�r.|d7}||v�r@|d7}�j
�d||||f��q��q�~~�j
�d�t�||
||�\}}t�||||�\} }!t|
|
||!�}"t||| |�}#|"|#|fS)a'The full copytracing algorithm which finds all the new files that were
    added from merge base up to the top commit and for each file it checks if
    this file was copied from another file.

    This is pretty slow when a lot of changesets are involved but will track all
    the copies.
    csR�sJ�������}�������}t||�}t||�}��||f��|Sr()r0r�rLrs)�idxZ	addedinm1Z	addedinm2�u1�u2)r`r�r�r3r+rr�_get_addedfiles�sz)_fullcopytracing.<locals>._get_addedfilescs�d�S)Nrrr�r�rr�<lambda>�rjz"_fullcopytracing.<locals>.<lambda>cs�d�S)Nrrrr�rrr��rjs  unmatched files in %ss
%s:
   %s
slocals
   sothersK  all copies found (* = to merge, ! = divergent, % = renamed and deleted):
sremotes   on %s side:
rj�*�!�%s    src: '%s' -> dst: '%s' %s
s!  checking for directory renames
)r/r�r�r�
setdefaultrqrlrrLr�r8r@rB�join�values�update�_dir_renames)$r+r�r�rM�copies1�copies2Zinversecopies1Zinversecopies2rrZcopy1�copy2ZdivergeZ
renamedelete1Z
renamedelete2Z
allsourcesr�Zdsts2Zu1fnZu2fnr�r��headerZrenamedeletesetZ
divergesetZdstsZsider*r&ZnoteZdirmove1Zmovewithdir2Zdirmove2Zmovewithdir1Zbranch_copies1Zbranch_copies2r)r�r`r�r�r3r+rr��s�





��	
���

�r�cCsjt�}i}t�|�D]r\}}t�|�t�|�}	}
|	|vr>qq|�|	�r^|�|
�r^|�|	�q|	|vr~||	|
kr~|�|	�q|
||	<q|D]}||vr�||=q�~|s�iifSdd�t�|�D�}|D]}|j�d|||f�q�t	|dd�}
i}|�D]f}||vr�|
D]T}|�
|��r
|||t|�d�}||v�rX|||<|j�d||f�q��q
q�||fS)a�Finds moved directories and files that should move with them.

    ctx: the context for one of the sides
    copy: files copied on the same side (as ctx)
    fullcopy: files copied on the same side (as ctx), including those that
              merge.manifestmerge() won't care about
    addedfilesfn: function returning added files on the other side (compared to
                  ctx)
    cSsi|]\}}|d|d�qS)�/r)rfrrrrrr�Srjz _dir_renames.<locals>.<dictcomp>s)   discovered dir src: '%s' -> dst: '%s'
T)�reverseNs'   pending file src: '%s' -> dst: '%s'
)rlr	rr�dirnameZhasdirrmr8rBrL�
startswithrJ)r+r�rZfullcopyZaddedfilesfnZinvalidr�rrZdsrcZddstr��dZdirmove_children_firstr�r&Zdfrrrr�,sL
�

��
r�cs.|��dur|��}���dur(����t�}|���|�d�������sf|j�d�t||���S�}|�kr�t|�	��dkr�|j�d�t||���S|�
|���|��}qji}t���}t
�|�D]\}}	|	�vr�|	||<q̇��fdd���fdd	�|D�}
i}|
�rt�t�}t�t�}
������D]:}tj�|�}tj�|�}||�|�|
|�|��q4|
D]�}tj�|�}tj�|�}||}|
|}||}��|�}|j�d
d�}t|�|k�r�|j�td�|t|�f��qt|D]$}|�|�}t||��r�|||<�q�qtt|�t|�ifS)
a}Fast copytracing using filename heuristics

    Assumes that moves or renames are of following two types:

    1) Inside a directory only (same directory name but different filenames)
    2) Move from one directory to another
                    (same filenames but different directory names)

    Works only when there are no merge commits in the "source branch".
    Source branch is commits from base up to c2 not including base.

    If merge is involved it fallbacks to _fullcopytracing().

    Can be used by setting the following config:

        [experimental]
        copytrace = heuristics

    In some cases the copy/move candidates found by heuristics can be very large
    in number and that will make the algorithm slow. The number of possible
    candidates to check can be limited by using the config
    `experimental.copytrace.movecandidateslimit` which defaults to 100.
    Nr�s?switching to full copytracing as base is not an ancestor of c2
r�s0switching to full copytracing because of merges
cs|�vo|�vo|�vSr(r)r&)rMr�r�rrr��rjz(_heuristicscopytracing.<locals>.<lambda>csg|]}�|�r|�qSrr)rfr&)�filtrrri�rjz*_heuristicscopytracing.<locals>.<listcomp>r6scopytrace.movecandidateslimitsBskipping copytracing for '%s', more candidates than the limit: %d
)rErCrlr/rxr8rBr�rJrWr�rHr�r	r�collections�defaultdictrr0�osr"�basenamer�rqZfilectxr��statusrr�r�)r+r�r�rMZchangedfilesr�r�ZcprrZmissingfilesr�ZbasenametofilenameZdirnametofilenamer&r�r�ZsamebasenameZsamedirnameZmovecandidates�f2Z
maxcandidates�	candidate�f1r)rMr�r�r�rr�sst�





��
��
r�cCs�||krdS|��|��}}zx|��|��}}|durBt|�}|durRt|�}|��|��}}||krvt|�}qR||kr�t|�}qR||kWSqRWnty�YdS0dS)aFreturn True if f1 and f2 filectx have a common ancestor

    Walk back to common ancestor to see if the two files originate
    from the same file. Since workingfilectx's rev() is None it messes
    up the integer comparison logic, hence the pre-step check for
    None (f1 and f2 can only be workingfilectx's initially).
    TNF)r!Zlinkrev�next�
StopIteration)r�r�Zg1Zg2Zf1rZf2rrrrr��s"	

r�c	Csht||�}|��}t|||�t|���D]\}}||vr*||=q*t�|�D]\}}||�|�qLdS)areproduce copies between base and ctx in the wctx

    Unlike mergecopies(), this function will only consider copies between base
    and ctx; it will ignore copies between base and wctx. Also unlike
    mergecopies(), this function will apply copies to the working copy (instead
    of just returning information about the copies). That makes it cheaper
    (especially in the common case of base==ctx.p1()) and useful also when
    experimental.copytrace=off.

    merge.update() will have already marked most copies, but it will only
    mark copies if it thinks the source files are related (see
    merge._related()). It will also not mark copies if the file wasn't modified
    on the local side. This function adds the copies that were "missed"
    by merge.update().
    N)r�rCrrrr	rZ
markcopied)	Zwctxr�rMZ
new_copiesr�r��__rrrrr�graftcopiess
r�)N)N)NN)N)8Z
__future__rr�r�Zi18nrr�r�rrFrrr	r
ZutilsrZrevlogutilsrr
rRZ
importrustr[rr r'r-r4r:rQr]rcr?rpr�r�r�r�r�rurvr�r�r�r�r�r�r�r��objectr�r�r�r�r�r�rrrr�<module>	sR	
!
	

	C&lr:'F

.F$
Gm!

Youez - 2016 - github.com/yon3zu
LinuXploit