\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 @sjjddst|jd}|rg|D]!} | tjkr7| ^q7}|syttdnt|} nttdt t t |jdg} t t t |jdg} t j jd| d | } |jd d}|dk rOt|}|d krOtjtd |qOnt|paj}t|pvtg}t t t |jd g}t t t |jdg}d|jdgD}|r || ks|| kr tjd||}|fd}|jtd|tjt||| \}}}|r tj| d| dtd|dk d|d|}|j||td}|jdd|}|jd| dj kr|jddqq ntj||t| d |\}}}jj!dt"||rtj| d| dtd|dk d|d|}|j||td}|jdd|}|jd| dj kr|jddqndS(Nt experimentaltnarrowservebrokenellipsesRsno 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 (#tuit configbooltAssertionErrortgetRtsupportedoutgoingversionst ValueErrorRtmaxtsortedtfiltertboolR tmatchtroottNonetintRtAborttsettheadsRtrevstnewpartt_CHANGESPECPARTRt_computeellipsist getbundlertTruetgeneratetFalsetaddparamt requirementstdebugtlen(tbundlerRtsourcet bundlecapstb2capsRGtcommonRt cgversionstvR4RRtnewmatchR t oldincludet oldexcludeR%R,tnewvisittnewfullt newellipsistpackertcgdatatpartt visitnodestrelevant_nodesR1((R+Rs@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pytgetbundlechangegrouppart_narrow6sp !!!   !!!  '  cC@st|jjtdj}t|jjtdj}tj|tj|tj |j j kr|j j j tj |j j n|j j||dS(Nt(RFtparamsR:t_SPECPART_INCLUDEt splitlinest_SPECPART_EXCLUDER tvalidatepatternsR tNARROW_REQUIREMENTRRQtaddt_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((RuRv((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pyt recordchanges(t__name__t __module__RxRy(((s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pyRts tbackupttopictwidentsetnewnarrowpats(RR'RFRt readexactlyR)R&thasnodeRnRRERt _bookmarkstdictR tstripR7tlistRMtuninterruptablet_widen_uninterrt __enter__t _widen_bundleR t safehasattrR( RqRrRtcltclkillst chunksignaltcktbmstoreRtt 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(((Rv(s@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pytsNsbundle:serror removing %s: %s ( RR7RtvfstnoteRtopenRt readbundletverboset pushbuffert isinstanceRt unbundle20t transactiont processbundletapplytjoinRMt popbuffertcloset undofilestunlinktOSErrorterrnotENOENTtwarnRt forcebytestrRt__exit__RC( RqRrRR7RRtftgentundovfstundofilete((Rvs@/usr/lib64/python2.7/site-packages/hgext/narrow/narrowbundle2.pythandlechangegroup_widens6      %#  +c@stjtdttj}d|ds2  F      ^! 2 )