-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
&´ýNc@@sdZddlmZddlmZeeƒdƒddlmZddlm	Z	m
Z
d„Zdefd	„ƒYZd
S(s>Commands for generating snapshot information about a bzr tree.i(tabsolute_import(tlazy_imports
from bzrlib import (
    branch,
    errors,
    version_info_formats,
    workingtree,
    )
from bzrlib.i18n import gettext
(tCommand(tOptiontRegistryOptioncC@sVytj|ƒSWn>tk
rQtjƒ}tjtdƒj||ƒƒ‚nXdS(sÂConvert a string passed by the user into a VersionInfoFormat.

    This looks in the version info format registry, and if the format
    cannot be found, generates a useful error exception.
    s:No known version info format {0}. Supported types are: {1}N(tversion_info_formatstget_buildertKeyErrortget_builder_formatsterrorstBzrCommandErrortgettexttformat(Rtformats((s;/usr/lib/python2.7/dist-packages/bzrlib/cmd_version_info.pyt_parse_version_info_format%s
tcmd_version_infocB@s°eZdZedddeddƒeddd	ƒed
ddƒeddd
ƒedddƒeddeddƒdgZdgZdZ	ddeeeeddd„ZRS(s&Show version information about this tree.

    You can use this command to add information about version into
    source code of an application. The output can be in one of the
    supported formats or in a custom format based on a template.

    For example::

      bzr version-info --custom \
        --template="#define VERSION_INFO \"Project 1.2.3 (r{revno})\"\n"

    will produce a C header file with formatted string containing the
    current revision number. Other supported variables in templates are:

      * {date} - date of the last revision
      * {build_date} - current date
      * {revno} - revision number
      * {revision_id} - revision id
      * {branch_nick} - branch nickname
      * {clean} - 0 if the source tree contains uncommitted changes,
                  otherwise 1
    RsSelect the output format.tvalue_switchest
lazy_registrysbzrlib.version_info_formatstformat_registrytallthelps!Include all possible information.scheck-cleansCheck if tree is clean.sinclude-historysInclude the revision-history.sinclude-file-revisionss(Include the last revision for each file.ttemplatettypesTemplate for the output.trevisions	location?texactc	
C@sf|r0t|ƒdkr0tjtdƒƒ‚n|dkrEd}n|dkrctjjƒ}nytj	j
|ƒd}	Wn,tjk
r«tj
j|ƒ}
d}	n
X|	j}
|rÐt}t}t}n|rút}t}d|krút}qún|dk	r|dj|
ƒ}nd}||
d|	d|d|d	|d
|d|ƒ}|j|jƒdS(Nis@bzr version-info --revision takes exactly one revision specifiert.is{clean}tworking_treetcheck_for_cleantinclude_revision_historytinclude_file_revisionsRtrevision_id(tlenR	R
RtNoneRRtgettworkingtreetWorkingTreetopen_containingt
NoWorkingTreetbranchtBranchtopentTruetas_revision_idtgeneratetoutf(
tselftlocationRRtcheck_cleantinclude_historyRRRtwttbRtbuilder((s;/usr/lib/python2.7/dist-packages/bzrlib/cmd_version_info.pytrun^s>	
		(sbzrlib.version_info_formatssformat_registryN(
t__name__t
__module__t__doc__RR)Rtstrt
takes_optionst
takes_argst
encoding_typeR tFalseR4(((s;/usr/lib/python2.7/dist-packages/bzrlib/cmd_version_info.pyR4s(					N(
R7t
__future__Rtbzrlib.lazy_importRtglobalstbzrlib.commandsRt
bzrlib.optionRRRR(((s;/usr/lib/python2.7/dist-packages/bzrlib/cmd_version_info.pyt<module>s		

Copyright © 2017 || Recoded By Mr.Bumblebee