^cy dZddlmZddlmZddlmZmZmZm Z m Z m Z m Z ddl mZmZe jZiZe jeZdZeddd ged ed fd d dedfd ddedfd ddedfgejzejzejzedejddZdS)z2pull, update and merge in one command (DEPRECATED))_)short)cmdutilerrorexchangehglockpycompat registrar)dateutilurlutilsships-with-hg-corefetchrrevs*a specific revision you would like to pullsREVeditNs invoke editor on commit messagess force-editors edit commit message (DEPRECATED)s switch-parentsswitch parents when mergingshg fetch [SOURCE]) helpcategorydefaultc p tj|}|d}|rtj||d<jj} |}n#tj $rd}YnwxYw|kr0tj tdtddx}}  }}tj|} fd| D} t%| dkr!tj tdt'jd ||d } t+j|| |td t'j| zd} |d rL fd |d D} n6#tj$r$td} tj | wxYwt5j| j} | d kr t;||d S|}jg|d}t%|dkrYt%|rJ|d kr+t+j |d t;||S t;||d Sfd|D}|r|d t+j!fd|D}t%|dkrH|tdt%|dz z t;||dS|s t;||d Sd} |r|dr |d }}nV|d }}|tdj"|tG|fzt+j!||}|td|"tG|fzt+j$|d} | stj%||p(dt'j&'z}|dp|d}tj(|d })||d|d|}|tdj"|tG|fz| t;||S#t;||wxYw) apull 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. sdateNs#working directory not at branch tips'use 'hg update' to check out branch tip)hintcjg|]/}t|dk-|0S)r)lenchildren).0headrepos -/usr/lib/python3/dist-packages/hgext/fetch.py zfetch..fs;MMM4Sd1D1D1F1F-G-G1-L-L$-L-L-LrsHmultiple heads in this branch (use "hg heads ." and "hg merge" to merge)rrspulling from %s rc:g|]}|S)lookup)rrevothers rrzfetch..us%BBBc S))BBBrsOother repository doesn't support revision lookup, so a rev cannot be specified.)headsc g|] }|k| Sr!r!)rnparents rrzfetch..s===Qfqrc g|] }|k| Sr!r!)rr( newparents rrzfetch..s:::!1 >>A>>>rs[not merging with %d other new branch heads (use "hg heads ." and "hg merge" to merge them) Fs switch_parentsupdating to %d:%s smerging with %d:%s )remindsAutomated merge with %srs force_editor)editeditformsuser)editors5new changeset %d:%s merges remote changes with local )*r byteskwargsgetr parsedatedirstatep1branch branchtiprRepoLookupErrorAbortrwlockr r bailifchanged branchheadsrr get_unique_pull_pathrpeerstatus hidepasswordCapabilityErrorrpullcgresultrelease changelog nodesbetweenupdatecleanr#rmerge logmessage removeauthurlgetcommiteditorcommit)uirsourceoptsdater5 branchnoder9r bheadspathrevserrmodheadsnewheads newchildren firstparent secondparentp2ctxmessageeditoptr/r(r+r$r)s ` @@@rfetchr_%s>P   % %D 88G  D 1 *400W ]    F ] ! ! # #F^^F++    k 4 5 5=>>    EDg yy{{d###!!&))MMMM6MMM v;;??+B +HdBGGJdD)) !())G,@,F,FFGGG < ' 'BBBBT&\BBB( ' ' '5k#&&&  '=uD999B q==L eG##F++n116(HEEaH x==A  #k"2"2 1~''y{1~66~ e{z eu>===+===   &#AI HT9 % % %::::x::: x==1   IIIx==1$ &   X eU R eM  0$% ,5x{\ ,4QK\  ,--~))+66k8J8JKL HT; ' ' '&E II)**eiikk5;N;N-OO   (5///C (T22*W-? -L-LL hhw''D488O+D+DG,'HMMMF gW fA IIKLL>%%a((%((34     eesR:BB$#B$"DV#*G?>V#?3H22%V#*A?V# BV#%V#:GV##V5)r)__doc__mercurial.i18nrmercurial.noder mercurialrrrrr r r mercurial.utilsr r rCcmdtablecommand testedwith commitopts commitopts2 remoteoptsCATEGORY_REMOTE_REPO_MANAGEMENTr_r!rrrls98  ,  ) H % % #       A; < < AfII   gtQQBCCD otQQ'J%K%KL aa(F&G&GH   A8%(MMM)(MMMr