
    6hz                       S r SSKJr  SSKJr  SSKJr  SSKJrJ	r	J
r
JrJrJrJr  SSKJrJr  \R$                  r0 r\R(                  " \5      rSr\" SS	S
/ \" S5      \" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      4/\R,                  -   \R.                  -   \R0                  -   \" S5      \R2                  S9SS j5       rg)z2pull, update and merge in one command (DEPRECATED)    )annotations)_)short)cmdutilerrorexchangehglockpycompat	registrar)dateutilurlutils   ships-with-hg-core   fetch   rs   revs*   a specific revision you would like to pulls   REV    s   editNs    invoke editor on commit messagess   force-editors    edit commit message (DEPRECATED)s   switch-parents   switch parents when mergings   hg fetch [SOURCE])helpcategoryc                j   UR                  S5      nU(       a  [        R                  " U5      US'   UR                  R	                  5       nUR                  R                  5       n UR                  U5      nXW:w  a'  [        R                  " [        S5      [        S5      S9eS=p UR                  5       nUR                  5       n	[        R                  " U5        UR                  U5      n
U
 Vs/ s H&  n[!        X   R#                  5       5      S:X  d  M$  UPM(     n
n[!        U
5      S:  a  [        R                  " [        S5      5      e[$        R&                  " S	X5      n[(        R*                  " U[,        R.                  " U5      U5      nU R1                  [        S
5      [$        R2                  " UR4                  5      -  5        SnUS   (       a$   US    Vs/ s H  oR7                  U5      PM     nn[:        R<                  " XUS9R>                  nUS:X  a   [A        X5        gUR                  U5      nURB                  RE                  U/U5      S   n[!        U5      S:X  aK  [!        U5      (       a;  US   U:w  a%  [(        RF                  " UUS   5      [A        X5        $  [A        X5        gU Vs/ s H  nUU:w  d  M  UPM     nnUnU(       a  US   n[(        RH                  " UU5        U Vs/ s H  nUU:w  d  M  UPM     nn[!        U5      S:  a6  U R1                  [        S5      [!        U5      S-
  -  5         [A        X5        gU(       d   [A        X5        gSnU(       a  US   (       a  UUS   nnOHUS   UnnU R1                  [        S5      URB                  RK                  U5      [M        U5      4-  5        [(        RH                  " UU5        UU   nU R1                  [        S5      URK                  5       [M        U5      4-  5        [(        RN                  " USS9nU(       d  [        RP                  " U [,        R.                  " U5      5      =(       d'    S[$        RR                  " URU                  5       5      -  nUR                  S5      =(       d    UR                  S5      n[        RV                  " US	S9nURY                  UUS   US   US9nU R1                  [        S5      URB                  RK                  U5      [M        U5      4-  5        U[A        X5        $ ! [        R                   a    Sn GNf = fs  snf s  snf ! [        R8                   a"    [        S5      n[        R                  " U5      ef = fs  snf s  snf ! [A        X5        f = f)a  pull changes from a remote repository, merge new changes if needed.

This finds all changes from the repository at the specified path
or URL and adds them to the local repository.

If the pulled changes add a new branch head, the head is
automatically merged, and the result of the merge is committed.
Otherwise, the working directory is updated to include the new
changes.

When a merge is needed, the working directory is first updated to
the newly pulled changes. Local changes are then merged into the
pulled changes. To switch the merge order, use --switch-parent.

See :hg:`help dates` for a list of formats valid for -d/--date.

Returns 0 on success.
dateNs#   working directory not at branch tips'   use 'hg update' to check out branch tip)hintr      sH   multiple heads in this branch (use "hg heads ." and "hg merge" to merge)r   s   pulling from %s
revsO   other repository doesn't support revision lookup, so a rev cannot be specified.)heads   s[   not merging with %d other new branch heads (use "hg heads ." and "hg merge" to merge them)
Fswitch_parents   updating to %d:%s
s   merging with %d:%s
)reminds   Automated merge with %seditforce_editor)r   editformuser)editors5   new changeset %d:%s merges remote changes with local
)-getr   	parsedatedirstatep1branch	branchtipr   RepoLookupErrorAbortr   wlockr
   r   bailifchangedbranchheadslenchildrenr   get_unique_pull_path_objr	   peerr   byteskwargsstatushidepasswordloclookupCapabilityErrorr   pullcgresultrelease	changelognodesbetweenupdatecleanr   r   merge
logmessage
removeauthurlgetcommiteditorcommit)uireposourceoptsr   parentr%   
branchnoder)   r
   bheadsheadpathotherrevsr   errmodheadsnewheadsnewchildrenn	newparentfirstparentsecondparentp2ctxmessageeditoptr    s                               -/usr/lib/python3/dist-packages/hgext/fetch.pyfetchrZ   &   s   P 88FD))$/V]]F]]!!#F^^F+
 kk45=>
 	

 Ee

yy{d#!!&)#)M64S1D1D1F-G1-L$6Mv;?++B  //"Eh2248$?
		!()G,@,@,JJK;'59%[A[cS)[A ==D9BBq=H 	C ##F+nn116(HEaHx=A#k"2"21~'yy{1~6z 	w v 	q #.=+Qfq+=	#AIHHT9%':x!1	>Ax:x=1III x=1$	& T 	Q N 	I  O$,5x{\\,4QK\		,-~~))+6k8JKL HHT;'&EII)*eiik5;N-OO ((5/C((X-A-A$-GH *W-?-?		-LL  hhv&B$((>*BG,,'HMFGT&\4<OAIIKL>>%%a(%(34
  	]    
  N B(( '5 kk#&&', >
 ;f 	s   'T; (AV% 3#UU B:V% U" "U<U" >%V% 0A2V% ;V% ?
VV+V% >
V V :V% V% -GV% ;UUV% U" "6VV% %V2)s   default)__doc__
__future__r   mercurial.i18nr   mercurial.noder   	mercurialr   r   r   r	   r
   r   r   mercurial.utilsr   r   r8   cmdtablecommand
testedwith
commitoptscommitopts2
remoteoptsCATEGORY_REMOTE_REPO_MANAGEMENTrZ    r   rY   <module>ri      s   9 "     
 ,,


H
%
 #
 	 ;<fI	
 
gtQBCD	otQ'J%KL	a(F&GH    88%(J)(Jr   