\x89\x50\x4E\x47\x0D\x0A\x1A\x0A PNG  \x89\x50\x4E\x47\x0D\x0A\x1A\x0A  13\c@@ssddlmZddlZddlZddlmZddlmZmZddl m Z m Z m Z m Z mZmZmZmZmZmZddlmZdZdZed Zed Zd Zd Zd ZdZdZdZej eZ!ej eZ"dZ#dddddZ%e j&eeefdZ'e j&edZ(dZ)dZ*dS(i(tabsolute_importN(t_(tbintnullid( tbundle2t changegroupterrortexchanget extensionst narrowspectrepairt repositorytutiltwireprototypes(t stringutiltnarrowt narrowhgacls :changespecs:spectincludetexcludetKILLtDONEs >20s20s20sls>20s20s20s20slcK@s |||}dg|t<|S(Ntv0(t NARROWCAP(torigtrepotkwargstcaps((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pytgetrepocaps_narrow0s c @s|jd}|rmg|D]!} | tjkr| ^q}|s^ttdnt|} nttdttt|jdg} ttt|jdg} t j j d| d| } |jdd}|dk r4t |}|d kr4tjtd |q4nt|pFj}t|p[tg}ttt|jd g}ttt|jd g}d |jdgD}|r|| ks|| krtjd||}|fd}|jtd|tjt||| \}}}|rtj| d| dtd|dk d|d|}|j||td}|jdd|}|jd| djkr|jddqqntj||t| d|\}}}jjdt ||rtj| d| dtd|dk d|d|}|j||td}|jdd|}|jd| djkr|jddqndS(NRsno common changegroup versionsYserver does not advertise changegroup version, can't negotiate support for ellipsis nodest includepatst excludepatsRRtdepthisdepth must be positive, got %dtoldincludepatstoldexcludepatscS@sh|]}t|qS((R(t.0tn((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pys Ts tknowns %ln & ::%lnc3@s0x$D]}tVjj|VqWtVdS(N(t_KILLNODESIGNALt changelogtnodet _DONESIGNAL(tr(tdeadrevsR(s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pytgenkillsns tdatatmatchertellipsestshallowt ellipsisrootst fullnodest narrow_widentversiont treemanifestt1sFound %d relevant revs (!tgetRtsupportedoutgoingversionst ValueErrorRtmaxtsortedtfiltertboolR tmatchtroottNonetintRtAborttsettheadsRtrevstnewpartt_CHANGESPECPARTRt_computeellipsist getbundlertTruetgeneratetFalsetaddparamt requirementstuitdebugtlen(tbundlerRtsourcet bundlecapstb2capsRBtcommonRt cgversionstvR2RRtnewmatchRt oldincludet oldexcludeR#R*tnewvisittnewfullt newellipsistpackertcgdatatpartt visitnodestrelevant_nodesR/((R)Rs@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pytgetbundlechangegrouppart_narrow6sn !!!   !!!  '  cC@st|jjtdj}t|jjtdj}tj|tj|tj |j j kr|j j j tj |j j n|j j||dS(Nt(RAtparamsR5t_SPECPART_INCLUDEt splitlinest_SPECPART_EXCLUDER tvalidatepatternsR tNARROW_REQUIREMENTRRLtaddt_writerequirementst setnarrowpats(toptinpartRR((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pyt_handlechangespec_2s!!  c C@sf|j}|j}t}tj|d}x{|tkr|tkr|tj|d}|j|r|j|qnt j t d|tj|d}q0W|rC|j }dt fdY}||_ tj|j|t|dtdd} ||_ | rC|jj|_|jj| |_qCntj|d rb|jndS( Niis)unexpected changespec node chunk type: %st dummybmstorecB@seZdZdZRS(cS@sdS(N((tselfRttrtchanges((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pyt applychangesscS@sdS(N((RqRr((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pyt recordchanges(t__name__t __module__RtRu(((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pyRps tbackupttopictwidentsetnewnarrowpats(RR%RARt readexactlyR'R$thasnodeRjRR@Rt _bookmarkstdictR tstripRMtlistRHtuninterruptablet_widen_uninterrt __enter__t _widen_bundleR t safehasattrR{( RmRnRtcltclkillst chunksignaltcktbmstoreRpt chgrpfile((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pyt_handlechangespecs2      !   c @s|j}|j}|j}|`|j}|jtd|j|d}ztj||||}|j s|j nt |t j r|jd#t j||fdWdQXn#|j|dd|j|t|j s|jnWd|jXx|jD]w\}} y|j| Wqtk r} | jtjkr|jtd|j| tj| fqqXqW|jjddd|j|dS(sFChangegroup exchange handler which restores temporarily-stripped nodessadding branch trbRc@sS(N(((Rr(s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pytsNsbundle:serror removing %s: %s ( RRMRtvfstnoteRtopenRt readbundletverboset pushbuffert isinstanceRt unbundle20t transactiont processbundletapplytjoinRHt popbuffertcloset undofilestunlinktOSErrorterrnotENOENTtwarnRt forcebytestrRt__exit__R>( RmRnRRMRRtftgentundovfstundofilete((Rrs@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pythandlechangegroup_widens6      %#  +c@stjtdttj}d|dRbt parthandlerRoRRR(((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pyts2  F      ^! 2 )