\x89\x50\x4E\x47\x0D\x0A\x1A\x0A PNG  \x89\x50\x4E\x47\x0D\x0A\x1A\x0A  13\c @@sddlmZddlZddlZddlmZddlmZmZm Z m Z m Z m Z m Z mZmZmZmZmZmZmZmZmZmZmZmZmZiZejeZdZdZdZdZ d Z!ej"e d e!d Z#d Z$d Z%edddgedfddgedfddgedfdddedfddgedfdde&edfdde&edfge j'edde(dd Z*dS(!i(tabsolute_importN(t_(tbundle2tcmdutiltcommandst discoverytencodingterrortexchanget extensionsthgtmerget narrowspectnodetpycompatt registrartrepairt repositorytrepoviewtsparsetutiltwireprototypescC@s1tjtjdt}|djdddtdf|djdddtdf|djdddtd fd tjkr|djdd gtd f|djdd gtdfntjtjdt }|djdddtdftjtjdt dS(s@Wraps user-facing mercurial commands with narrow-aware versions.tcloneittnarrows%create a narrow clone of select filestdepths0limit the history fetched by distance from headsR sread narrowspecs from fileRtincludes&specifically fetch this file/directorytexcludes2do not fetch this file/directory, even if includedtpulltarchiveN( R t wrapcommandRttabletclonenarrowcmdtappendtNoneRtenabledt pullnarrowcmdtarchivenarrowcmd(tentry((sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowcommands.pytsetup's"  c @stjtj}d}|r6tjjtj|}|j t d|ytj |}Wn>t k r} t jt d|tj| jfnXtj||d\} } } | rt jt dntj| tj| td<dj| dj| ndrgfd} tjtd | }n|!||||tjSWd QXd S( sAWraps clone command, so 'hg clone' first wraps localrepo.clone().R sreading narrowspec from '%s' s%cannot read narrowspecs from '%s': %sRs9cannot specify other files using '%include' in narrowspecRRc@s1|||jdr-d|dssdescendants(%ln)tvisiblec3@s!|]}jj|VqdS(N(t changelogR (Rotr(RB(sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowcommands.pys ssTThe following changeset(s) or their ancestors have local changes not on the remote: i s%s s*...and %d more, use --verbose to list all slocal changes foundthints*use --force-delete-local-changes to ignoret.s(::%n) - %ln + nullttopicRsdata/iismeta/itallt narrowings deleting %s (2R tmatchtroott unfilteredRtfindcommonoutgoingR5Rt itertoolstchaintmissingtexcludedtanytfilesR!trevsRt filterrevstlisttverbosetlenR tshortRR8tuninterruptableRqtmaxR tcleanRtstriptstoret datafilest startswithtsortedRtdirsR=tvisitdirtFalset destroyingt transactionRetsvfsR3t markremovedRmt setnarrowpatst destroyed(RARBRZRnRfRgRhRitforcetunfitoutgoingt localnodestnt revstostript hiddenrevstvisibletostriptmaxnodesRrttostripturevttodeleteRltf2tsizetfiletdirRRtdtvisit((RkRjRBsA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowcommands.pyt_narrows  ) ! %    &     c@stjj}tj|jk} fd} tjtd| } fd} | _ it d6} |j Z|d}| rLj }|j |j}}|j|jtjtjWdQX| 7jj| dtj|d|WdQXWdQX|j|j||WdQXn|jW}|jd i|d 6|d 6d 6d 6dd6|d6gd6t d6j}WdQXjdHjj| d*fd}tj|d|WdQXWdQXj ddjD}|dj}djj|}xN|j D]@\}}|j kr]|||j!|t fdfq]q]Wt"j#|dddddt t"j%|dt WdQXdS( Nc@s%||||d<|d3sttransactiongettercS@si|]}g|qS(((Rotk((sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowcommands.pys 8s s!a am f g cd dc r dm dg m e k p prtgRtsadd from widened narrow clonetwctxtmctxt overwritet branchmerge(Rs all-warnings(&R RxRyRR\R[R R?RRRRRbtp1tp2t parentchanget setparentsR R^RAtconfigoverrideRtcommandexecutort callcommandtresultRRt processbundletsplitR!tmanifesttmatchest iteritemstflagsR t applyupdatesR"t recordupdates(RARBRZRnRfRgRhRiRktellipsesremoteR-RDRt overridesR]tdsRRtetbundlettgettertactionst addgactiontmfRltfn((RiRhRBRsA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowcommands.pyt_widens\        "    ttrackedRt addincludesnew paths to includet removeincludesold paths to no longer includet addexcludesnew paths to excludes import-rulessimport narrowspecs from a filet removeexcludesold paths to no longer excludetclears*whether to replace the existing narrowspecsforce-delete-local-changess/forces deletion of local changes when narrowings[OPTIONS]... [REMOTE]t inferrepocO@s tj|}tj|jkr8|jtddS|drY|jtddS|jd}|r>y.tj j t j |}t j|}Wn>tk r}tjtd|t j|jfnXtj||d\} } } | rtjtdn|d j| |d j| ntj|d } tj|d } tj|d }tj|d }| p|}| p|}| o| }|r|j\}}|jd |jd|}xPt|D]B}|j|jddddd|jdd|ddqWxPt|D]B}|j|jddddd|jdd|ddqDW|jdS|j c|j!Pt"j#||j$|pd}t%j&|\}}|j'tdt j(|t%j)|||}|rQt*j+|j,krQtjtdnt-j.||}|j\}}|r|| }||B}t/|||||||||d |}|}n|r|| B}||}t0||||||||nWdQXWdQXdS(s<show or change the current narrowspec With no argument, shows the current narrowspec entries, one per line. Each line will be prefixed with 'I' or 'X' for included or excluded patterns, respectively. The narrowspec is comprised of expressions to match remote files and/or directories that should be pulled into your client. The narrowspec has *include* and *exclude* expressions, with excludes always trumping includes: that is, if a file matches an exclude expression, it will be excluded even if it also matches an include expression. Excluding files that were never included has no effect. Each included or excluded entry is in the format described by 'hg help patterns'. The options allow you to add or remove included and excluded expressions. If --clear is specified, then all previous includes and excludes are DROPPED and replaced by the new ones specified to --addinclude and --addexclude. If --clear is specified without any further options, the narrowspec will be empty and will not match any files. sLThe narrow command is only supported on respositories cloned with --narrow. iRs)The --clear option is not yet supported. t import_ruless%cannot read narrowspecs from '%s': %sRsJincluding other spec files using '%include' is not supported in narrowspecRRRRRR5s%s tItlabelsnarrow.includedtpats%s tXsnarrow.excludeditdefaultscomparing with %s s%server does not support narrow clonestforce_delete_local_changesN(1RR/RRLRMtwarnRR(R1R2R3RR4RR6R7RR8R9R:RR;R>R t parsepatternsRNtpagert formatterRt startitemtwritetendtwlocktlockRt bailifchangedt expandpathR tparseurlR5t hidepasswordtpeerRRYR[RtfindcommonincomingRR(RARBt remotepathtpatsR,tnewrulesRFRGRHRVRWRKt addedincludestremovedincludest addedexcludestremovedexcludesRRwt only_showRRtfmtiturltbranchesRZRnRfRgRhRi((sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowcommands.pyt trackedcmdFs$                  (+t __future__RR|R1tmercurial.i18nRt mercurialRRRRRRRR R R R R RRRRRRRRRtcommandR'R R$R%Rat wrapfunctionRmRRRt remoteoptsR=R"R(((sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowcommands.pyts:    (      Q J