-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/help.pyc

σ
tKOc@@sΖddlmZddlZddlmZmZmZmZm	Z	m
Z
mZddd„Z
dd„Zd„Zejjdedejƒejjd	ed
ejƒdefd„ƒYZdS(
i(tabsolute_importN(tcommandsterrorsthelp_topicstosutilstplugintuit	utextwrapc	C@s
|dkrtjjƒ}ntƒ}tj|ƒ}yx|j|ƒ}g}x8|dD],\}}|jd|j	|j
ƒfƒqYW|dd}|j|j|ƒƒWn&t
jk
rΦ|dkrΧ‚qΧnX|dk	r|jd|dj|ƒfƒndS(s0Write the help for the specific topic to outfileis%s%sis#'bzr %s' is an alias for 'bzr %s'.
t N(tNoneRt
ui_factorytmake_output_streamtHelpIndicest
_mod_commandst	get_aliastsearchtappendtprefixtget_help_topictwritet
get_help_textRtNoHelpTopictjoin(	ttopictoutfiletindicestaliasttopicstshadowed_termstindext	topic_objtsource((s//usr/lib/python2.7/dist-packages/bzrlib/help.pythelp's$	
cC@s5|dkrtjjƒ}n|jtdƒƒdS(sList all commandsRN(R	RR
RRt_help_commands_to_text(R((s//usr/lib/python2.7/dist-packages/bzrlib/help.pyt
help_commands@sc	C@s¨g}|dkrt}nt}ttjƒƒ}d„|Dƒ}g|D]'\}}|j|krJ||f^qJ}td„|Dƒƒ}d|d}	tjƒ}
|
dkrΏtj
}
n|
d}
xΟt|ƒD]Α\}}|jƒ}
|
dkrd}
n
d|
}
|j
ƒ}|r8|jddƒd	}nd}d
||||
f}tj|d|	d|
d
tƒ}x|D]}|j|dƒq|WqΦWdj|ƒS(s/Generate the help text for the list of commandsshidden-commandscs@s$|]}|tj|ƒfVqdS(N(R
tget_cmd_object(t.0tn((s//usr/lib/python2.7/dist-packages/bzrlib/help.pys	<genexpr>Oscs@s!|]\}}t|ƒVqdS(N(tlen(R$R%to((s//usr/lib/python2.7/dist-packages/bzrlib/help.pys	<genexpr>QsRits [%s]s
is	%-*s %s%stsubsequent_indenttwidthtbreak_long_wordsN(tTruetFalsetlistR
tall_command_namesthiddentmaxRtterminal_widthR	tdefault_terminal_widthtsortedtplugin_nameR tsplitRtwrapRR(RtoutR0tnamesRR%R'tshown_commandstmax_nametindentR*tcmd_namet
cmd_objectR5tcmd_helpt	firstlinet
helpstringtlinestline((s//usr/lib/python2.7/dist-packages/bzrlib/help.pyR!Gs<	4
	
	
RsBasic help for all commandsshidden-commandssAll hidden commandsRcB@s)eZdZd„Zd„Zd„ZRS(sœMaintainer of help topics across multiple indices.

    It is currently separate to the HelpTopicRegistry because of its ordered
    nature, but possibly we should instead structure it as a search within the
    registry and add ordering and searching facilities to the registry. The
    registry would probably need to be restructured to support that cleanly
    which is why this has been implemented in parallel even though it does as a
    result permit searching for help in indices which are not discoverable via
    'help topics'.

    Each index has a unique prefix string, such as "commands", and contains
    help topics which can be listed or searched.
    cC@s1tjƒtjƒtjƒtjƒg|_dS(N(RtHelpTopicIndexR
tHelpCommandIndexRtPluginsHelpIndextConfigOptionHelpIndextsearch_path(tself((s//usr/lib/python2.7/dist-packages/bzrlib/help.pyt__init__ˆs			cC@s{i}x-|jD]"}|j|jgƒj|ƒqWx>|jƒD]0\}}t|ƒdkrCtj|ƒ‚qCqCWdS(sAEnsure that the index collection is able to differentiate safely.iN(RHt
setdefaultRRtitemsR&RtDuplicateHelpPrefix(RItprefixesRRR((s//usr/lib/python2.7/dist-packages/bzrlib/help.pyt_check_prefix_uniquenesss cC@ss|jƒg}x@|jD]5}|jg|j|ƒD]}||f^q6ƒqW|sktj|ƒ‚n|SdS(sSearch for topic across the help search path.

        :param topic: A string naming the help topic to search for.
        :raises: NoHelpTopic if none of the indexs in search_path have topic.
        :return: A list of HelpTopics which matched 'topic'.
        N(RORHtextendt
get_topicsRR(RIRtresultRt_topic((s//usr/lib/python2.7/dist-packages/bzrlib/help.pyR™s
3(t__name__t
__module__t__doc__RJROR(((s//usr/lib/python2.7/dist-packages/bzrlib/help.pyRys
			(t
__future__RtsystbzrlibRR
RRRRRRR	R R"R!ttopic_registrytregistertSECT_HIDDENtobjectR(((s//usr/lib/python2.7/dist-packages/bzrlib/help.pyt<module>s	4	(



Copyright © 2017 || Recoded By Mr.Bumblebee