\x89\x50\x4E\x47\x0D\x0A\x1A\x0A PNG  \x89\x50\x4E\x47\x0D\x0A\x1A\x0A  13\c@@sdZddlmZddlmZddlmZddlmZm Z m Z m Z m Z m Z mZmZmZmZmZmZmZdZiZejeZejZdejfdYZeZed d d d d edfgeddejd d dZeddddZeddddZ eddZ!eddddZ"dZ#ddZ$dZ%e%d S(!sjunified command to show various repository information (EXPERIMENTAL) This extension provides the :hg:`show` command, which provides a central command for displaying commonly-accessed repository data and views of that data. The following config options can influence operation. ``commands`` ------------ ``show.aliasprefix`` List of strings that will register aliases for views. e.g. ``s`` will effectively set config options ``alias.s = show `` for all views. i.e. `hg swork` would execute `hg show work`. Aliases that would conflict with existing registrations will not be performed. i(tabsolute_import(t_(tnullrev( tcmdutiltcommandstdestutilterrort formattertgraphmodt logcmdutiltphasestpycompatt registrartrevsett revsetlangtscmutilsships-with-hg-coret showcmdfunccB@s#eZdZdZdddZRS(s;Register a function to be invoked for an `hg show `.s%s -- %scC@s||_||_dS(sCalled with decorator arguments to register a show view. ``name`` is the sub-command name. ``func`` is the function being decorated. ``fmtopic`` is the topic in the style that will be rendered for this view. ``csettopic`` is the topic in the style to be used for a changeset printer. If ``fmtopic`` is specified, the view function will receive a formatter instance. If ``csettopic`` is specified, the view function will receive a changeset printer. N(t_fmtopict _csettopic(tselftnametfunctfmtopict csettopic((s0/usr/lib64/python2.7/site-packages/hgext/show.pyt _extrasetupCs N(t__name__t __module__t__doc__t _docformattNoneR(((s0/usr/lib64/python2.7/site-packages/hgext/show.pyR=stshowtTttemplatetsdisplay with templatetTEMPLATEtVIEWt helpcategorycC@s|jr=| r=td}tjtdd|ntj}|s|jd|jtd|jdx=t|j D])\}}|jdt j |j qW|jdtjtddtd n||krtjtd |dtd n|p'd}||}|jd|j rd |j } |j| i|d 6} |||| SWdQXnc|jrd |j} tj|| |} tj||| dt} |||| S|||SdS(sshow various repository information A requested view of repository data is displayed. If no view is requested, the list of available views is shown and the command aborts. .. note:: There are no backwards compatibility guarantees for the output of this command. Output may change in any future Mercurial release. Consumers wanting stable command output should specify a template via ``-T/--template``. List of available views: s2invoke with -T/--template to control output formats%must specify a template in plain modethintRsavailable views: s s%s sno view requesteds#use "hg show VIEW" to choose a viewsunknown view: %ss$run "hg show" to see available viewssshow%sR Ntbuffered(tplainRRtAborttshowviewt_tabletpagertwritetsortedtitemsR tsysbytesRRRRtlookuptemplateR tchangesettemplatertTrue(tuitrepotviewR R%tviewsRRtfnRtfmtreftspect displayer((s0/usr/lib64/python2.7/site-packages/hgext/show.pyRYs:    !         t bookmarksRc C@s7|j}t|sAt|tjs=|jtdndSg|jD]}||j^qN}|j }t d|D}t ||}xt |j D]\} }|j|jd|||jdd| |jd|j||j||jd| |kd |d |qWdS( s(bookmarks and their associated changesets(no bookmarks set) Ncs@s|]}t|VqdS(N(tlen(t.0tb((s0/usr/lib64/python2.7/site-packages/hgext/show.pys stctxtbookmarks%stnodetactivetlongestbookmarklentnodelen(t _bookmarksR=t isinstanceRt jsonformatterR,Rtvaluestrevt_activebookmarktmaxtlongestshortestR-R.t startitemtcontextthexfunctdata( R3R4R8tmarksRBtrevsRCt longestnameREtbm((s0/usr/lib64/python2.7/site-packages/hgext/show.pyt showbookmarkss"  )  %tstackRc@s|d}|jtkr4tjtdn|jtjkr`|jtddSt j ||}d}|dkr|j}|jh}nt |j d|}||}|jjtkr|j}nt}|j} xx| j|jgD]^} || }|jtjkr<Pn|j|jt|jdkrt}PqqWtt|dt}|rt |j d|j|} n t } t || Bt |gB} t|| } ytjd tjt}Wn#tjtjfk r.t}nXtj ||}tj!|d | d |fd }| r6ixB| D]:}| j"|gd |j}tt||ss: s so REs s:/s /s (s%d commits aheadtlabelsstack.commitdistances; shg rebase --source %s --dest %ssstack.rebasehints) s: : s (stack head) s stack.labels \ / s(multiple children) s | t@tos:/ s / s (stack base)(&RJRRR(RtphaseR tpublicR,Rt stackbaseRtsetRStp1tFalset changelogt descendantstaddR=tchildrenR2tlistR-RMRtfindcmdRttabletAmbiguousCommandtUnknownCommandRttemplateresourcest maketemplatert ancestorst enumerateRtflush(R3R4R;twdirctxtbaserevtbasectxt stackrevsR@tbranchpointattiptclRJtnewheadstallrevsREt haverebasettresR_theadRyt sourcectxt sortedheadstitsymbol((RcR^s0/usr/lib64/python2.7/site-packages/hgext/show.pyt showstacks                                s!_underway([commitage[, headage]])c C@s]tj|dd}d|kr.d|dtr(RtminlenR4(s0/usr/lib64/python2.7/site-packages/hgext/show.pys s(RnRL(R4RSR((RRR4s0/usr/lib64/python2.7/site-packages/hgext/show.pyRMs  cC@sttttjj}g}xPttjjD]9}|jtj d|j |tj|j fq:Wtj dt ddj jtj dj|ft dd_ dS(Ns %s %ss %s %s Ris (RLtmapR=R)R*tkeysR-RR tsysstrtljustt_origdoctcmdtableRtrstriptjoin(tlongesttentriesRa((s0/usr/lib64/python2.7/site-packages/hgext/show.pyt_updatedocstrings( N(&Rt __future__Rtmercurial.i18nRtmercurial.nodeRt mercurialRRRRRRR R R R R RRt testedwithRtcommandtrevsetpredicatet_funcregistrarbaseRR)tCATEGORY_CHANGE_NAVIGATIONRRRVRRRRRMR(((s0/usr/lib64/python2.7/site-packages/hgext/show.pyts.X    <2