³ò ÷$•Jc@sƒddklZddkZddkZddkZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk Z ddk Z ddkZddkZddkZddkZddkZddkZddkZd„Zd„Zd„Zd„Zd„Zdefd „ƒYZd „Zd „Zd „Zd „Z d„Z!e"ƒZ#d„Z$d„Z%dS(iÿÿÿÿ(t_NcCstittidƒƒdS(srun the command in sys.argviN(tsystexittdispatchtargv(((s%/sys/lib/python/mercurial/dispatch.pytrunscCszy4tiƒ}d|jo|idddƒnWn6tij o'}tiitdƒ|ƒdSnXt ||ƒS(s!run the command specified in argss --tracebacktuit tracebacktons abort: %s iÿÿÿÿ( t_uiRt setconfigtutiltAbortRtstderrtwriteRt _runcatch(targstutinst((s%/sys/lib/python/mercurial/dispatch.pyRs   c Cs0d„}x;d0D]3}tt|dƒ}|oti||ƒqqWyy>d|jotiƒnzt||ƒSWd|iƒXWn<d|jotiti ƒdƒn|i ƒ‚nXWnat i j o=}|i tdƒ|idd i|id ƒfƒnt ij o'}|i td ƒ|idƒnât ij op}|itijotd ƒ|i}ntd ƒ|i}|i tdƒ|ip|i|fƒndt ij o6}|i tdƒ|ip|i|ifƒn t ij o‹}|idoF|i tdƒ|id|id fƒti||idƒq,|i td ƒ|id ƒti|dƒn‡t ij o }|i tdƒ|ƒnYt ij o£}|i tdƒ|idƒt|id t ƒp|i d|id fƒq,|id p|i tdƒƒq,|i dt!i"|id ƒƒn¨t i#j o }|i tdƒ|ƒnzt i$j o|i tdƒƒnRt i%j o7}|i tdƒ|idƒti|dƒn t!i&j o }|i tdƒ|ƒnßt'j oŠ}t(|ƒi)ƒd}|i tdƒ|ƒ|di)ƒjo|i tdƒƒq,|di)ƒjo|i tdƒƒq,nJt*j o@}t+|d ƒo|i tdƒ|ƒq,t+|d!ƒoBy|i,id }Wn|i,}nX|i td"ƒ|ƒq,t+|d#ƒo<|idti-jo%|i.o|i td$ƒƒq*q,t|d%dƒoXt|d&dƒo'|i tdƒ|i|ifƒq*|i tdƒ|iƒq,‚nÿt/j o]}t|d&dƒo'|i tdƒ|i|ifƒq,|i tdƒ|iƒn—t0j oqy|i td'ƒƒWq,t*j oD}|iti-jo%|i.o|i td(ƒƒq q‚q,Xnt1j o|i td)ƒƒnöt2j o}|i3SnÛt4i j o'}|i tdƒ|idƒn¦|i td*ƒƒ|i td+ƒƒ|i td,ƒƒ|i td-ƒt!i5ƒƒ|i td.ƒd/ig}t6i6ƒD]} || dq~ƒƒ‚nXdS(1NcWs ti‚dS(N(terrortSignalInterrupt(R((s%/sys/lib/python/mercurial/dispatch.pyt catchtermstSIGBREAKtSIGHUPtSIGTERMs --debuggeris&hg: command '%s' is ambiguous: %s it ishg: %s s%timed out waiting for lock held by %sslock held by %ssabort: %s: %s sabort: could not lock %s: %s s hg %s: %s t shortlists abort: %s! s abort: %ss %r s empty string s %r skilled! shg: unknown command '%s' s abort: %s iÿÿÿÿs#abort: could not import module %s! s mpatch bdiffs((did you forget to compile extensions?) tzlibs"(is your Python install correct?) tcodetreasonsabort: error: %s Rs broken pipe tstrerrortfilenames interrupted! s broken pipe sabort: out of memory s1** unknown exception encountered, details follow s;** report bug details to http://mercurial.selenic.com/bts/ s** or mercurial@selenic.com s*** Mercurial Distributed SCM (version %s) s** Extensions loaded: %s s, (RsSIGHUPsSIGTERM(7tgetattrtsignaltNonetpdbt set_tracet _dispatchtflusht post_mortemRtexc_infoRRtAmbiguousCommandtwarnRRtjoint ConfigErrortLockHeldterrnot ETIMEDOUTtlockertdescRtLockUnavailableRt ParseErrortcommandsthelp_t RepoErrort ResponseErrort isinstancet basestringR tellipsist RevlogErrorRtUnknownCommandR t ImportErrortstrtsplittIOErrorthasattrRtEPIPEt debugflagtOSErrortKeyboardInterruptt MemoryErrort SystemExitRtsockettversiont extensions( RRRtnametnumRRtmt_[1]tx((s%/sys/lib/python/mercurial/dispatch.pyRsÔ     )"."+% ' ''   "6cCs\xUtiitii|dƒƒp2|tii|ƒ}}||jodSqqW|S(Ns.hg(tostpathtisdirR+tdirnameR"(tptoldp((s%/sys/lib/python/mercurial/dispatch.pyt _findrepoœs %  cCst|dƒo |iSngS(NR(RAR(tfn((s%/sys/lib/python/mercurial/dispatch.pyt aliasargs¤s tcmdaliascBseZd„Zd„ZRS(c s¥|ˆ_|ˆ_gˆ_gˆ_dˆ_tˆ_y#tiˆi|tƒtˆ_ Wnt i j ot ˆ_ nXˆip ‡fd†}|ˆ_ dSntiˆiƒ}|idƒ‰g}d}yktiˆ|t ƒd\ˆ_ ˆ_ˆ_tˆi ƒ|ˆ_ˆtiidƒjo t ˆ_nWnat i j o"‡‡fd†}|ˆ_ n2t ij o"‡‡fd†}|ˆ_ nXdS(Ntcs|itdƒˆiƒdS(Nsno definition for alias '%s' i(R*RRK(RR(tself(s%/sys/lib/python/mercurial/dispatch.pyRW¹siiRcs$|itdƒˆiˆfƒdS(Ns,alias '%s' resolves to unknown command '%s' i(R*RRK(RR(tcmdR[(s%/sys/lib/python/mercurial/dispatch.pyRWËscs$|itdƒˆiˆfƒdS(Ns.alias '%s' resolves to ambiguous command '%s' i(R*RRK(RR(R\R[(s%/sys/lib/python/mercurial/dispatch.pyRWÑs(RKt definitionRtoptsthelptTruetnorepotcmdutiltfindcmdtshadowsRR<tFalseRWtshlexR?tpopRXR4R)(R[RKR]tcmdtableRWRR^R_((R\R[s%/sys/lib/python/mercurial/dispatch.pyt__init__ªs<         + cOs;|io|itdƒ|iƒn|i|||ŽS(Nsalias '%s' shadows command (RdtdebugRRKRW(R[RRR^((s%/sys/lib/python/mercurial/dispatch.pyt__call__×s (t__name__t __module__RiRk(((s%/sys/lib/python/mercurial/dispatch.pyRY©s -cCspxi|idƒD]X\}}t|||ƒ}||i|if||<|iotid|7_qqWdS(Ntaliass %s(t configitemsRYR^R_RaR4(RRhRnR]taliasdef((s%/sys/lib/python/mercurial/dispatch.pyt addaliasesÝs   c Csñh}h}yti|ti|ƒ}Wn-tiij o}tid|ƒ‚nX|o¡|d|d}}ti |ti |i ddƒƒ\}}|d}t |dƒ|}|i d|ƒ}|ot i|ƒ|}nt|dƒ} n d}g} x>tiD]3} | i| d| d|| d| dfƒqWyti|| |tƒ}Wn-tiij o}ti||ƒ‚nXx0tiD]%} | d} || || <|| =q£W||o |dpd|||fS(NiiRtstricttdefaultsi(t fancyoptsR4t globaloptstgetoptt GetoptErrorRR3R"RbRcttabletconfigRXRfR?tlisttappendR`( RRtoptionst cmdoptionsRR\taliasestiRstctotn((s%/sys/lib/python/mercurial/dispatch.pyt_parseçs>  1   cCs«x¤|D]œ}ya|iddƒ\}}|iddƒ\}}| p| o t‚n|i|||ƒWqttfj o titdƒ|ƒ‚qXqWdS(s0parse the --config options from the command linet=it.smalformed --config option: %sN(R?t IndexErrorR t ValueErrorR R R(RRytcfgRKtvaluetsection((s%/sys/lib/python/mercurial/dispatch.pyt _parseconfigs c Cs+y|idƒ}Wntj ot|ƒ}nXg}|D]$}t|ƒdjo ||q@q@~}g}d}x«||jo|||joA|d|joPn||=|i|i|ƒƒ|d8}q|||d |jo(|i|i|ƒdƒ|d8}q||d7}q|W|S(s¥Return list of values for an option (or aliases). The values are listed in the order they appear in args. The options and values are removed from args. s--iii(tindexR‡tlenR{Rg(R~RtargcountRNtoptt shortoptstvaluestpos((s%/sys/lib/python/mercurial/dispatch.pyt _earlygetopts&8c Cs‚ti||d|tddi|ƒƒ}|o|Snt||||ƒ}ti||d|tddi|ƒd|ƒ|S(Nspre-%sRRspost-%stresult(thookReR+t _runcommand(tluitrepoR\tfullargsRR|tdtret((s%/sys/lib/python/mercurial/dispatch.pyt runcommand8s+(cs'tˆtdgˆƒƒtdgˆƒ}|oti|dƒnttiƒƒpd}|p ˆ}n|oIy/ˆiƒ}|itii |ddƒƒWqÁt j oqÁXntddd gˆƒ}|oB|i |dƒ}ˆiƒ}|itii |ddƒƒnt i |ƒxçt i ƒD]Ù\}}|tjoq<nt|d dƒ}|o |ƒnt|d hƒ} g} | D]!} | tijo | | qq~ } | o*ˆitd ƒ|d i | ƒfƒntii| ƒti|ƒq<Wt|tiƒ|iddƒ} | o | t_nˆ}t|ˆƒ\} ‰‰}‰|dotitdƒƒ‚n|dotitdƒƒ‚n|dotitdƒƒ‚n|do|dt_n|do|dt_n|do8d„‰ˆƒ‰‡‡‡fd†}ti |ƒn|dp|dp |domˆi!ddt"t#|dƒƒƒˆi!ddt"t#|dƒƒƒˆi!ddt"t#|dƒƒƒn|doˆi!dddƒn|d oˆi!dd!d"ƒn|d#oti$ˆ| |d$ƒSn8|d$oti%ˆƒSn| pti$ˆd%ƒSnd}| ti&i'ƒjo6ybt(i)ˆd&|ƒ}|i*‰|i+ƒptitd'ƒ|ƒ‚nˆi!d(d)|i,ƒWn½t-i.j o®| ti/i'ƒjo‘ˆoc| o[t0tˆƒ}|d*}|o7|i1|ƒt2|ƒjot3ˆd|g|ƒSq›n|pt-i.td+ƒƒ‚n‚qÇnXˆi4d*|ƒn|oˆid,ƒn‡‡‡‡fd-†}t5||| |ˆ||ƒS(.Ns--configs--cwdiÿÿÿÿRZs.hgthgrcs-Rs --repositorys--repotextsetupRhs&extension '%s' overrides commands: %s RRtfallbackencodingRys'Option --config may not be abbreviated!tcwds$Option --cwd may not be abbreviated!t repositoryssOption -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo!tencodingt encodingmodettimecSsPtiƒ}|ddjo/|d|d|d|dtiƒf}n|S(Nigiiii(RPttimesR¤tclock(tt((s%/sys/lib/python/mercurial/dispatch.pyt get_timess /c soˆƒ}ˆitdƒ|dˆd|dˆd|dˆd|dˆd|dˆdfƒdS(Ns4Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f) iiiii(R*R(R§(tsR¨R(s%/sys/lib/python/mercurial/dispatch.pyt print_time“s tverboseRjtquietRRtnoninteractivet interactivetoffR_RIRRQsrepository '%s' is not localtbundlet mainreporootis5There is no Mercurial repository here (.hg not found)swarning: --repository ignored cstiˆƒˆˆˆŽS((R tchecksignature((R}RRtfunc(s%/sys/lib/python/mercurial/dispatch.pytÀs(6R‹R“RPtchdirRVtgetcwdtcopyt readconfigRQR+R@t expandpathRJtloadallt_loadedR R"R4RxR*RtupdatetaddRqRyR¢RŸRƒR R R£tatexittregisterR R>tboolR5tversion_RaR?thgR¡RtlocaltrootRR6t optionalrepotmaptcountRR%tinsertRœ(RRR RQR—trpathRKtmoduleRžRhRNR\t overridestfallbackR™R|RªR˜trepostguessRš((RR¨R³R©RR}s%/sys/lib/python/mercurial/dispatch.pyR%Ds¸  #  #    5          !##'       # cs҇fd†}|do|iddddƒ}|djo!|itdƒ|ƒd}n|idd ƒ}|o4tii|ƒ}|i|ƒ}t|d ƒ}n ti }yd d k l } Wn(t j ot itd ƒƒ‚nX| iƒ} | idtƒz |ƒSWd| iƒ|djo,d dk} | i| ƒ} | i|ƒn<| i| iƒƒ} | iƒ| iddd|ddƒ|o|iƒnXn|ƒSdS(Ncs@y ˆƒSWn.tij otiˆtdƒƒ‚nXdS(Nsinvalid arguments(RtSignatureErrorR3R((R\tcmdfunc(s%/sys/lib/python/mercurial/dispatch.pyt checkargsÄs tprofilet profilingtformattdefaultttextt kcachegrinds-unrecognized profiling format '%s' - Ignored toutputtwbiÿÿÿÿ(tlsprofsYlsprof not available - install from http://codespeak.net/svn/user/arigo/hack/misc/lsprof/tsubcallsttopi tfiletclimiti(stextR×(RyR*RRPRQt expanduserR¹topenRR t mercurialRÚR=R R tProfilertenableR`tdisabletlsprofcalltreet KCacheGrindRØtStatstgetstatstsorttpprinttclose(RR|R\RÐRÑRÔRØRQtostreamRÚRTRåtcalltreetstats((R\RÐs%/sys/lib/python/mercurial/dispatch.pyR–ÃsB           (&ti18nRRPRR¾R!R#RHR.RfR¤R R4RÂRtRJR•RRbR¢RR RRRRVRXtobjectRYRqRƒR‹R“RœtsetR»R%R–(((s%/sys/lib/python/mercurial/dispatch.pyss$lT     4 (