-=[ Mr. Bumblebee ]=-
_Indonesia_

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


;Zc@@s$	dZddlmZddlZddlZddlmZejedddlm	Z	m
Z
mZddlm
Z
mZmZmZmZddlmZmZmZmZmZdd	lmZed
ZedZedZed
ZeeedZedZdZ dZ!eedZ"dZ#dZ$de	fdYZ%de	fdYZ&de	fdYZ'de	fdYZ(de	fdYZ)de	fd YZ*d!e	fd"YZ+d#e	fd$YZ,d%e	fd&YZ-d'e	fd(YZ.d)e	fd*YZ/d+e	fd,YZ0d-e	fd.YZ1d/e	fd0YZ2d1e	fd2YZ3d3e	fd4YZ4d5e	fd6YZ5d7e	fd8YZ6d9e	fd:YZ7d;e	fd<YZ8d=e	fd>YZ9d?e	fd@YZ:dAe	fdBYZ;dCe	fdDYZ<dEe	fdFYZ=dGe	fdHYZ>dIe	fdJYZ?dKe	fdLYZ@dMe	fdNYZAdOe	fdPYZBdQe	fdRYZCdSe	fdTYZDdUe	fdVYZEdWZFdXZGdYe	fdZYZHd[ZId\ZJeKeKeKd]d^ZLd_e	fd`YZMdae	fdbYZNdce	fddYZOdee	fdfYZPdge	fdhYZQdie	fdjYZRdke	fdlYZSdme	fdnYZTdoe	fdpYZUdqe	fdrYZVdse	fdtYZWdue	fdvYZXdwe	fdxYZYdye	fdzYZZd{e	fd|YZ[d}e	fd~YZ\de	fdYZ]de	fdYZ^de	fdYZ_de	fdYZ`de	fdYZade	fdYZbde	fdYZcde	fdYZdde	fdYZede	fdYZfde	fdYZgde	fdYZhde	fdYZide	fdYZjde	fdYZkde	fdYZlde	fdYZmde	fdYZnde	fdYZode	fdYZpde	fdYZqde	fdYZrde	fdYZsde	fdYZtde	fdYZudeufdYZvde	fdYZwde	fdYZxde	fdYZyde	fdYZzde	fdYZ{de	fdYZ|de	fdYZ}de	fdYZ~de	fdYZde	fdYZde	fdYZde	fdYZdZdS(sbuiltin bzr commandsi(tabsolute_importN(tlazy_imports
import cStringIO
import errno
import sys
import time

import bzrlib
from bzrlib import (
    bugtracker,
    bundle,
    btree_index,
    controldir,
    directory_service,
    delta,
    config as _mod_config,
    errors,
    globbing,
    hooks,
    log,
    merge as _mod_merge,
    merge_directive,
    osutils,
    reconfigure,
    rename_map,
    revision as _mod_revision,
    static_tuple,
    timestamp,
    transport,
    ui,
    urlutils,
    views,
    gpg,
    )
from bzrlib.branch import Branch
from bzrlib.conflicts import ConflictList
from bzrlib.transport import memory
from bzrlib.revisionspec import RevisionSpec, RevisionInfo
from bzrlib.smtp_connection import SMTPConnection
from bzrlib.workingtree import WorkingTree
from bzrlib.i18n import gettext, ngettext
(tCommandtbuiltin_command_registrytdisplay_command(t
ListOptiontOptiontRegistryOptiontcustom_helpt_parse_revision_str(tmuttertnotetwarningtis_quiettget_verbosity_level(tsymbol_versioningcC@ssy|j}Wntjk
r-|jjSX|dk	r>|S|jd|}|j}|dk	rl|S|jS(s/Return location of branch for this control dir.tpossible_transportsN(tget_branch_referenceterrorstNotBranchErrortroot_transporttbasetNonetopen_branchtget_bound_location(tcontrol_dirRttargettthis_branchtmaster_location((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt_get_branch_locationVs		cC@st|d|}ytjj|d|}Wntjk
rKt|fSXy|j}Wn$tjtj	fk
rt|fSX|j
jo|j|jk|fSdS(sCheck if the branch in control_dir is colocated.

    :param control_dir: Control directory
    :return: Tuple with boolean indicating whether the branch is colocated
        and the full URL to the actual branch
    RN(
Rt
controldirt
ControlDirtopenRRtFalsetopen_workingtreet
NoWorkingTreetNotLocalUrlt_formattcolocated_branchestcontrol_url(RRtthis_urltroottwt((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt
_is_colocatedhs		
cC@stjj|}d|krd|krt||\}}|retj|itj|d6Stj|dtj|Sn|S(sLookup the location for a new sibling branch.

    :param control_dir: Control directory to find sibling branches from
    :param location: Name of the new branch
    :return: Full location to the new branch
    t/s\tbranchs..(tdirectory_servicetdirectoriestdereferenceR+turlutilstjoin_segment_parameterstescapetjoin(RtlocationRt	colocatedR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytlookup_new_sibling_branchs	cC@siy|j|d|SWnKtjtjfk
rdt|}tjtj|dtj	|SXdS(sOpen a branch, possibly a sibling of another.

    :param control_dir: Control directory relative to which to lookup the
        location.
    :param location: Location to look up
    :return: branch to open
    Rs..N(
RRRtNoColocatedBranchSupportRtBranchR R1R4R3(RR5RR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytopen_sibling_branchscC@s|dkrX|dkr!d}nytj|d|SWqXtjk
rTd}qXXntjj|d|}t||d|S(sOpen a nearby branch.

    :param near: Optional location of container from which to open branch
    :param location: Location of the branch
    :return: Branch instance
    t.RN(RR9R RRRRR:(tnearR5Rtcdir((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytopen_nearby_branchs	
	cc@sCt}y|j}WnCtjk
r^x+|jjD]\}}||fVq?WdSX|dk	rtj|d|}nd}|dks|j	r|dk	r|j
}nx|jjD]\}}||fVqWnX|j
j}xF|jdt
D]2}tj|j|jjd}||fVq	WdS(sIterate over the siblings of a branch.

    :param control_dir: Control directory for which to look up the siblings
    :return: Iterator over tuples with branch name and branch object
    NRtusingR,(tsetRRRtget_branchest	iteritemsRR9R tnametbzrdirtfind_repositoryt
find_branchestTrueR1trelative_urltuser_urltrstrip(RRt	seen_urlst	referenceRCR-t
ref_branchtrepo((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytiter_sibling_branchess*	cC@s|rtj|d\}}|jr~|jj}|r~x8|D]-}tj||sGtj||qGqGWq~n|}|j	||d<nctjdd}|jr|jj}|r|}tj
|}ttd|qn||fS(s#
    Return a tree and list of absolute paths from a file list.

    Similar to tree_files, but add handles files a bit differently, so it a
    custom implementation.  In particular, MutableTreeTree.smart_add expects
    absolute paths, which it immediately converts to relative paths.
    iu.s'Ignoring files outside view. View is %s(
tWorkingTreetopen_containingtsupports_viewstviewstlookup_viewtosutilst
is_inside_anyRtFileOutsideViewtabspathtview_display_strRtgettext(t	file_listttreetrelpatht
view_filestfilenametview_str((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyttree_files_for_adds$
cC@sI|dkrdSt|dkrAtjtd|fn|dS(Nis7bzr %s --revision takes exactly one revision identifieri(RtlenRtBzrCommandErrorRZ(tcommand_namet	revisions((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt_get_one_revisions	cC@sp|dkr|j}n|dkrN|dk	r?|j}ql|j}nt||}|j|}|S(sxGet a revision tree. Not suitable for commands that change the tree.
    
    Specifically, the basis tree in dirstate trees is coupled to the dirstate
    and doing a commit/uncommit/pull will at best fail due to changing the
    basis revision data.

    If tree is passed in, it should be already locked, for lifetime management
    of the trees internal cached state.
    N(RR-t
basis_treeRftas_tree(RdReR-R\trev_treetrevision((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt_get_one_revision_tree	s
cC@s\d}y;|jjd}|dk	r@||jjf}nWntjk
rWnX|S(s:Get the view information from a tree for change reporting.iN(RRSt
get_view_infoRTRtViewsNotSupported(R\t	view_infotcurrent_view((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt"_get_view_info_for_change_reporter scC@s2|dk	r"dtj||fStjj|S(sOpen the tree or branch containing the specified file, unless
    the --directory option is used to specify a different branch.N(RR9R RRtopen_containing_tree_or_branch(R_t	directory((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt,_open_directory_or_containing_tree_or_branch,st
cmd_statuscB@seZdZdgZddddedddd	d
edddd	d
edddedddgZddgZdZdddgZe	e
dde
e
e
e
e
dZRS(s9Display status summary.

    This reports on versioned and unknown files, reporting them
    grouped by state.  Possible states are:

    added
        Versioned in the working copy but not in the previous revision.

    removed
        Versioned in the previous revision but removed or deleted
        in the working copy.

    renamed
        Path of this file changed from the previous revision;
        the text may also have changed.  This includes files whose
        parent directory was renamed.

    modified
        Text has changed since the previous revision.

    kind changed
        File kind has been changed (e.g. from file to directory).

    unknown
        Not versioned and not matching an ignore pattern.

    Additionally for directories, symlinks and files with a changed
    executable bit, Bazaar indicates their type using a trailing
    character: '/', '@' or '*' respectively. These decorations can be
    disabled using the '--no-classify' option.

    To see ignored files use 'bzr ignored'.  For details on the
    changes to file texts, use 'bzr diff'.

    Note that --short or -S gives status flags for each item, similar
    to Subversion's status command. To get output similar to svn -q,
    use bzr status -SV.

    If no arguments are specified, the status of the entire working
    directory is shown.  Otherwise, only the status of the specified
    files or directories is reported.  If a directory is given, status
    is reported for everything inside that directory.

    Before merges are committed, the pending merge tip revisions are
    shown. To see all pending merge revisions, use the -v option.
    To skip the display of pending merge information altogether, use
    the no-pending option or specify a file/directory.

    To compare the working directory to a specific revision, pass a
    single revision to the revision argument.

    To see which files have changed in a specific revision, or between
    two revisions, pass a revision range to the revision argument.
    This will produce the same results as calling 'bzr diff --summarize'.
    sfile*sshow-idsRjtchangetverbosetshortthelpsUse short status indicators.t
short_nametSt	versionedsOnly show versioned files.tVs
no-pendingsDon't show pending merges.sno-classifys(Do not mark object type using indicator.tsttstattreplacetdifftrevertsstatus-flagsc	C@sddlm}	|r@t|dkr@tjtdntj|\}
}|dgkrd}|dgkrt	}qn|dk	rt	}n|	|
d|d|d	|d
|j
d|d|d
|d|d|	dS(Ni(tshow_tree_statusisBbzr status --revision takes exactly one or two revision specifierstR;tshow_idstspecific_filesRjtto_fileRwR{tshow_pendingRvtclassify(t
bzrlib.statusRRbRRcRZRPtopen_containing_pathsRRGtoutf(tselfRR[RjRwR{t
no_pendingRvtno_classifyRR\trelfile_list((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytruns	
N(
t__name__t
__module__t__doc__t
takes_argsRt
takes_optionstaliasest
encoding_typet	_see_alsoRR!RR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRt:s"7			tcmd_cat_revisioncB@sPeZdZeZdgZddgZdZdZe	ddddZRS(	sWrite out metadata for a revision.

    The revision to print can either be specified by a specific
    revision identifier, or you can use --revision.
    srevision_id?RrRjtstrictcC@sw|j|fgdt}|j}|jdkrKtj||n|jd}|jj|j	ddS(Nt	unorderedtabsenttfulltextsutf-8(
tget_record_streamRGtnexttstorage_kindRtNoSuchRevisiontget_bytes_asRtwritetdecode(RRetrevidtstreamtrecordtrevtext((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytprint_revisionsu.c	C@s|dk	r0|dk	r0tjtdn|dkr`|dkr`tjtdntjj|d}|jj}|dkrtjtdn|jj	z|dk	r2t
j|dt}y|j
||Wqtjk
r.tdj|jj|}tj|qXnc|dk	rxT|D]I}|dkrotjtdn|j|}|j
||qEWnWd|jjXdS(Ns4You can only supply one of revision_id or --revisions2You must supply either --revision or a revision_idis;Repository %r does not support access to raw revision textstwarns,The repository {0} contains no revision {1}.s#You cannot specify a NULL revision.(RRRcRZRRRqt
repositoryRet	lock_readRUtsafe_revision_idR!RRtformatRtas_revision_idtunlock(	Rtrevision_idRjRrtbRetmsgtrevtrev_id((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs4

N(RRRRGthiddenRRtencodingRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs		tcmd_dump_btreecB@s_eZdZeZdZdgZedddgZe	dZ
dZdZd	Z
RS(
sDump the contents of a btree index file to stdout.

    PATH is a btree index file, it can be any URL. This includes things like
    .bzr/repository/pack-names, or .bzr/repository/indices/a34b3a...ca4a4.iix

    By default, the tuples stored in the index file will be displayed. With
    --raw, we will uncompress the pages, but otherwise display the raw bytes
    stored in the index.
    texacttpathtrawRxs@Write the uncompressed bytes out, rather than the parsed tuples.cC@sQtj|\}}tj|}|r=|j||n|j||dS(N(RUtsplitt	transportt
get_transportt_dump_raw_bytest
_dump_entries(RRRtdirnametbasenamett((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
cC@sOtj||d}|j|}tj||_t||_||fS(s'Create a BTreeGraphIndex and raw bytes.N(	tbtree_indextBTreeGraphIndexRt	get_bytest	cStringIOtStringIOt_fileRbt_size(RttransRtbttbytes((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt_get_index_and_bytess
c
C@s<ddl}|j||\}}xttdt|tjD]\}}t|tjt|}|||!}	|dkr|jj	d|j
|	\}
}|jj	|	|
 |}	n|jj	d|ft|	dkr|jj	dqF|j|	}|jj	||jj	dqFWdS(NisRoot node:
s	
Page %d
s(empty)
s
(tzlibRt	enumeratetxrangeRbRt
_PAGE_SIZEtminRRt_parse_header_from_bytest
decompress(
RRRRRRtpage_idxt
page_starttpage_endt
page_bytest
header_endtdatatdecomp_bytes((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs"
	c
C@sy|j|}Wn,tjk
rA|j||\}}nXtj|||j}x|jD]q}y|d}Wntk
rd}nXt
j|}t|d|d|f}	|j
jd|	fqgWdS(Niiis%s
(R~RtTransportNotPossibleRRRtst_sizetiter_all_entriest
IndexErrorRtstatic_tuplet	as_tuplesttupleRR(
RRRR}Rt_tnodetrefstrefs_as_tuplestas_tuple((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs

(RRRRGRRRRRR!RRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs				tcmd_remove_treecB@sDeZdZddgZdgZedddgZedZRS(sRemove the working tree from a given branch/checkout.

    Since a lightweight checkout is little more than a working tree
    this will refuse to run against one.

    To re-create the working tree, use "bzr checkout".
    tcheckouts
working-treess	location*tforceRxsFRemove the working tree even if it has uncommitted or shelved changes.cC@s%|sdg}nx|D]}tjj|}y|j}WnQtjk
rltjtdn)tjk
rtjtdnX|s|j	rtj
|n|jjdk	rtj|qn|j|jjkrtjtdn|jqWdS(NR;sNo working tree to removes3You cannot remove the working tree of a remote paths>You cannot remove the working tree from a lightweight checkout(RRR R"RR#RcRZR$thas_changestUncommittedChangestget_shelf_managert
last_shelfRtShelvedChangesRIR-tdestroy_workingtree(Rt
location_listRR5tdtworking((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR@s$
(	RRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR0s		tcmd_repair_workingtreecB@sAeZdZddedddgZeZddedZ	RS(	sReset the working tree state file.

    This is not meant to be used normally, but more as a way to recover from
    filesystem corruption, etc. This rebuilds the working inventory back to a
    'known good' state. Any new modifications (adding a file, renaming, etc)
    will be lost, though modified files will still be detected as such.

    Most users will want something more like "bzr revert" or "bzr update"
    unless the state file has become corrupted.

    By default this attempts to recover the current state by looking at the
    headers of the state file. If the state file is too corrupted to even do
    that, you can supply --revision to force the state of the tree.
    RjRrRRxs9Reset the tree even if it doesn't appear to be corrupted.R;c
C@stj|\}}|j|jj|sny|jWntjk
rUqnXtjt	dn|dkrd}n%g|D]}|j|j^q}y|j
|WnUtjk
r}|dkrt	d}	nd}	tjt	dj|	nXdS(NsThe tree does not appear to be corrupt. You probably want "bzr revert" instead. Use "--force" if you are sure you want to reset the working tree.sS, the header appears corrupt, try passing -r -1 to set the state to the last commitRs!failed to reset the tree state{0}(RPRQtadd_cleanuptlock_tree_writeRtcheck_stateRtBzrErrorRcRZRRR-treset_stateR(
RRjRrRR\Rtrevision_idstrtetextra((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRrs&		%N(
RRRRRRGRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR[s	t	cmd_revnocB@sPeZdZdgZdgZeddddgZeedd	dZ
RS(
s`Show current revision number.

    This is equal to the number of revisions on this branch.
    tinfos	location?R\RxsShow revno of working tree.Rju.c	C@s|dk	r*|r*tjtdn|ry-tj|d}|j|jjWn,tj	tj
fk
rtj	|nX|j}|j}n{t
j|d}|j|jj|rt|dkrtjtdn|dj|}n|j}y|j|}Wntjk
rNd	}nXdjd|D}|j|jj|ddS(
Ns.--tree and --revision can not be used togetheriisARevision numbers only make sense for single revisions, not rangess???R;cs@s|]}t|VqdS(N(tstr(t.0tn((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pys	<genexpr>ss
(s???(RRRcRZRPRQRRRR#R$R-t
last_revisionR9RbRtrevision_id_to_dotted_revnoRR4tcleanup_nowRR(	RR\R5RjR*RRtrevno_ttrevno((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs2		

N(RRRRRRRRR!RR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs			tcmd_revision_infocB@s_eZdZeZdgZdedddedddgZe	d
degd	ZRS(sJShow revision number and revision id for a given revision identifier.
    srevision_info*RjRrRxsHBranch to examine, rather than the one containing the working directory.R\sShow revno of working tree.u.c@s0y6tj|d}|j|j|jjWnLtjtjfk
rd}t
j|d|jjjnXg}|dk	r|jfd|Dn|dk	rx6|D]+}tj
|}|j|jqWnt|dkr^|rH|dkr2tj|n|j|jq^|jjng}	d}
x|D]w}y,j|}djd|D}
Wntjk
rd}
nXt|
t|
}
|	j|
|gqqW|jx3|	D]+}|jjd|
|d|dfqWdS(Nic3@s|]}|jVqdS(N(R(RR(R(s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pys	<genexpr>sR;cs@s|]}t|VqdS(N(R(Rti((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pys	<genexpr>ss???s%*s %s
i(RPRQR-RRRRR#R$RR9textendtRevisionSpectfrom_stringtappendRRbRRR4RtmaxRRR(RRjRrR\trevision_info_listR*Rtrev_strtrev_spectrevinfostmaxlenRtdotted_revnoRtri((Rs3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsD	 




N(
RRRRGRRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR	s			tcmd_addc	B@seZdZdgZedddddedddd	ed
deddgZd
ZddgZe	e	e	ddZRS(sAdd specified files or directories.

    In non-recursive mode, all the named items are added, regardless
    of whether they were previously ignored.  A warning is given if
    any of the named files are already versioned.

    In recursive mode (the default), files are treated the same way
    but the behaviour for directories is different.  Directories that
    are already versioned do not give a warning.  All directories,
    whether already versioned or not, are searched for files or
    subdirectories that are neither versioned or ignored, and these
    are added.  This search proceeds recursively into versioned
    directories.  If no names are given '.' is assumed.

    A warning will be printed when nested trees are encountered,
    unless they are explicitly ignored.

    Therefore simply saying 'bzr add' will version all files that
    are currently unknown.

    Adding a file whose parent directory is not versioned will
    implicitly add the parent, and so on up to the root. This means
    you should never need to explicitly add a directory, they'll just
    get added when you add a file in the directory.

    --dry-run will show which files would be added, but not actually
    add them.

    --file-ids-from will try to use the file ids from the supplied path.
    It looks up ids trying to find a matching parent directory with the
    same filename, and then by pure path. This option is rarely needed
    but can be useful when adding the same logical file into two
    branches that will be merged later (without showing the two different
    adds as a conflict). It is also useful when merging another project
    into a subdirectory of this one.
    
    Any files matching patterns in the ignore list will not be added
    unless they are explicitly mentioned.
    
    In recursive mode, files larger than the configuration option 
    add.maximum_file_size will be skipped. Named items are never skipped due
    to file size.
    sfile*s
no-recurseRxs2Don't recursively add the contents of directories.RytNsdry-runs8Show what would be done, but don't actually do anything.Rvs
file-ids-fromttypesLookup file ids from this tree.RtremovetignorecC@sddl}d}|dk	rytj|\}}Wn5tjk
rntj|\}	}|	j}nX|jj	||d|j
dt}
n"|jjd|j
dt}
|r|j
|jjnt|\}}|j||d|
d|\}}
|jt|
dkr|rxTt|
jD]=}x4|
|D](}|j
jtdj||qYWqHWqndS(NiRtshould_printtactiontsavesignored {0} matching "{1}"
(t
bzrlib.addRRPRQRR#R9RgtaddtAddFromBaseActionRR
tAddWithSkipLargeActionRRRRat	smart_addRRbtsortedtkeysRRZR(RR[t
no_recursetdry_runRvt
file_ids_fromtbzrlibt	base_treet	base_pathtbase_branchRR\taddedtignoredtglobR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR2s6
	
	N(RRRRRtunicodeRRRR!RR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs+					t	cmd_mkdircB@sbeZdZdgZedddddgZdZedZed	Z	e
d
ZRS(slCreate a new versioned directory.

    This is equivalent to creating the directory and then adding it.
    sdir+tparentsRxs8No error if existing, make parent directories as needed.RytpRcC@sF|j|dk	rdS|j|tj||j|gdS(N(tpath2idRtadd_file_with_parentsRURR (tclsR*R]((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR5escC@s|j|gdS(N(R (R6R*R]((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytadd_file_singlelscC@s|r|j}n	|j}x|D]}tj|\}}|rytj|Wqtk
r}|jtjkrqqXn
tj	||||t
s"|jjt
d|q"q"WdS(Ns	added %s
(R5R7RPRQtostmakedirstOSErrorterrnotEEXISTtmkdirR
RRRZ(Rtdir_listR2tadd_filetdirR*R]R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRps	



	(RRRRRRRtclassmethodR5R7R!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR1Us	tcmd_relpathcB@s,eZdZdgZeZedZRS(s$Show path of a file relative to rootR_cC@s9tj|\}}|jj||jjddS(Ns
(RPRQRR(RR_R\R]((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs(RRRRRGRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRBs	t
cmd_inventorycB@sbeZdZeZdgZddeddddegZdgZ	e
d
ed
d
d	Z
RS(s7Show inventory of the current working copy or a revision.

    It is possible to limit the output to a particular entry
    type using the --kind option.  For example: --kind file.

    It is also possible to restrict the list of files to a specific
    set. For example: bzr inventory --show-ids this/file
    tlsRjsshow-idstkindRxs<List entries of a particular kind: file, directory, symlink.Rsfile*cC@s|r1|dkr1tjtd|fntd|}tj|\}}|j|jj|dk	r|j
|j}|g}|j|jjn|}g}|j|jj|dk	r	|j|d|dt
}|jd|}	n|j}	xt|	D]\}
}|rI||jkrIq"n|
d	kr[q"n|r|jjd
|
|jfq"|jj|
|jjdq"WdS(
NtfileRrtsymlinksinvalid kind %r specifiedt	inventoryttreestrequire_versionedtspecific_file_idsRs	%-50s %s
s
(sfiles	directoryssymlink(RRcRZRfRPRRRRRRhR-t	paths2idsRGtiter_entries_by_dirR$RERRtfile_id(RRjRRER[t	work_treeR\textra_treestfile_idstentriesRtentry((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs4		 N(RRRRGRRRR0RRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRCs			tcmd_mvcB@seZdZdgZedddedddedddgZd	d
gZdZeeedZ	d
Z
dZRS(sMove or rename a file.

    :Usage:
        bzr mv OLDNAME NEWNAME

        bzr mv SOURCE... DESTINATION

    If the last argument is a versioned directory, all the other names
    are moved into it.  Otherwise, there must be exactly two arguments
    and the file is changed to a new name.

    If OLDNAME does not exist on the filesystem but is versioned and
    NEWNAME does exist on the filesystem but is not versioned, mv
    assumes that the file has been manually moved and only updates
    its internal inventory to reflect that change.
    The same is valid when moving many SOURCE files to a DESTINATION.

    Files cannot be moved between branches.
    snames*tafterRxsRMove only the bzr identifier of the file, because the file has already been moved.tautosAutomatically guess renames.sdry-runs+Avoid making changes when guessing renames.tmovetrenameRcC@s|r|j|||S|r7tjtdn|dkrLg}nt|dkrvtjtdntj|dt\}}x9|dd!D]*}|dkrtjtdqqW|j	|j
j|j||||dS(	Ns--dry-run requires --auto.ismissing file argumenttcanonicalizeiiRscan not move root of branch(
trun_autoRRcRZRRbRPRR!RRRt_run(Rt
names_listRURVR'R\t	rel_namest	file_name((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	cC@s|dk	r6t|dkr6tjtdn|rTtjtdntj|dd\}}|j|jj	t
jj||dS(Nis)Only one path may be specified to --auto.s(--after cannot be specified with --auto.tdefault_directoryR;(
RRbRRcRZRPRRRRt
rename_mapt	RenameMapt
guess_renames(RR\RUR'ROR[((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRZscC@stj|d}|rt|dkr|jr^|dj|djkr^t}q|j|j|d}tj|dr|r|j	|dkrt}qn|r$|j
|}x|j|d |dd|D]2\}}ts|j
jd||fqqWnit|dkrNtjtdn|j|d}|j|d}	tj|	}
tj|d}|j|	}|dks|j||kr|r|
rtj|j|
}
n	|j}
tj|
tj|
|}q/|}ntjj|	}tj|
|}td	|||j||d|ts|j
jd||fndS(
NiiiiRrRUs	%s => %s
sBto mv multiple files the destination must be a versioned directorysattempting to move %s => %s(RUtisdirRbtcase_sensitivetlowerR!R4tget_canonical_inventory_pathtlexistststored_kindtget_canonical_inventory_pathsRWR
RRRRcRZRRRtpathjointbasedirtcanonical_relpathR8RR
t
rename_one(RR\R\R]RUt
into_existingtfrom_idtsrctdestt
canon_desttdest_parentt	spec_tailtdest_idtdest_parent_fqt	dest_tail((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR[	sJ
 	-	$!			(RRRRRRRRR!RRZR[(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRTs		tcmd_pullcB@seZdZddddgZdddedd	d
edd	ded
d	dedd	dedd	dgZdgZdZdde
de
de
e
e
d	ZRS(s(Turn this branch into a mirror of another branch.

    By default, this command only works on branches that have not diverged.
    Branches are considered diverged if the destination branch's most recent 
    commit is one that has not been merged (directly or indirectly) into the 
    parent.

    If branches have diverged, you can use 'bzr merge' to integrate the changes
    from one into the other.  Once one branch has merged, the other should
    be able to pull it again.

    If you want to replace your local changes and just want your branch to
    match the remote one, use pull --overwrite. This will work even if the two
    branches have diverged.

    If there is no default location set, the first pull will set it (use
    --no-remember to avoid setting it). After that, you can omit the
    location to use the default.  To change the default, use --remember. The
    value will only be saved if the remote location can be accessed.

    The --verbose option will display the revisions pulled using the log_format
    configuration option. You can use a different format by overriding it with
    -Olog_format=<other_format>.

    Note: The location can be specified either in the form of a branch,
    or in the form of a path to a file containing a merge directive generated
    with bzr send.
    tpushtupdatesstatus-flagstsendtremembert	overwriteRjRvRxsShow logs of pulled revisions.RrsJBranch to pull into, rather than the one containing the working directory.tlocalsZPerform a local pull in a bound branch.  Local pulls are not applied to the master branch.s	show-bases%Show base revision text in conflicts.soverwrite-tagssOverwrite tags only.s	location?Rc
	C@s|rddg}n|	r'dg}ng}d}
d}|dkrNd}ny6tj|d}|j}
|j|jjWn\tjk
rd}t	j|d}
|j|
jj|rt
tdqnX|r|
jrtj
ng}|dk	rPytj|d|}WqPtjk
rLd}qPXn|
j}|dkr|dkrtjtdqtj||jj}ts|jjtd|n|}ntd	|}|dk	rF|dk	rtjtd
n|j|
j|j|
j\}}
}|
}nbt	j|d|}|j|jj|s|dkr|
jdkr|
j|j n|dk	r|j!|}
n|dk	r t"|}t#j$d|j%d|}|j&|||
|d
|d|}n|
j&|||
d
|}|j'|j|r|j(|j)krt*j+|
|j|j,|j(nt-|ddrdSdSdS(Nthistoryttagsu.is%No working tree, ignoring --show-baseRs$No pull location known or specified.s Using saved parent location: %s
tpulls.Cannot use -r with merge directives or bundlestunversioned_filterRnR~t	show_baset
tag_conflictsi(.RRPRQR-Rt
lock_writeRRR#R9RRZRtLocalRequiresBoundBranchtbundletread_mergeable_from_urlt
NotABundlet
get_parentRcR1tunescape_for_displayRRR
RRftinstall_revisionsRtget_merge_requestR Rt
set_parentRRRptdeltat_ChangeReportert
is_ignoredRtreportt	old_revidt	new_revidtlogtshow_branch_changet	old_revnotgetattr(RR5R|R}RjRvRrR~Rtoverwrite_tagsRt	mergeablettree_tot	branch_toRt
stored_loctdisplay_urltbase_revision_idtverifiedtbranch_fromRntchange_reportertresult((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs		

									
N(RRRRRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRxYs&								tcmd_pushcB@seZdZdddgZddddedd	d
edd	ded
d	dedd	dedd	ddeedd	dedd	dedd	dgZdgZdZ	ddeeededdedeed
ZRS(sQUpdate a mirror of this branch.

    The target branch will not have its working tree populated because this
    is both expensive, and is not supported on remote file systems.

    Some smart servers or protocols *may* put the working tree in place in
    the future.

    This command only works on branches that have not diverged.  Branches are
    considered diverged if the destination branch's most recent commit is one
    that has not been merged (directly or indirectly) by the source branch.

    If branches have diverged, you can use 'bzr push --overwrite' to replace
    the other branch completely, discarding its unmerged changes.

    If you want to ensure you have the different changes in the other branch,
    do a merge (see bzr help merge) from the other branch, and commit that.
    After that you will be able to do a push without '--overwrite'.

    If there is no default push location set, the first push will set it (use
    --no-remember to avoid setting it).  After that, you can omit the
    location to use the default.  To change the default, use --remember. The
    value will only be saved if the remote location can be accessed.

    The --verbose option will display the revisions pushed using the log_format
    configuration option. You can use a different format by overriding it with
    -Olog_format=<other_format>.
    RRzs
working-treesR|R}RvRjs
create-prefixRxsFCreate the path leading up to the branch if it does not already exist.RrsJBranch to push from, rather than the one containing the working directory.suse-existing-dirsBy default push will fail if the target directory exists, but does not already have a control directory.  This flag will allow push to proceed.tstackedsQCreate a stacked branch that references the public location of the parent branch.s
stacked-onsCreate a stacked branch that refers to another branch for the commit history. Only the work not present in the referenced branch is included in the branch created.RRsdRefuse to push if there are uncommitted changes in the working tree, --no-strict disables the check.sno-treesDDon't populate the working tree, even for protocols that support it.soverwrite-tagssOverwrite tags only.s	location?RcC@sSddlm}|r%ddg}n|
r7dg}ng}|dkrRd}ntjj|\}}}td|}|dk	r|j|j}nd}|dk	r|dkr|j	|ddd	d
dn|	dk	rt
j|	}	nf|
r^|j}|r=t
j|}|j}	|	s=|}	q=n|	s^tjtdq^n|dkr|j}|dkr|j}|rtjtd
t
j||jjqtjtdqt
j||jj}ttd||}n|||||jd|d|d|d|	d|d|d|dS(Ni(t_show_push_branchRRR;Rytpush_strictt
more_errors"Use --no-strict to force the push.tmore_warnings'Uncommitted changes will not be pushed.s'Could not determine branch to refer to.sbNo push location known or specified. To push to the parent branch (at %s), use 'bzr push :parent'.s$No push location known or specified.sUsing saved push location: %sRvR}R|t
stacked_ont
create_prefixtuse_existing_dirtno_tree(tbzrlib.pushRRRRRqRft
in_historyRtcheck_changed_or_out_of_dateR1t
normalize_urlRR9R tget_public_branchRRcRZtget_push_locationRRRR(RR5R|R}RRvRjRRrRRRRRRR\tbr_fromt_unusedRt
parent_urltparentRt
parent_locR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR*sb		
						N(
RRRRRRR0RRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs6													t
cmd_branchcB@seZdZdgZddgZdedddedd	edd
eddded
ddedddedddedddedddg	ZddgZdde
e
e
e
e
e
e
dd
ZRS(sCreate a new branch that is a copy of an existing branch.

    If the TO_LOCATION is omitted, the last component of the FROM_LOCATION will
    be used.  In other words, "branch ../foo/bar" will attempt to create ./bar.
    If the FROM_LOCATION has no / or path separator embedded, the TO_LOCATION
    is derived from the FROM_LOCATION by stripping a leading scheme or drive
    identifier, if any. For example, "branch lp:foo-bar" will attempt to
    create ./foo-bar.

    To retrieve the branch as of a particular revision, supply the --revision
    parameter, as in "branch foo/bar -r 5".

    The synonyms 'clone' and 'get' for this command are deprecated.
    Rt
from_locationsto_location?RjthardlinkRxs,Hard-link working tree files where possible.s
files-fromRs!Get file contents from this tree.sno-trees'Create a branch without a working-tree.tswitchs?Switch the checkout in the current directory to the new branch.RsCreate a stacked branch referring to the source branch. The new branch will depend on the availability of the source branch for all operations.t
standalones2Do not use a shared repository, even if available.suse-existing-dirsBy default branch will fail if the target directory exists, but does not already have a control directory.  This flag will allow branch to proceed.tbinds!Bind new branch to from location.tgettclonecC@sQddlm}ddlm}
|jdkrWtjjdd|jdd	d
dntj	j
|\}}|px|sd}n|dk	r||krtj
|}ntd	|}|j|jj|dk	r|j|}n|j}|dkr6t|dd}|s6tj|}q6ntj|}y|jd
Wntjk
rytj	j|}Wn<tjk
r|stjtd|qd}q(Xy|j Wntjk
rq(Xtj!|n3tj"k
r!tjtd|nXd}|dkryh|j#j$|j%|d|gd|d|d|d|d|d|}|j d|j#j&|g}WqHtj'k
r|j(d
tdj)||}tj|qHXn^y|j*}Wn tj+k
r|j,}nX|j-|j.d||j$|d|}|
||yt/td|j0WnKtj1tj2tj3fk
r}t/t4dd|j5|j5nX|
rt6j
|}|j7|t/td|n|	rMtj8d
\}}|j|j#|t/tdtj9|j%dndS( Ni(R(t_merge_tags_if_possibleRRtdeprecated_commandtdeprecated_nametrecommended_nameR-tdeprecated_in_versions2.4RCR;s%Target directory "%s" already exists.sParent of "%s" does not exist.Rtaccelerator_treeRRtforce_new_repotcreate_tree_if_localt
source_branchs#The branch {0} has no revision {1}.Rs+Created new stacked branch referring to %s.sBranched %d revision.sBranched %d revisions.sNew branch bound to %ssSwitched to branch: %ssutf-8(sgetR(:R)Rt
bzrlib.tagRt
invoked_astuit
ui_factorytshow_user_warningRRtopen_tree_or_branchRRPR RfRRRRRRR1tderive_to_locationRRR=Rt
FileExiststopen_from_transportRRcRZRtAlreadyBranchErrort
NoSuchFileRDtsproutRRRtdelete_treeRtopen_repositorytNoRepositoryPresenttcreate_repositorytfetchRRtget_stacked_on_urlt
NotStackedtUnstackableBranchFormattUnstackableRepositoryFormattngettextRR9RRQR(RRtto_locationRjRRRRRRRt
files_fromt_mod_switchRRRRtto_transporttto_dirR-Rtto_repoRt
parent_branchR*R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs		
			


			


*
N(RRRRRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRts0								tcmd_branchescB@sAeZdZdgZedddddgZdedZRS(	sList the branches available at the current location.

    This command will print the names of all the branches at the current
    location.
    s	location?t	recursiveRytRRxsQRecursively scan for branches rather than just looking in the specified location.R;cC@s|rtj|}|js3tjdnxtjj|D]G}|jj	dt
jt
j|j
|j
|jjjdqFWnGtjj|d}y|jdd}Wntjk
rd}nXi}xTt|D]F\}}	|dkrqn|dk	o)|j
|	j
k}
|
||<qWt|jrv|dk	rv|jj	dtdnxbt|jD]N}||}
|
rd	}nd
}|jj	d||j|jjfqWdS(Ns!Can't scan this type of location.s%s
R,iRCRs* %s
s	(default)t*t s%s %s
(RRtlistableRRcRRRFRRR1RRHRRRJRQRRRROtanytvaluesRZR$R%tencode(RR5RRRR@t
active_branchtnamesRCR-tactivetprefix((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs<!

	(RRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR
s
	tcmd_checkoutcB@seZdZddddgZddgZdedd	d
edded	d
edd	dgZdgZddde
de
dZRS(sCreate a new checkout of an existing branch.

    If BRANCH_LOCATION is omitted, checkout will reconstitute a working tree for
    the branch found in '.'. This is useful if you have removed the working tree
    or if it was never created - i.e. if you pushed the branch to its current
    location using SFTP.

    If the TO_LOCATION is omitted, the last component of the BRANCH_LOCATION will
    be used.  In other words, "checkout ../foo/bar" will attempt to create ./bar.
    If the BRANCH_LOCATION has no / or path separator embedded, the TO_LOCATION
    is derived from the BRANCH_LOCATION by stripping a leading scheme or drive
    identifier, if any. For example, "checkout lp:foo-bar" will attempt to
    create ./foo-bar.

    To retrieve the branch as of a particular revision, supply the --revision
    parameter, as in "checkout foo/bar -r 5". Note that this will be immediately
    out of date [so you cannot commit] but it may be useful (i.e. to examine old
    code.)
    t	checkoutsR-s
working-treessremove-treesbranch_location?sto_location?RjtlightweightRxsPerform a lightweight checkout.  Lightweight checkouts depend on access to the branch for every operation.  Normal checkouts can perform common operations like diff and status without such access, and also support local commits.s
files-fromRs!Get file contents from this tree.Rs,Hard-link working tree files where possible.tcoc
C@s@|dkr!tj}|}ntjj|\}}|pB|sNd}ntd|}|dk	r||krtj|}n|dk	r|j	|}	nd}	|dkrt
j|}ntj|tj|kr#y|j
jWq#tjk
r|j
j|	dSXn|j||	|||dS(NR(RRUtgetcwdRRRRfRPR RR1RRXRDR"RR#tcreate_workingtreetcreate_checkout(
Rtbranch_locationRRjRRRRtsourceR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRcs0			N(RRRRRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR<s				tcmd_renamescB@s2eZdZdgZdgZeddZRS(s Show list of renamed files.
    tstatussdir?u.c	C@stj|d}|j|jj|j}|j|jjg}|j|dt}x_|D]W\}}}}	}
}}}
|d|dkrqmnd|krqmn|j	|qmW|j
x.|D]&\}}|jjd||fqWdS(Nitinclude_unchangedis	%s => %s
(
RPRQRRRRgtiter_changesRGRRtsortRR(RR@R\told_treetrenamestiteratortftpathstctvR3RtkRtold_nametnew_name((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs%
(RRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
		t
cmd_updatecB@sYeZdZdddgZdgZdedddgZd	gZdddd
Z	RS(svUpdate a working tree to a new revision.

    This will perform a merge of the destination revision (the tip of the
    branch, or the specified revision) into the working tree, and then make
    that revision the basis revision for the working tree.  

    You can use this to visit an older revision, or to update a working tree
    that is out of date from its branch.
    
    If there are any uncommitted changes in the tree, they will be carried
    across and remain as uncommitted changes after the update.  To discard
    these changes, use 'bzr revert'.  The uncommitted changes may conflict
    with the changes brought in by the change in basis revision.

    If the tree's branch is bound to a master branch, bzr will also update
    the branch from the master.

    You cannot update just a single file or directory, because each Bazaar
    working tree has just a single basis revision.  If you want to restore a
    file that has been removed locally, use 'bzr revert' instead of 'bzr
    update'.  If you want to restore a file to its state in a previous
    revision, use 'bzr revert' with a '-r' option, or use 'bzr cat' to write
    out the old content of that file to a new location.

    The 'dir' argument, if given, must be the location of the root of a
    working tree to update.  By default, the working tree that contains the 
    current working directory is used.
    Rs
working-treessstatus-flagssdir?Rjs	show-baseRxs%Show base revision text in conflicts.tupc
C@s|dk	r6t|dkr6tjtdn|dkrXtjdd}n3tj|\}}|rtjtdn|j}g}|jd|}|dk	r|j	}	|j
n|jj	}	|j|j|j
tj|	jd|jj}	|jd}
|dkr:d}n|j|}|dk	rk|dj|}n|j}|tj|jkr|j|}
ttdjdjtt|
|	dSt|}t j!d	|j"d
|}y+|j|d|d|d|d
|}Wn2tj#k
rY}tjtd|j$nX|jjtj|j}
ttdjdjtt|
|	|j}|dr|d|
krttdn|dkrdSdSdS(Nis0bzr update --revision takes exactly one revisionR;isCbzr update can only update a whole tree, not a file or subdirectoryRR,s0Tree is up to date at revision {0} of branch {1}RRnRjtold_tipRs_branch has no revision %s
bzr update --revision only works for a revision in the branch historys%Updated to revision {0} of branch {1}smYour local commits will now show as pending merges with 'bzr status', and can be committed with 'bzr commit'.(%RRbRRcRZRPRQR-tget_master_branchRRRRRR1RRJRRtget_parent_idsRzRRt
_mod_revisiontensure_nullRRRR4tmapRRpRRRRRj(RR@RjRR\R]R-RtmasterRtexisting_pending_mergesRRRRnRt	conflictsRt
parent_ids((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsv						

				
		N(
RRRRRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs			tcmd_infocB@sJeZdZdddgZdgZdgZdZede	dZ
RS(	ssShow information about a working tree, branch or repository.

    This command will show all known locations and formats associated to the
    tree, branch or repository.

    In verbose mode, statistical information is included with each report.
    To see extended statistic information, use a verbosity level of 2 or
    higher by specifying the verbose option multiple times, e.g. -vv.

    Branches and working trees will also report any missing revisions.

    :Examples:

      Display information on the format and related locations:

        bzr info

      Display the above together with extended format information and
      basic statistics (like the number of files in the working tree and
      number of revisions in the branch and repository):

        bzr info -v

      Display the above together with number of committers to the branch:

        bzr info -vv
    Rs
working-treestrepositoriess	location?RvRcC@sU|rt}nd}ddlm}|tjj|dd|d|jdS(Ni(tshow_bzrdir_infoRvtoutfile(Rtbzrlib.infoRRRRQR(RR5Rvtnoise_levelR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR5sN(RRRRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs		t
cmd_removecB@seZdZdgZdedddejdddd	d
ededd
ddddgZ	ddgZ
dZeeddZRS(sRemove files or directories.

    This makes Bazaar stop tracking changes to the specified files. Bazaar will
    delete them if they can easily be recovered using revert otherwise they
    will be backed up (adding an extension of the form .~#~). If no options or
    parameters are given Bazaar will scan for files that are being tracked by
    Bazaar but missing in your tree and stop tracking them for you.
    sfile*RvtnewRxs1Only remove files that have never been committed.sfile-deletion-strategys"The file deletion mode to be used.ttitlesDeletion Strategytvalue_switchestenum_switchtsafesBackup changed files (default).tkeeps+Delete from bzr but leave the working copy.t	no_backupsDon't backup changed files.trmtdelRc
C@stj|\}}|dk	r=g|D]}|^q(}n|j|jj|r|j|jd|j}t	g|D]}|d^qdt
}t|dkrZtj
tdqZn|dkrZg}x]|j|jD]F}	|	dddk	r|	dddkr|j|	ddqqWt	|dt
}d}n|j|d|d	|jd
|dkd|dkdS(
NRitreversesNo matching files.iiR$RvRt
keep_filesRs	no-backup(RPRRRRRtchanges_fromRgR-R$RGRbRRcRZRRRR(
RR[RvRtfile_deletion_strategyR\RR-tmissingRu((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRVs()(	(
RRRRRRtfrom_kwargsRGR!RRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR@s		tcmd_file_idcB@s8eZdZeZddgZdgZedZRS(sPrint file_id of a particular file or directory.

    The file_id is assigned when the file is first added and remains the
    same through all revisions where the file exists, even when it is
    moved or renamed.
    RHRDR_cC@sZtj|\}}|j|}|dkrBtj|n|jj|ddS(Ns
(RPRQR4RRtNotVersionedErrorRR(RR_R\R]R
((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
(	RRRRGRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR.vs
	t
cmd_file_pathcB@s,eZdZeZdgZedZRS(sPrint path of file_ids to a file or directory.

    This prints one line for each directory down to the target,
    starting at the branch root.
    R_cC@stj|\}}|j|}|dkrBtj|ntj|}xQtdt	|dD]6}tj
|| }|jjd|j|qkWdS(Nis%s
(
RPRQR4RRR/RUt	splitpathtrangeRbtjoinpathRR(RR_R\R]tfidtsegmentstposR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs (RRRRGRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR0s	t
cmd_reconcilecB@sJeZdZdgZdgZeddddegZdedZ	RS(	sReconcile bzr metadata in a branch.

    This can correct data mismatches that may have been caused by
    previous ghost operations or bzr upgrades. You should only
    need to run this command if 'bzr check' or a bzr developer
    advises you to run it.

    If a second branch is provided, cross-branch reconciliation is
    also attempted, which will check that data like the tree root
    id which was not present in very early bzr versions is represented
    correctly in both branches.

    At the same time it is run it may recompress data resulting in
    a potential saving in disk space or performance gain.

    The branch *MUST* be on a listable system such as local disk or sftp.
    tchecksbranch?scanonicalize-chksRxs:Make sure CHKs are in canonical form (repairs bug 522637).RR;cC@s6ddlm}tjj|}||d|dS(Ni(t	reconciletcanonicalize_chks(tbzrlib.reconcileR9RRR (RR-R:R9R@((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs(
RRRRRRRGRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR7s			tcmd_revision_historycB@s8eZdZdgZdgZeZeddZRS(s-Display the list of revision ids on a branch.Rs	location?R;cC@stj|d}|j|jj|jj}t|j|j	t
jg}x4t|D]&}|j
j||j
jdqiWdS(Nis
(R9RQRRRRt	get_graphtlisttiter_lefthand_ancestryRRt
NULL_REVISIONtreversedRR(RR5R-tgraphRR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs(	RRRRRRGRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR<s		tcmd_ancestrycB@s;eZdZddgZdgZeZeddZRS(s+List all revisions merged into this branch.Rsrevision-historys	location?R;c
C@sytj|d}Wn/tjk
rHtj|}|j}nX|j}|j}|j|j	j
j|j	j}g|j
|gD]\}}|^q}x=t|D]/}	tj|	rqn|jj|	dqWdS(Nis
(RPRQRR#R9R RR-RRRRR=t
iter_ancestryRARtis_nullRR(
RR5R*RRRBRR2ReR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	((	RRRRRRGRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRCs	tcmd_initc
B@seZdZdddgZdgZedddeddd	d
dd
ddeddedddeddgZdde
e
e
dZRS(sMake a directory into a versioned branch.

    Use this to create an empty branch, or before importing an
    existing project.

    If there is a repository in a parent directory of the location, then
    the history of the branch will be stored in the repository.  Otherwise
    init creates a standalone branch which carries its own history
    in the .bzr directory.

    If there is already a branch at the location but it has no working tree,
    the tree can be populated with 'bzr checkout'.

    Recipe for importing a tree of files::

        cd ~/project
        bzr init
        bzr add .
        bzr status
        bzr commit -m "imported project"
    sinit-repositoryR-Rs	location?s
create-prefixRxsFCreate the path leading up to the branch if it does not already exist.Rs5Specify a format for this branch. See "help formats".t
lazy_registrysbzrlib.controldirtformat_registryt	convertercC@stjj|S(N(RRHtmake_bzrdir(RC((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt<lambda>sR!R s
Branch formatsappend-revisions-onlysFNever change revnos or the existing log.  Append revisions to it only.sno-trees'Create a branch without a working tree.cC@s|dkr!tjjd}n|dkr6d}ntj|}y|jWn@tjk
r|stj	t
d|n|jnXytjj
|}Wnbtjk
rtjj}|rt}	nd}	||jd|d|gd|	}
|
j}nXddlm}|jrmt||r[|jr[tj|ntj|n|j}
|r|jr|jn|ry|
jtWqtjk
rtj	t
d	qXntsdd
l m!}m"}
y|j#dt}Wn#tj$tj%fk
r:d}nX|
j&}|||
|j'}|
|||
|}|j(j)t
dj*|||j+r|jj,j-}yt.j/|}Wntj0k
rnX|j(j)t
d
|qndS(Ntdefaultu.soParent directory of %s does not exist.
You may supply --create-prefix to create all leading parent directories.RRtforce_new_treei(tLocalTransportsJThis branch format cannot be set to append-revisions-only.  Try --default.(tdescribe_layouttdescribe_formattrecommend_upgradesCreated a {0} (format: {1})
sUsing shared repository: %s
(1RRRHRJRRtensure_baseRRRcRZRRRRtcreate_branch_convenienceR!RRDtbzrlib.transport.localRNt
has_brancht
isinstancethas_workingtreetBranchExistsWithoutWorkingTreeRt
create_branchRtset_append_revisions_onlyRGtUpgradeRequiredR
RRORPR"R#R$RReRRRt	is_sharedRtexternal_urlR1tlocal_path_from_urlt
InvalidURL(RR5Rtappend_revisions_onlyRRRta_bzrdirRYRMR-RNRORPR\Rtlayoutturl((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR sn	
			


	
	
(sbzrlib.controldirsformat_registryN(RRRRRRRRGRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRFs"						tcmd_init_repositorycB@seZdZddddgZdgZedddd	ddd
deddedddgZdgZ	dedZRS(s#Create a shared repository for branches to share storage space.

    New branches created under the repository directory will store their
    revisions in the repository, not in the branch directory.  For branches
    with shared history, this reduces the amount of storage needed and 
    speeds up the creation of new branches.

    If the --no-trees option is given then the branches in the repository
    will not have working trees by default.  They will still exist as 
    directories on disk, but they will not have separate copies of the 
    files at a certain revision.  This can be useful for repositories that
    store branches which are interacted with through checkouts or remote
    branches, such as on a server.

    :Examples:
        Create a shared repository holding just branches::

            bzr init-repo --no-trees repo
            bzr init repo/trunk

        Make a lightweight checkout elsewhere::

            bzr checkout --lightweight repo/trunk trunk-checkout
            cd trunk-checkout
            (add files here)
    tinitR-RRR5RRxsISpecify a format for this repository. See "bzr help formats" for details.RGsbzrlib.controldirRHRIcC@stjj|S(N(RRHRJ(RC((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRKsR!R sRepository formatsno-treessEBranches in the repository will default to not having a working tree.s	init-repoc
C@s|dkr!tjjd}n|dkr6d}ntj|}|j|dtd|dtdtdtd|jj	\}}}}t
sd	d
lm}	|	|dd	d|j
ndS(
NRLR;Rtmake_working_treestshared_repoRRtrepo_format_namei(RRvR(RRRHRJRRtinitialize_on_transport_exRGtrepository_formattget_format_stringR
RRR(
RR5Rtno_treesRRNtnewdirtrequire_stackingtrepository_policyR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	
	(sbzrlib.controldirsformat_registryN(
RRRRRRRGRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRdks					tcmd_diffcB@s
eZdZdgZdgZeddeddeddedd	dd
eddddeed
dddeddeddddeeddddddd!ddedddde	g	Z
ddgZdZe
d"d"d"d"d"d"d"d"d"d 	ZRS(#sV
Show differences in the working tree, between revisions or branches.

    If no arguments are given, all changes for the current tree are listed.
    If files are given, only the changes in those files are listed.
    Remote and multiple branches can be compared by using the --old and
    --new options. If not provided, the default for both is derived from
    the first argument, if any, or the current tree if no arguments are
    given.

    "bzr diff -p1" is equivalent to "bzr diff --prefix old/:new/", and
    produces patches suitable for "patch -p1".

    Note that when using the -r argument with a range of revisions, the
    differences are computed between the two specified revisions.  That
    is, the command does not show the changes introduced by the first 
    revision in the range.  This differs from the interpretation of 
    revision ranges used by "bzr log" which includes the first revision
    in the range.

    :Exit values:
        1 - changed
        2 - unrepresentable changes
        3 - error
        0 - no change

    :Examples:
        Shows the difference in the working tree versus the last commit::

            bzr diff

        Difference between the working tree and revision 1::

            bzr diff -r1

        Difference between revision 3 and revision 1::

            bzr diff -r1..3

        Difference between revision 3 and revision 1 for branch xxx::

            bzr diff -r1..3 xxx

        The changes introduced by revision 2 (equivalent to -r1..2)::

            bzr diff -c2

        To see the changes introduced by revision X::
        
            bzr diff -cX

        Note that in the case of a merge, the -c option shows the changes
        compared to the left hand parent. To see the changes against
        another parent, use::

            bzr diff -r<chosen_parent>..X

        The changes between the current revision and the previous revision
        (equivalent to -c-1 and -r-2..-1)

            bzr diff -r-2..

        Show just the differences for file NEWS::

            bzr diff NEWS

        Show the differences in working tree xxx for file NEWS::

            bzr diff xxx/NEWS

        Show the differences from branch xxx to this working tree:

            bzr diff --old xxx

        Show the differences between two branches for file NEWS::

            bzr diff --old xxx --new yyy NEWS

        Same as 'bzr diff' but prefix paths with old/ and new/::

            bzr diff --prefix old/:new/
            
        Show the differences using a custom diff program with options::
        
            bzr diff --using /usr/bin/diff --diff-options -wu
    Rsfile*sdiff-optionsRRxs0Pass these options to the external diff program.RRyR3sbSet prefixes added to old and new filenames, as two values separated by a colon. (eg "old/:new/").toldsBranch/tree to compare from.RsBranch/tree to compare to.RjRuR?s"Use this command to compare files.RtFsDiff format to use.RGsbzrlib.diffRHR sDiff formattcontexts"How many lines of context to show.tditdifRc
C@sddlm}
m}|dks.|dkr=d}d}
nT|dkrXd}d}
n9d|kr||jd\}}
ntjtd	|rt|d
krtjtdn|dk	r|dk	rtjtdj	d
dn|
|||||j
dt\}}}}}}tj
}|||tjd|d|d|d|
d|d|d|d|	d|	S(Ni(t%get_trees_and_branches_to_diff_lockedtshow_diff_treest0Rt1sold/snew/t:sA--prefix expects two values separated by a colon (eg "old/:new/")is@bzr diff --revision takes exactly one or two revision specifierss"{0} and {1} are mutually exclusives--usings--formatt
apply_viewRtexternal_diff_optionst	old_labelt	new_labelRPt
path_encodingR?Rst
format_cls(tbzrlib.diffRvRwRRRRcRZRbRRRGRUtget_diff_header_encodingtsyststdout(RRjR[tdiff_optionsRRqRR?RRsRvRwR}R~Rtnew_treet
old_brancht
new_branchRRPR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR#	s8					0(sbzrlib.diffsformat_registryN(RRRRRRRR0RtintRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRpsBU								tcmd_deletedcB@s;eZdZddgZddgZeeddZRS(s,List files deleted in the working tree.
    RRDRrsshow-idsu.cC@stj|d}|j|jj|j}|j|jjx{|jD]m\}}|j|jsX|j	j
||r|j	j
d|j	j
|jn|j	j
dqXqXWdS(NiRs
(RPRQRRRRgRMthas_idRNRR(RRRrR\RqRtie((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR]	s(RRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRQ	s
tcmd_modifiedcB@sAeZdZeZddgZddgZeeddZ	RS(s)List files modified in working tree.
    RRDRrtnullu.c
C@stj|d}|j|jj|j|j}|jxZ|jD]O\}}}}}	|r|j	j
|dqR|j	j
tj|dqRWdS(Nits
(
RPRQRRRR*RgRtmodifiedRRRUtquotefn(
RRRrR\ttdRtidREt
text_modifiedt
meta_modified((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRt	s
(
RRRRGRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRl	st	cmd_addedcB@sAeZdZeZddgZddgZeeddZ	RS(s&List files added in working tree.
    RRDRrRu.cC@stj|d}|j|jj|j}|j|jj|j}x|jD]}|j|rqdn||krqdn|j	|}t
jtj
|j|t
jsqdn|r|jj|dqd|jjtj|dqdWdS(NiRs
(RPRQRRRRgtget_root_idtall_file_idsRtid2pathR8taccessRURjRktF_OKRRR(RRRrR*tbasistroot_idRNR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR	s $(
RRRRGRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR	stcmd_rootcB@s)eZdZdgZeddZRS(sqShow the tree root directory.

    The root is the nearest enclosing directory with a .bzr control
    directory.s	filename?cC@s.tj|d}|jj|jddS(sPrint the branch root.is
N(RPRQRRRk(RR_R\((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR	sN(RRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR	s	cC@sAyt|SWn,tk
r<td}tj|nXdS(Ns&The limit argument must be an integer.(Rt
ValueErrorRZRRc(tlimitstringR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt_parse_limit	s

cC@sAyt|SWn,tk
r<td}tj|nXdS(Ns'The levels argument must be an integer.(RRRZRRc(tsR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt
_parse_levels	s

tcmd_logcB@seZdZdgZddgZeddddeddd	d
dedd
ejj	ddddde
dddddd?edddddddd
eedddd
ed e
ed!dd"dd#ddd
eed$dd%dd&ed'dd(ed)d e
dd*ed+dd,ed-dd.ed/dd0ed1dd2dd3d
eed4dd5d
eed6dd7d
eed8dd9d
eed:dd;d
egZd<Zed@d=eeed@d@d@d@d@d@ed@d@eed@d@d@d@d@eejd>ZRS(AshShow historical log for a branch or subset of a branch.

    log is bzr's default tool for exploring the history of a branch.
    The branch to use is taken from the first parameter. If no parameters
    are given, the branch containing the working directory is logged.
    Here are some simple examples::

      bzr log                       log the current branch
      bzr log foo.py                log a file in its branch
      bzr log http://server/branch  log a branch on a server

    The filtering, ordering and information shown for each revision can
    be controlled as explained below. By default, all revisions are
    shown sorted (topologically) so that newer revisions appear before
    older ones and descendants always appear before ancestors. If displayed,
    merged revisions are shown indented under the revision in which they
    were merged.

    :Output control:

      The log format controls how information about each revision is
      displayed. The standard log formats are called ``long``, ``short``
      and ``line``. The default is long. See ``bzr help log-formats``
      for more details on log formats.

      The following options can be used to control what information is
      displayed::

        -l N        display a maximum of N revisions
        -n N        display N levels of revisions (0 for all, 1 for collapsed)
        -v          display a status summary (delta) for each revision
        -p          display a diff (patch) for each revision
        --show-ids  display revision-ids (and file-ids), not just revnos

      Note that the default number of levels to display is a function of the
      log format. If the -n option is not used, the standard log formats show
      just the top level (mainline).

      Status summaries are shown using status flags like A, M, etc. To see
      the changes explained using words like ``added`` and ``modified``
      instead, use the -vv option.

    :Ordering control:

      To display revisions from oldest to newest, use the --forward option.
      In most cases, using this option will have little impact on the total
      time taken to produce a log, though --forward does not incrementally
      display revisions like --reverse does when it can.

    :Revision filtering:

      The -r option can be used to specify what revision or range of revisions
      to filter against. The various forms are shown below::

        -rX      display revision X
        -rX..    display revision X and later
        -r..Y    display up to and including revision Y
        -rX..Y   display from X to Y inclusive

      See ``bzr help revisionspec`` for details on how to specify X and Y.
      Some common examples are given below::

        -r-1                show just the tip
        -r-10..             show the last 10 mainline revisions
        -rsubmit:..         show what's new on this branch
        -rancestor:path..   show changes since the common ancestor of this
                            branch and the one at location path
        -rdate:yesterday..  show changes since yesterday

      When logging a range of revisions using -rX..Y, log starts at
      revision Y and searches back in history through the primary
      ("left-hand") parents until it finds X. When logging just the
      top level (using -n1), an error is reported if X is not found
      along the way. If multi-level logging is used (-n0), X may be
      a nested merge revision and the log will be truncated accordingly.

    :Path filtering:

      If parameters are given and the first one is not a branch, the log
      will be filtered to show only those revisions that changed the
      nominated files or directories.

      Filenames are interpreted within their historical context. To log a
      deleted file, specify a revision range so that the file existed at
      the end or start of the range.

      Historical context is also important when interpreting pathnames of
      renamed files/directories. Consider the following example:

      * revision 1: add tutorial.txt
      * revision 2: modify tutorial.txt
      * revision 3: rename tutorial.txt to guide.txt; add tutorial.txt

      In this case:

      * ``bzr log guide.txt`` will log the file added in revision 1

      * ``bzr log tutorial.txt`` will log the new file added in revision 3

      * ``bzr log -r2 -p tutorial.txt`` will show the changes made to
        the original file in revision 2.

      * ``bzr log -r2 -p guide.txt`` will display an error message as there
        was no file called guide.txt in revision 2.

      Renames are always followed by log. By design, there is no need to
      explicitly ask for this (and no way to stop logging a file back
      until it was last renamed).

    :Other filtering:

      The --match option can be used for finding revisions that match a
      regular expression in a commit message, committer, author or bug.
      Specifying the option several times will match any of the supplied
      expressions. --match-author, --match-bugs, --match-committer and
      --match-message can be used to only match a specific field.

    :Tips & tricks:

      GUI tools and IDEs are often better at exploring history than command
      line tools: you may prefer qlog or viz from qbzr or bzr-gtk, the
      bzr-explorer shell, or the Loggerhead web interface.  See the Plugin
      Guide <http://doc.bazaar.canonical.com/plugins/en/> and
      <http://wiki.bazaar.canonical.com/IDEIntegration>.  

      You may find it useful to add the aliases below to ``bazaar.conf``::

        [ALIASES]
        tip = log -r-1
        top = log -l10 --line
        show = log -v -p

      ``bzr tip`` will then show the latest revision while ``bzr top``
      will show the last 10 mainline revisions. To see the details of a
      particular revision X,  ``bzr show -rX``.

      If you are interested in looking deeper into a particular merge X,
      use ``bzr log -n0 -rX``.

      ``bzr log -v`` on a branch with lots of history is currently
      very slow. A fix for this issue is currently under development.
      With or without that fix, it is recommended that a revision range
      be given when using the -v option.

      bzr has a generic full-text matching plugin, bzr-search, that can be
      used to find revisions matching user names, commit messages, etc.
      Among other features, this plugin can find all revisions containing
      a list of words but not others.

      When exploring non-mainline history on large projects with deep
      history, the performance of log can be greatly improved by installing
      the historycache plugin. This plugin buffers historical information
      trading disk space for faster speed.
    sfile*slog-formatstrevisionspectforwardRxsShow from oldest to newest.ttimezoneRvs$Show files changed in each revision.sshow-idsRjRuRRyRs?Show just the specified revision. See also "help revisionspec".s
log-formattauthorss8What names to list as authors - first, all or committer.R tAuthorsRGs
bzrlib.logtauthor_list_registrytlevelsRs4Number of levels to display - 0 for all, 1 for flat.targnameRtmessages=Show revisions whose message matches this regular expression.Rtlimittls*Limit the output to the first N revisions.s	show-diffR3s.Show changes made in each revision as a patch.sinclude-mergeds+Show merged revisions like --levels 0 does.sinclude-mergess&Historical alias for --include-merged.somit-mergess0Do not report commits with more than one parent.sexclude-common-ancestrysQDisplay only the revisions that are not part of both ancestries (require -rX..Y).t
signaturess Show digital signature validity.tmatchtms6Show revisions whose properties match this expression.s
match-messages5Show revisions whose message matches this expression.smatch-committers7Show revisions whose committer matches this expression.smatch-authors3Show revisions whose authors match this expression.s
match-bugss0Show revisions whose bugs match this expression.Rtoriginalc/C@s	ddlm}m}m}|r(dp+d}tj|rtjjddddd	d
dd|j	|
dkr}|}
qtjt
d
jdd	n|
dkrt}
n|r|dkst|dkrtjt
dn|
r1|	dkr
d}	q1tjt
d
jdd	n|dk	rt|dkr^tjn|dk	rtjt
d
jddq|}ng}t}|rD||||j\}}} }!x|D]l\}"}#}$|#dkrtjt
d|"n|"dkrg}Pn
|j|#|p:|$d7k}qWn|dk	rt|dkr|djr|dj}%nd}%tjj|%\}&}"|&j}|j|jjt|||j\} }!|jjdrt}n|r+t j!j"s+tj#dq+n|s:d}'nd}'|sOd}(n|r^d}(nd}(|dkrt$j%j&|}ntjj'dd})|d|d|j(d |)d!|d"t)d#|	d$|	dkd%|}*|o|j*j+j,}+t|dkp|p|'p|+},i}-|r1||-d<n|rD||-d&<n|rW||-d'<n|rj||-d(<n|r}||-d)<nt|dkrd}n|d*|d+|d,| d-|!d.|d/|
d0|'d1|(d2|,d3|d4|-d5|d6|
}.|||.j-|*dS(8Ni(tLoggertmake_log_request_dictt_get_info_for_log_filesRR(tdeprecated_command_optionRs--include-mergesRs--include-mergedRs2.5tcommands"{0} and {1} are mutually exclusiveis8--exclude-common-ancestry requires -r with two revisionss--levelsis
--revisions--changes2Path unknown at end or start of revision range: %sRRrstree-referenceR;tvalidate_signatures_in_logtfulltpartialRRRRt
to_exact_filet
show_timezonetdelta_formatRtshow_advicetauthor_list_handlerRt	committertauthortbugst	directiontspecific_fileidststart_revisiontend_revisionRtmessage_searcht
delta_typet	diff_typet_match_using_deltastexclude_common_ancestryRt	signaturetomit_merges(s	directorystree-reference(.t
bzrlib.logRRRRtdeprecated_passedRRRRRRRcRZRR!RbtRangeInChangeOptionRRt
get_branchRRRQRRRt_get_revision_rangeRCtget_config_stackRRGtgpgtGPGStrategytverify_signatures_availabletGpgmeNotInstalledRtlog_formatter_registrytget_defaulttmake_output_streamRRRR%t
supports_chkstshow(/RR[RRvRRRjRut
log_formatRRRt	show_difftinclude_mergedRRRRt
match_messagetmatch_committertmatch_authort
match_bugsRtinclude_mergesRRRRRQt
filter_by_dirRtfile_info_listtrev1trev2R]RNRER5R@RRtunencoded_outputtlftpartial_historytmatch_using_deltast
match_dicttrqst((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR
s	
												

"						




	(s
bzrlib.logRN(RRRRRRRR)toptionR	RRRRGRRRRRRR!RtDEPRECATED_PARAMETERR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR	s																	c	C@s?|dkrd}d}nt|dkrG|dj|}}nt|dkr|d}|d}|j|jkrtjtd|n|jdkrt|dd}n|j|}|jdkr
|j	\}}t|||}q5|j|}ntjtd|||fS(sTake the input of a revision option and turn it into a revision range.

    It returns RevisionInfo objects which can be used to obtain the rev_id's
    of the desired revisions. It does some user input validations.
    iiis:bzr %s doesn't accept two revisions in different branches.s*bzr %s --revision takes one or two values.N(
RRbRRRRcRZtspectRevisionInfotlast_revision_info(	trevisionspec_listR-RdRRt
start_spectend_spect
last_revnotlast_revision_id((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRPs,	

	
	cC@sVd}d}|ddk	r,|dj}n|ddk	rL|dj}n||fS(Nii(RR(trevision_rangetrev_id1trev_id2((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt_revision_range_to_revid_rangewstlongcC@s7|}|rd}n|r$d}n|r3d}n|S(NRRwtline((RRwRRLR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytget_log_formats			tcmd_touching_revisionscB@s,eZdZeZdgZedZRS(sqReturn revision-ids which affected a particular file.

    A more user-friendly interface is "bzr log FILE".
    R_c
C@stj|\}}|j|}|j}|j|jjtj||}x1|D])\}}}	|j	j
d||	fq\WdS(Ns%6d %s
(RPRQR4R-RRRRtfind_touching_revisionsRR(
RR_R\R]RNRt
touching_revsRRtwhat((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	(RRRRGRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	tcmd_lscB@seZdZddgZdgZddedddd	d
edd	ded
ddd	dedd	dddedddd	dedddd	ddedddgZede
e
e
e
e
e
e
de
dddZRS(sList files in a tree.
    Rtcatspath?RvRjRRyRRxsRecurse into subdirectories.s	from-roots/Print paths relative to the root of the branch.tunknowntusPrint unknown files.R{sPrint versioned files.R|R.R
sPrint ignored files.RER	s<List entries of a particular kind: file, directory, symlink.RRsshow-idsRrc
 C@s|	r*|	dkr*tjtdn|rN|rNtjtdn|p]|p]|}
i|d6|d6|d6}|dkrd	}n$|rtjtd
n|}t||\}}}d}|r|r|d}qn)|d	kr|jdr|d}n|dk	s0|dkrHtd|d
|}nt}t|t	r|j
r|jj}|rt
}tj|}ttd|qn|j|jjx|jdtd|d|D]\}}}}}|
r||rqn|	dk	r-||	kr-qn|ry5|rQtj||}n|}tj||Wqtjk
rqqXn|rtj||}n|j}||}tjj|rd||f}|
r|dk	rd||f}n|jj|dq|rw|jj|d|
rg|dk	rT|jj|n|jjdn|jjq|
r|dk	r|}nd}|jjd||fq|jj|dqWdS(NRFRrRGsinvalid kind specifieds$Cannot set both --verbose and --nulltIt?R|R;s(cannot specify both --from-root and PATHR,RDR-s'Ignoring files outside view. View is %stinclude_roottfrom_dirRs%-8s %ss%-50s %ss
RRs	%-50s %s
(sfiles	directoryssymlink(RRcRZRRstendswithRkR!RVRPRRRSRTRGRYRRRRt
list_filesRURjtcheck_path_in_viewRWtkind_characterRRt
clear_termRRtflush( RRjRvRt	from_rootRR{R.RRERRRrtallt	selectiontfs_pathR\R-R]RR{R^R`tfptfctfkindR4RStfullpathtkindcht	outstringtmy_id((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	
"


	N(RRRRRRR0RRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs4				tcmd_unknownscB@s8eZdZeZdgZdgZeddZRS(sList unknown files.
    RDRru.cC@sEx>tj|djD]#}|jjtj|dqWdS(Nis
(RPRQtunknownsRRRUR(RRrR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs (	RRRRGRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs		t
cmd_ignorecB@sPeZdZdddgZdgZdedddgZddd	d
ZRS(s	Ignore specified files or patterns.

    See ``bzr help patterns`` for details on the syntax of patterns.

    If a .bzrignore file does not exist, the ignore command
    will create one and add the specified files or patterns to the newly
    created file. The ignore command will also automatically add the 
    .bzrignore file to be versioned. Creating a .bzrignore file without
    the use of the ignore command will require an explicit add command.

    To remove patterns from the ignore list, edit the .bzrignore file.
    After adding, editing or deleting that file either indirectly by
    using this command or directly by using an editor, be sure to commit
    it.
    
    Bazaar also supports a global ignore file ~/.bazaar/ignore. On Windows
    the global ignore file can be found in the application data directory as
    C:\Documents and Settings\<user>\Application Data\Bazaar\2.0\ignore.
    Global ignores are not touched by this command. The global ignore file
    can be edited directly using an editor.

    Patterns prefixed with '!' are exceptions to ignore patterns and take
    precedence over regular ignores.  Such exceptions are used to specify
    files that should be versioned which would otherwise be ignored.
    
    Patterns prefixed with '!!' act as regular ignore patterns, but have
    precedence over the '!' exception patterns.

    :Notes: 
        
    * Ignore patterns containing shell wildcards must be quoted from
      the shell on Unix.

    * Ignore patterns starting with "#" act as comments in the ignore file.
      To ignore patterns that begin with that character, use the "RE:" prefix.

    :Examples:
        Ignore the top level Makefile::

            bzr ignore ./Makefile

        Ignore .class files in all directories...::

            bzr ignore "*.class"

        ...but do not ignore "special.class"::

            bzr ignore "!special.class"

        Ignore files whose name begins with the "#" character::

            bzr ignore "RE:^#"

        Ignore .o files under the lib directory::

            bzr ignore "lib/**/*.o"

        Ignore .o files under the lib directory::

            bzr ignore "RE:lib/.*\.o"

        Ignore everything but the "debian" toplevel directory::

            bzr ignore "RE:(?!debian/).*"
        
        Ignore everything except the "local" toplevel directory,
        but always ignore autosave files ending in ~, even under local/::
        
            bzr ignore "*"
            bzr ignore "!./local"
            bzr ignore "!!*~"
    RR.tpatternss
name_pattern*Rrs
default-rulesRxs/Display the default ignore rules that bzr uses.u.cC@sSddlm}|dk	rHx%|jD]}|jjd|q&WdS|sftjtdng|D]}t	j
|^qm}d}d}x;|D]3}t	jj|s|d7}|d|7}qqW|rt
dd	||}	tjj|	tjdnxX|D]P}
|
dd
ksOt|
dkr|
ddkrtjtdqqWtj|\}}|j||t	j|}
g}|j|jjxV|jD]H}|d
}|dk	r|d}|
j|r|j|qqqWt|dkrO|jjtddj|fndS(Ni(tignoress%s
s=ignore requires at least one NAME_PATTERN or --default-rules.Ris
  %ss Invalid ignore pattern found. %ss!Invalid ignore patterns found. %sR,Rzs+NAME_PATTERN should not be an absolute pathisWarning: the following files are version controlled and match your ignore pattern:
%s
These files will continue to be version controlled unless you 'bzr remove' them.
s
(R)R"Rt
USER_DEFAULTSRRRRcRZtglobbingtnormalize_patterntGlobstertis_pattern_validRRRt
show_errortInvalidPatternRbRPRQttree_ignores_add_patternsRRRRRRR4(Rtname_pattern_listt
default_rulesRrR"tpatternR3tbad_patternstbad_patterns_countRtname_patternR\R]R.tmatchesRSRR_((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRssP



"	

N(	RRRRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR "sH		tcmd_ignoredcB@s;eZdZdZddgZdgZeddZRS(sList ignored files and the patterns that matched them.

    List all the ignored files and the ignore pattern that caused the file to
    be ignored.

    Alternatively, to list just the files::

        bzr ls --ignored
    RRRDRru.c	C@stj|d}|j|jjx^|jD]P\}}}}}|dkr]q6n|j|}|jjd||fq6WdS(NiR	s	%-50s %s
(	RPRQRRRRRRR(	RRrR\Rt
file_classRERNRStpat((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs"(RRRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR2s		tcmd_lookup_revisioncB@s8eZdZeZdgZdgZeddZRS(saLookup the revision-id from a revision-number

    :Examples:
        bzr lookup-revision 33
    RRru.cC@styt|}Wn*tk
r<tjtd|nXtj|djj|}|j	j
d|dS(Nsnot a valid revision-number: %ris%s
(RRRRcRZRPRQR-t
get_rev_idRR(RRRrR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
(	RRRRGRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR5s		t
cmd_exportc
B@seZdZdZddgZdedddded	ed
ddeddedd
edddedddgZdddde
e
e
ddZRS(sExport current or past revision to a destination directory or archive.

    If no revision is specified this exports the last committed revision.

    Format may be an "exporter" name, such as tar, tgz, tbz2.  If none is
    given, try to find the format with the extension. If no extension
    is found exports to a directory (equivalent to --format=dir).

    If root is supplied, it will be used as the root directory inside
    container formats (tar, zip, etc). If it is not supplied it will default
    to the exported filename. The root option has no effect for 'dir' format.

    If branch is omitted then the branch containing the current working
    directory will be used.

    Note: Export of tree with non-ASCII filenames to zip is not supported.

      =================       =========================
      Supported formats       Autodetected by extension
      =================       =========================
         dir                         (none)
         tar                          .tar
         tbz2                    .tar.bz2, .tbz2
         tgz                      .tar.gz, .tgz
         zip                          .zip
      =================       =========================
    RRqsbranch_or_subdir?RrRRxsType of file to export to.RRjtfilterss4Apply content filters to export the convenient form.R)s4Name of the root directory inside the exported file.sper-file-timestampssTSet modification time of files to that of the last revision in which it was changed.tuncommittedsGExport the working tree contents rather than that of the last revision.u.c

C@sddlm}
|dkr%|	}ntjj|\}}}
|dk	re|j|jjn|r|dkrt	j
tdn|}ntd|d|d|}y&|
|||||
d|d|Wn2t	j
k
r
}t	j
td	|jnXdS(
Ni(texports%--uncommitted requires a working treeR:R-R\tfilteredtper_file_timestampssUnsupported export format: %s(t
bzrlib.exportR:RRRRqRRRRRcRZRktNoSuchExportFormatR(RRqtbranch_or_subdirRjRR)R8R<R9RrR:R\Rtsubdirtexport_treeR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR
s&			N(RRRRRRR0RRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR7s&					tcmd_catcB@steZdZdgZdedddeddddgZd	gZd
Zed
e
e
d
dZdZRS(sWrite the contents of a file as of a given revision to standard output.

    If no revision is nominated, the last revision is used.

    Note: Take care to redirect standard output when using this command on a
    binary file.
    RDRrsname-from-revisionRxsThe path name in the old tree.R8s6Apply content filters to display the convenience form.RjR_Rc	C@s|dk	r6t|dkr6tjtdnt||\}}}|j|jj|j	|||||||S(Nis7bzr cat --revision takes exactly one revision specifier(
RRbRRcRZRsRRRR[(	RR_Rjtname_from_revisionR8RrR\R-R]((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR1
scC@sp|dkr|j}ntd|d|}|j|jj|j|}	|r|	dkrtjt	dj
||jq	|	}
no|j|}|dk	r|j|r|}
n<|	dk	r|	}
n'tjt	dj
||j|rCddl
m}|||j}
|
j|
}n|j|
}|j|jj|dS(NRR-s${0!r} is not present in revision {1}i(tContentFilterTree(RRgRkRRRR4RRcRZRtget_revision_idRtbzrlib.filter_treeRDt_content_filter_stackt
get_file_textRRR(RR\RR]R_RjRCR;Ritold_file_idtactual_file_idtcur_file_idRDtfilter_treetcontent((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR[=
s6							
N(
RRRRRRRRRRR!RR[(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRB
s			
tcmd_local_time_offsetcB@s#eZdZeZedZRS(s2Show the offset in seconds from GMT to local time.cC@s|jjdtjdS(Ns%s
(RRRUtlocal_time_offset(R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRj
s(RRRRGRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRNg
st
cmd_commitcB@s^eZdZddddgZdgZeddedd	d
deddedd
d
ddedd
deddeddddd
dedd
dedded
dedded
dedded
dedd
d ed!dd"d
d#ed$d
d%gZ	d&d'gZ
d(Zd*d*e
d*e
e
e
d*d*e
d*d*e
d)
ZRS(+s5	Commit changes into a new revision.

    An explanatory message needs to be given for each commit. This is
    often done by using the --message option (getting the message from the
    command line) or by using the --file option (getting the message from
    a file). If neither of these options is given, an editor is opened for
    the user to enter the message. To see the changed files in the
    boilerplate text loaded into the editor, use the --show-diff option.

    By default, the entire tree is committed and the person doing the
    commit is assumed to be the author. These defaults can be overridden
    as explained below.

    :Selective commits:

      If selected files are specified, only changes to those files are
      committed.  If a directory is specified then the directory and
      everything within it is committed.
  
      When excludes are given, they take precedence over selected files.
      For example, to commit only changes within foo, but not changes
      within foo/bar::
  
        bzr commit foo -x foo/bar
  
      A selective commit after a merge is not yet supported.

    :Custom authors:

      If the author of the change is not the same person as the committer,
      you can specify the author's name using the --author option. The
      name should be in the same format as a committer-id, e.g.
      "John Doe <jdoe@example.com>". If there is more than one author of
      the change you can specify the option multiple times, once for each
      author.
  
    :Checks:

      A common mistake is to forget to add a new file or directory before
      running the commit command. The --strict option checks for unknown
      files and aborts the commit if any are found. More advanced pre-commit
      checks can be implemented by defining hooks. See ``bzr help hooks``
      for details.

    :Things to note:

      If you accidentially commit the wrong changes or make a spelling
      mistake in the commit message say, you can use the uncommit command
      to undo it. See ``bzr help uncommit`` for details.

      Hooks can also be configured to run after a commit. This allows you
      to trigger updates to external systems like bug trackers. The --fixes
      option can be used to record the association between a revision and
      one or more bugs. See ``bzr help bugs`` for details.
    R Rthookstuncommits	selected*texcludeRRytxRxs-Do not consider changes made to a given path.RRs Description of the new revision.Rvt	unchangeds#Commit even if nothing has changed.RFRrRtmsgfiles#Take commit message from this file.Rs@Refuse to commit if there are unknown files in the working tree.scommit-timesVManually set a commit time using commit date format, e.g. '2009-10-10 08:00:00 +0100'.tfixessAMark a bug as being fixed by this revision (see "bzr help bugs").Rs<Set the author's name, if it's different from the committer.R~sPerform a local commit in a bound branch.  Local commits are not pushed to the master branch until a normal commit is performed.s	show-diffR3s_When no message is supplied, show the diff along with the status summary in the message editor.tlossysjWhen committing to a foreign version control system do not push data that can not be natively represented.tcitcheckinc
c@sZd}xM|D]E}|jd}t|dkr|dkr^|j}|jd}n|dkrtjtd|n|}|d}n:t|dkrtjtd|n|\}}ytj	|||VWq
tj
k
rtjtd|q
tjk
rQ}	tjtd	t|	fq
Xq
WdS(
NRzit
bugtrackersNo tracker specified for bug %s. Use the form 'tracker:id' or specify a default bug tracker using the `bugtracker` option.
See "bzr help bugs" for more information on this feature. Commit refused.iis~Invalid bug %s. Must be in the form of 'tracker:id'. See "bzr help bugs" for more information on this feature.
Commit refused.s$Unrecognized bug %s. Commit refused.s%s
Commit refused.(
RRRbRRRRcRZR[tget_bug_urltUnknownBugTrackerAbbreviationtMalformedBugIdentifierR(
RRWR-tdefault_bugtrackert	fixed_bugttokenst
branch_configttagtbug_idR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt_iter_bug_fix_urls
s6
	

	
		c@s3ddlm}m}m}ddlmmmmd}}|dk	ryt
j|\}}Wqtk
r}t
jtdt|qXni}tj\dgkrgn|dkrg}ntj|j|j}|r||d<n|rCjjrCt
jndk	rytj}Wntk
r{t}nX|rdid6}tjj|nd	krj d
dj d	dnrt
jtdqnf	d
}s0dnyej!d|dd|d|d|ddd|d|d|	d|d|dj"|d|

Wn|k
rt
jtdnr|k
rt
jtdnM|k
rt
jtdn(t
j#k
r.}td|_$nXdS(Ni(tPointlessCommittConflictsInTreetStrictCommitFailed(tedit_commit_message_encodedt generate_commit_message_templatet$make_commit_message_template_encodedtset_commit_messagesCould not parse --commit-time: RRsfThe commit message is a file name: "%(f)s".
(use --file "%(f)s" to take commit message from that file)Rs
s
s
s)please specify either --message or --filec@srBt}z|jjtj}Wd|jXndk	rW}nddtj}|}|dkr|}|d|}n|dkrtjt	dn|dkrtjt	dn|S(sCallback to get commit messageNRtoutput_encodingt
start_messages?please specify a commit message with either --message or --fileRsEmpty commit message specified. Please specify a commit message with either --message or --file or leave a blank message with --message "".(
R treadRRUtget_user_encodingtcloseRRRcRZ(t
commit_objRt
my_messagettextRn(	RiRFRjRkRt
selected_listRlRR\(s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytget_message7s(		tmessage_callbackRtallow_pointlessRR~treporterRvtrevpropsRt	timestampRRSRXsqNo changes to commit. Please 'bzr add' the files you want to commit, or use --unchanged to force an empty commit.s`Conflicts detected in working tree.  Use "bzr conflicts" to list, "bzr resolve FILE" to resolve.sCCommit refused because there are unknown files in the working tree.s~
To commit to master branch, run update and then commit.
You can also pass --local to commit to continue working disconnected.(%t
bzrlib.errorsRfRgRhtbzrlib.msgeditorRiRjRkRlRR{tparse_patch_dateRRRcRZRRPRR[tencode_fixes_bug_urlsReR-RRRURgtUnicodeErrorR!RRtshow_warningRtcommittsafe_relpath_filestBoundBranchOutOfDatet
extra_help(RRRFRvRuRURR~RWRRRStcommit_timeRXRfRgRhtcommit_stamptoffsetRt
propertiestbug_propertytfile_existstwarning_msgRv((	RiRFRjRkRRuRlRR\s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR
sr"
			


	'&	


N(RRRRRRRRR0RRReRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRPp
sF7						#t	cmd_checkcB@sneZdZdgZdgZdedddeddded	dd
gZdeeeedZ	RS(
s	Validate working tree structure, branch consistency and repository history.

    This command checks various invariants about branch and repository storage
    to detect data corruption or bzr bugs.

    The working tree and branch checks will only give output if a problem is
    detected. The output fields of the repository check are:

    revisions
        This is just the number of revisions checked.  It doesn't
        indicate a problem.

    versionedfiles
        This is just the number of versionedfiles checked.  It
        doesn't indicate a problem.

    unreferenced ancestors
        Texts that are ancestors of other texts, but
        are not properly referenced by the revision ancestry.  This is a
        subtle problem that Bazaar can work around.

    unique file texts
        This is the total number of unique file contents
        seen in the checked revisions.  It does not indicate a problem.

    repeated file texts
        This is the total number of repeated texts seen
        in the checked revisions.  Texts can be repeated when their file
        entries are modified, but the file contents are not.  It does not
        indicate a problem.

    If no restrictions are specified, all Bazaar data that is found at the given
    location will be checked.

    :Examples:

        Check the tree and branch at 'foo'::

            bzr check --tree --branch foo

        Check only the repository at 'bar'::

            bzr check --repo bar

        Check everything at 'baz'::

            bzr check baz
    R9spath?RvR-Rxs2Check the branch related to the current directory.RNs6Check the repository related to the current directory.R\s8Check the working tree related to the current directory.c	C@snddlm}|dkr%d}n|rK|rK|rKt}}}n|||d|d|d|dS(Ni(t
check_dwimR;t	do_branchtdo_repotdo_tree(tbzrlib.checkRRRG(RRRvR-RNR\R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	N(
RRRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR{s0		tcmd_upgradecB@seZdZdddgZdgZedddddddd
eddedddedddgZdde
e
dZRS(sAUpgrade a repository, branch or working tree to a newer format.

    When the default format has changed after a major new release of
    Bazaar, you may be informed during certain operations that you
    should upgrade. Upgrading to a newer format may improve performance
    or make new features available. It may however limit interoperability
    with older repositories or with older versions of Bazaar.

    If you wish to upgrade to a particular format rather than the
    current default, that can be specified using the --format option.
    As a consequence, you can use the upgrade command this way to
    "downgrade" to an earlier format, though some conversions are
    a one way process (e.g. changing from the 1.x default to the
    2.x default) so downgrading is not always possible.

    A backup.bzr.~#~ directory is created at the start of the conversion
    process (where # is a number). By default, this is left there on
    completion. If the conversion fails, delete the new .bzr directory
    and rename this one back in its place. Use the --clean option to ask
    for the backup.bzr directory to be removed on successful conversion.
    Alternatively, you can delete it by hand if everything looks good
    afterwards.

    If the location given is a shared repository, dependent branches
    are also converted provided the repository converts successfully.
    If the conversion of a branch fails, remaining branches are still
    tried.

    For more information on upgrades, see the Bazaar Upgrade Guide,
    http://doc.bazaar.canonical.com/latest/en/upgrade-guide/.
    R8R9tformatssurl?RRxsBUpgrade to a specific format.  See "bzr help formats" for details.RGsbzrlib.controldirRHRIcC@stjj|S(N(RRHRJ(RC((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRKsR!R s
Branch formattcleans.Remove the backup.bzr directory if successful.sdry-runs8Show what would be done, but don't actually do anything.R;cC@s[ddlm}|||d|d|}|rWt|dkrP|dqWdSndS(Ni(tupgradetclean_upR'ii(tbzrlib.upgradeRRb(RRcRRR'Rt
exceptions((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
(sbzrlib.controldirsformat_registryN(RRRRRRRGRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs					t
cmd_whoamicB@s_eZdZdedddedddgZdgZdZeeed
d
d	Z
RS(sShow or set bzr user id.

    :Examples:
        Show the email of the current user::

            bzr whoami --email

        Set the current user::

            bzr whoami "Frank Chu <fchu@example.com>"
    RrtemailRxsDisplay email address only.R-s8Set identity for the current branch instead of globally.sname?Rc	C@s|dkr|dkr[ytjddj}Wqptjk
rWtj}qpXntj|j}|j	d}|r|j
jtj|dn|j
j|ddS|rtj
tdnytj|Wn#tjk
r}td|nX|rt|dkr@tjddj}qtj|}|j|jj|j}ntj}|jd|dS(Nu.iRs
s5--email can only be used to display existing identitysV"%s" does not seem to contain an email address.  This is allowed, but not recommended.(RR9RQRRRt_mod_configtGlobalStackR RRRtextract_email_addressRcRZtNoEmailInUsernameRRRRR@(	RRR-RCRrRtidentityRR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs8N(RRRRRRRRR!RR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs			tcmd_nickcB@sGeZdZdgZdgZdgZdddZedZ	RS(sCPrint or set the branch nickname.

    If unset, the colocated branch name is used for colocated branches, and
    the branch directory name is used for other branches.  To print the
    current nickname, execute with no argument.

    Bound branches use the nickname of its master branch unless it is set
    locally.
    Rs	nickname?Rru.cC@s<tj|d}|dkr/|j|n	||_dS(Ni(R9RQRtprintmetnick(RtnicknameRrR-((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRKscC@s|jjd|jdS(Ns%s
(RRR(RR-((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRRsN(
RRRRRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR=s				t	cmd_aliascB@skeZdZdgZedddgZd
edZdZ	e
dZe
dZd	Z
RS(sQSet/unset and display aliases.

    :Examples:
        Show the current aliases::

            bzr alias

        Show the alias specified for 'll'::

            bzr alias ll

        Set an alias for 'll'::

            bzr alias ll="log --line -r-10..-1"

        To remove an alias for 'll'::

            bzr alias --remove ll

    sname?RRxsRemove the alias.cC@sz|r|j|n`|dkr/|jnG|jd}|dkrZ|j|n|j|| ||ddS(Nt=ii(tremove_aliasRt
print_aliasestfindtprint_aliast	set_alias(RRCRt	equal_pos((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRqs
cC@sA|dkr$tjtdntj}|j|dS(Ns.bzr alias --remove expects an alias to remove.(RRRcRZRtGlobalConfigtunset_alias(Rt
alias_nameR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR}s
	cC@sStjj}x:t|jD]&\}}|jjd||fq%WdS(s:Print out the defined aliases in a similar format to bash.sbzr alias %s="%s"
N(RRtget_aliasesR$RBRR(RRtkeytvalue((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRscC@sfddlm}||}|dkr?|jjd|n#|jjd|dj|fdS(Ni(t	get_aliassbzr alias: %s: not found
sbzr alias %s="%s"
R(tbzrlib.commandsRRRRR4(RRRtalias((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	cC@s tj}|j||dS(s$Save the alias in the global config.N(RRR(RRt
alias_commandR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsN(RRRRRRRR!RRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRWs			
tcmd_selftestcB@seZdZdZeZdgZdeddddded	dd
deeddd
deedddedddedddddedddeddddd<de	edde
dd dd!ed"de
dd#dd$dd%ed&dd'ed(dd)ed*de
dd+dd,ed-de
dd.dd/ed0de
dd1d2d3dd4dd5ed6dd7gZd8Z
d9Zd=e	e	d=d=d=e	e	d=d=e	d=d=d=e	d=e	e	d:Zd;ZRS(>sRun internal test suite.

    If arguments are given, they are regular expressions that say which tests
    should run.  Tests matching any expression are run, and other tests are
    not run.

    Alternatively if --first is given, matching tests are run first and then
    all other tests are run.  This is useful if you have been working in a
    particular area, but want to make sure nothing else was broken.

    If --exclude is given, tests that match that regular expression are
    excluded, regardless of whether they match --first or not.

    To help catch accidential dependencies between tests, the --randomize
    option is useful. In most cases, the argument used is the word 'now'.
    Note that the seed used for the random number generator is displayed
    when this option is used. The seed can be explicitly passed as the
    argument to this option if required. This enables reproduction of the
    actual ordering used if and when an order sensitive problem is encountered.

    If --list-only is given, the tests that would be run are listed. This is
    useful when combined with --first, --exclude and/or --randomize to
    understand their impact. The test harness reports "Listed nn tests in ..."
    instead of "Ran nn tests in ..." when list mode is enabled.

    If the global option '--no-plugins' is given, plugins are not loaded
    before running the selftests.  This has two effects: features provided or
    modified by plugins will not be tested, and tests provided by plugins will
    not be run.

    Tests that need working space on disk use a common temporary directory,
    typically inside $TMPDIR or /tmp.

    If you set BZR_TEST_PDB=1 when running selftest, failing tests will drop
    into a pdb postmortem session.

    The --coverage=DIRNAME global option produces a report with covered code
    indicated.

    :Examples:
        Run only tests relating to 'ignore'::

            bzr selftest ignore

        Disable plugins and list tests as they're run::

            bzr --no-plugins selftest -v
    cC@s|dkr#ddlm}|jS|dkrFddlm}tjS|dkriddlm}|jSd|}tj|dS(	s'Parse and return a transport specifier.tsftpi(t	stub_sftptmemory(ttest_servertfakenfss6No known transport type %s. Supported types are: sftp
N(	tbzrlib.testsRtSFTPAbsoluteServerRRtMemoryServert
FakeNFSServerRRc(t
typestringRRR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pytget_transport_typess
testspecs*RvtoneRxsStop when one test fails.RyRyRs?Use a different transport by default throughout the test suite.Rt	benchmarks)Run the benchmarks rather than selftests.Rslsprof-timeds8Generate lsprof output for benchmarked sections of code.slsprof-testss%Generate lsprof output for each test.tfirsts-Run all tests, but run specified tests first.Rs	list-onlys'List the tests instead of running them.tparallelsRun the test suite in parallel.RGsbzrlib.teststparallel_registryR!t	randomizeRtSEEDsPRandomize the order of tests using the given seed or "now" for the current time.RStPATTERNRTs1Exclude tests that match this regular expression.tsubunits!Output test progress via subunit.Rs/Fail on missing dependencies or known failures.s	load-listtTESTLISTFILEs%Load a test id list from a text file.t	debugflagtEsTurn on a selftest debug flag.s
starting-withtTESTIDt
param_namet
starting_withRs)Load only the tests starting with TESTID.tsyncsGBy default we disable fsync and fdatasync while running the test suite.RcC@stj|i|_dS(N(Rt__init__tadditional_selftest_args(R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
cC@sItjyddlm}Wn tk
r@tjdnX|dk	r_dj|}nd}|r
yddl	m
}Wn&tk
rtjtdnX||jd<t
jd	kr
tt
jd
ddk	r
ddl}|jt
jjtjq
n|r2|jjdgj|n|rPtjtdnd}|
sed}nd
dj|
d}|s|jni|d6|d6|d6|d6|d6|d6|d6|d6|d6|	d6|d6|d6|d6|
d6|d6}|j|jtjdt}z|j|}Wd|Xt|S(Ni(ttestssVtests not available. Install the python-bzrlib.tests package to run the bzr testsuite.t|s.*(tSubUnitBzrRunnersFsubunit not available. subunit needs to be installed to use --subunit.trunner_classtwin32tfilenotsuite_decoratorssI--benchmark is no longer supported from bzr 2.2; use bzr-usertest insteadt(t)RvR-tstop_on_failureRttest_suite_factorytlsprof_timedtlsprof_teststmatching_tests_firstt	list_onlytrandom_seedtexclude_patternRt	load_listtdebug_flagsRtoverride(Rtdisallow_proxyingR)RtImportErrorRRcRR4RRRZRRtplatformRRtmsvcrttsetmodeRR8tO_BINARYt
setdefaultRt_disable_fsyncRzRtactivate_deprecation_warningsR!tselftestR(Rttestspecs_listRvRRRRRRRRSRRRRRRRRRR-RRRRtselftest_kwargstcleanupR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsh



"			


		cC@sjttdd|_|jdk	r3dt_nttdd|_|jdk	rfdt_ndS(s1Change the 'os' functionality to not synchronize.tfsynccS@sdS(N(R(tfiledes((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRKrst	fdatasynccS@sdS(N(R(R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRKusN(RR8Rt_orig_fsyncRt_orig_fdatasyncR(R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRns(sbzrlib.testsRN(RRRRRGRRRRR!RRRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsn0															Mtcmd_versioncB@s;eZdZdZedddgZeedZRS(sShow version of bzr.RRwRxsPrint just the version number.cC@sDddlm}|r0|jjtjdn|d|jdS(Ni(tshow_versions
R(tbzrlib.versionRRRR)tversion_string(RRwR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs(	RRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRxs
t	cmd_rockscB@s#eZdZeZedZRS(sStatement of optimism.cC@s|jjtddS(NsIt sure does!
(RRRZ(R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs(RRRRGRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRstcmd_find_merge_basecB@s/eZdZddgZeZedZRS(s8Find and print a base revision for merging two branches.R-totherc
C@sddlm}tj|d}tj|d}|j|jj|j|jj||j}||j}|jj	|j}|j
||}	|jjt
d|	dS(Ni(Rsmerge base is revision %s
(tbzrlib.revisionRR9RQRRRRRR=tfind_unique_lcaRRRZ(
RR-RRtbranch1tbranch2tlast1tlast2RBtbase_rev_id((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs(RRRRRGRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRst	cmd_mergecB@s7eZdZdZddddgZdgZdded	d
ddd
dedd
dedd
dedd
dedd
dedd
dedd
dddgZd'd'e
d'e
d'd'e
e
d'e
e
dZdZdZ
d Zd!Zd"Zd#Zd$Zd'd'd%Zd&ZRS((sBPerform a three-way merge.

    The source of the merge can be specified either in the form of a branch,
    or in the form of a path to a file containing a merge directive generated
    with bzr send. If neither is specified, the default is the upstream branch
    or the branch most recently merged using --remember.  The source of the
    merge may also be specified in the form of a path to a file in another
    branch:  in this case, only the modifications to that file are merged into
    the current working tree.

    When merging from a branch, by default bzr will try to merge in all new
    work from the other branch, automatically determining an appropriate base
    revision.  If this fails, you may need to give an explicit base.

    To pick a different ending revision, pass "--revision OTHER".  bzr will
    try to merge in all new work up to and including revision OTHER.

    If you specify two values, "--revision BASE..OTHER", only revisions BASE
    through OTHER, excluding BASE but including OTHER, will be merged.  If this
    causes some revisions to be skipped, i.e. if the destination branch does
    not already contain revision BASE, such a merge is commonly referred to as
    a "cherrypick". Unlike a normal merge, Bazaar does not currently track
    cherrypicks. The changes look like a normal commit, and the history of the
    changes from the other branch is not stored in the commit.

    Revision numbers are always relative to the source branch.

    Merge will do its best to combine the changes in two branches, but there
    are some kinds of problems only a human can fix.  When it encounters those,
    it will mark a conflict.  A conflict means that you need to fix something,
    before you can commit.

    Use bzr resolve when you have fixed a problem.  See also bzr conflicts.

    If there is no default branch set, the first merge will set it (use
    --no-remember to avoid setting it). After that, you can omit the branch
    to use the default.  To change the default, use --remember. The value will
    only be saved if the remote location can be accessed.

    The results of the merge are placed into the destination working
    directory, where they can be reviewed (with bzr diff), tested, and then
    committed to record the result of the merge.

    merge refuses to run if there are any uncommitted changes, unless
    --force is given.  If --force is given, then the changes from the source 
    will be merged with the current working tree, including any uncommitted
    changes in the tree.  The --force option can also be used to create a
    merge revision which has more than two parents.

    If one would like to merge changes from the working tree of the other
    branch without merging any committed revisions, the --uncommitted option
    can be given.

    To select only some changes to merge, use "merge -i", which will prompt
    you to apply each diff hunk and file change, similar to "shelve".

    :Examples:
        To merge all new revisions from bzr.dev::

            bzr merge ../bzr.dev

        To merge changes up to and including revision 82 from bzr.dev::

            bzr merge -r 82 ../bzr.dev

        To merge the changes introduced by 82, without previous changes::

            bzr merge -r 81..82 ../bzr.dev

        To apply a merge directive contained in /tmp/merge::

            bzr merge /tmp/merge

        To create a merge revision with three parents from two branches
        feature1a and feature1b:

            bzr merge ../feature1a
            bzr merge ../feature1b --force
            bzr commit -m 'revision with three parents'
    RRztremergesstatus-flagsR{s	location?RuRjRRxs;Merge even if the destination tree has uncommitted changes.s
merge-typet	reprocessR|s	show-bases%Show base revision text in conflicts.R9sIApply uncommitted changes from a working copy, instead of branch changes.RsIf the destination is already completely merged into the source, pull from the source rather than merging.  When this happens, you do not need to commit the result.RrsKBranch to merge into, rather than the one containing the working directory.tpreviews-Instead of merging, show a diff of the merge.tinteractivesSelect changes interactively.RyR
c
C@s|dkrtj}n|
dkr-d}
ng}
d}t}d}tj|
d}|jjdkrtj	t
dny|j|j}Wn tj
k
r|j}nX|s|jrtj|qnt|}tjd|jd|}tjj}|j|j|j|jj|dk	rytj|d|
}Wntjk
rd}qX|rtj	t
dn|dk	rtj	t
d	ntjj ||d\}}n|dkrO|rO|dk	r1t!|dkr1tj	t
d
n|j"||d}t#}n|dkr|j$|||||
d\}}n||_%||_&||_'|j(||j)|j*kr3|j*dk	r3|j+r|j,j-|j+dst.t
dt/|tj0|gqnt.t
ddS|	r|r|j+dk	rgtj	t
d
n|j)|jkr|j1|j2t#|j*}|j3|j4dSn|j5dkrtj	t
dn|r|j6|S|r|j7|S|j8||||SdS(Nu.tinapplicableis_Merging into empty branches not currently supported, https://bugs.launchpad.net/bzr/+bug/308562RRnRs:Cannot use --uncommitted with bundles or merge directives.s.Cannot use -r with merge directives or bundless9Cannot use --uncommitted and --revision at the same time.smerger: sNothing to do.sCannot pull individual filessAThis branch has no commits. (perhaps you would prefer 'bzr pull')(9Rt
_mod_mergetMerge3MergerRGRPRQR-RRRcRZt
revision_treeRRRgRRRpRRRRRtnested_progress_barRtfinishedRRRRRtMergertfrom_mergeableRbtget_merger_from_uncommittedR!t_get_merger_from_brancht
merge_typeRRtsanity_check_mergerRtother_rev_idtinteresting_filest
other_treethas_filenameRRtPathsDoNotExistRtother_branchRRt
this_basist_do_previewt_do_interactivet	_do_merge(RR5RjRRRRR|R9RRrRR
Rtmergert
allow_pendingRR\RgRnRtpbRR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs		

						
		
	

cC@s8|j}|j}|j|j|j}|S(N(tmake_mergertmake_preview_transformRtfinalizetget_preview_tree(RR$ttree_mergerttttresult_tree((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt_get_preview}s
c
C@sWddlm}|j|}tj}||j||jddddd|dS(Ni(RwR}RR~R(RRwR.RURt	this_treeR(RR$RwR-R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR!scC@sY||_|j}|r(|jn|dkrAtdn|dkrQdSdSdS(Ntfaileds$Preview patch does not match changesii(Rtdo_mergetset_pendingR(RR$RR%Rtconflict_count((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR#s	

c
C@sddlm}|j|}tjjj}|j|j|dtd|j	d|t
j}z|jWd|j
XdS(sPerform an interactive merge.

        This works by generating a preview tree of the merge, then using
        Shelver to selectively remove the differences between the working tree
        and the preview tree.
        i(tshelf_uitdestroyRytdiff_writerN(R)R4R.Rtdiff_writer_registryRtShelverR/RGt
ApplyReporterRRRR)(RR$R4R-twritertshelver((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR"scC@s|jr:|jtjk	r:tjtd|jn|jdkrp|jr^t	|_qp|jj
|_n|jr|jj
rtjtd|jn|jr|jrtjtdndS(Ns2Show-base is not supported for this merge type. %ss6Conflict reduction is not supported for merge type %s.s+Cannot do conflict reduction and show base.(RRRRRRcRZRRR!tsupports_reprocess(RR$((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs		cC@sddlm}|j|||d\}}	|dk	rmt|dkrm|j|||d\}
}n|}
tj||\}}
|
|kr|}ntj|
|\}}d}d}|dk	r#t|dkr|dj|}nt|dkr#|dj|}q#n|dkrGtj	|j
}n|	dk	r|sz|dkr|jjdkr|jj
|jn|||jdttjj||||||}|
dkrt}|
g|_nt}||fS(	sAProduce a merger from a location, assuming it refers to a branch.i(Riiit
ignore_masterRN(RRt_select_branch_locationRRbR9RQRRRRR-tget_submit_branchtset_submit_branchRRGRRtfrom_revision_idsR!R(RR\R5RjR|RR&Rt	other_loct
user_locationtbase_locRRt
other_pathR,R+tother_revision_idRR$R%((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsH				cC@sb|j||d}tj|\}}tjj|||}|dkr^|g|_n|S(sGet a merger for uncommitted changes.

        :param tree: The tree the merger should apply to.
        :param location: The location containing uncommitted changes.
        :param pb: The progress bar to use for showing progress.
        iR(R>RPRQRRtfrom_uncommittedR(RR\R5R&RRER$((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRscC@s|dk	rQ|dk	rQ||dk	rQ||j}|dk	rQ||fSn|dkrr|j|d}n|}||fS(sSelect a branch location, according to possible inputs.

        If provided, branches from ``revision`` are preferred.  (Both
        ``revision`` and ``index`` must be supplied.)

        Otherwise, the ``location`` parameter is used.  If it is None, then the
        ``submit`` or ``parent`` location is used, and a note is printed.

        :param tree: The working tree to select a branch for merging into
        :param location: The location entered by the user
        :param revision: The revision parameter to the command
        :param index: The index to use for the revision parameter.  Negative
            indices are permitted.
        :return: (selected_location, user_location).  The default location
            will be the user-entered location.
        sMerging fromN(RRt_get_remembered(RR\RCRjtindexR-R5((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR>s
cC@s|jj}d}|dkr9|jj}d}ntd||dkrjtjtdntj	|d}t
tdj||||S(slUse tree.branch's parent if none was supplied.

        Report if the remembered location was used.
        tsubmitRs%ss#No location specified or rememberedsutf-8s{0} remembered {1} location {2}N(R-R?RRR
RRcRZR1RRR(RR\tverb_stringtstored_locationtstored_location_typeR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRHs	

N(RRRRRRRRRRR!RR.R!R#R"RRRR>RH(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR	sFP				_						5	tcmd_remergecB@sGeZdZdgZddedddgZddeedZRS(	sSRedo a merge.

    Use this if you want to try a different merge technique while resolving
    conflicts.  Some merge techniques are better than others, and remerge
    lets you try different ones on different files.

    The options for remerge have the same meaning and defaults as the ones for
    merge.  The difference is that remerge can (only) be run when there is a
    pending merge, and it lets you specify particular files.

    :Examples:
        Re-do the merge of all conflicted files, and show the base text in
        conflict regions, in addition to the usual THIS and OTHER texts::

            bzr remerge --show-base

        Re-do the merge of "foobar", using the weave merge algorithm, with
        additional processing to reduce the size of conflict regions::

            bzr remerge --merge-type weave --reprocess foobar
    sfile*s
merge-typeRs	show-baseRxs%Show base revision text in conflicts.cC@sddlm}|dkr(tj}ntj|\}}|j|jj	|j
}t|dkrtj
tdn|jj}d}	g}
|j}|dk	rtt}	x|D]}|j|}
|
dkrtj|n|	j|
|j|
dkr$qnx0|jj|
D]\}}|	j|jq7WqW|j||d}
n1d	}g|D]}|j|kr|j^q}tj||j|	|jt |
|dk	r|}nx<|D]4}y||j!|Wqtj"k
r qXqW|j#|d zPtj$j%d||d}|	|_&||_'||_(||_)|j*}Wd|j#|X|dkrdSdSdS(
Ni(trestoreisRSorry, remerge only works after normal merges.  Not cherrypicking or multi-merges.Rrs
text conflictscontents conflicti(s
text conflictscontents conflict(+tbzrlib.conflictsRORRRRPRRRRRRbRRcRZR-RRR@R4R/R REtroot_inventorytiter_entriesRNtselect_conflictsRRttransform_treeRgt
set_conflictstConflictListRXt
NotConflictedtset_parent_idsRRAtinteresting_idsRRRR1(RR[RRRROR\R2RRYt
new_conflictsRR_RNRCRtallowed_conflictsRt
restore_filesR$((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRNs`	


	
				N(	RRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRN0s			t
cmd_revertcB@sneZdZddddgZdeddedd	gZd
gZd
ed
d
dZ	e
dZRS(s    Set files in the working tree back to the contents of a previous revision.

    Giving a list of files will revert only those files.  Otherwise, all files
    will be reverted.  If the revision is not specified with '--revision', the
    working tree basis revision is used. A revert operation affects only the
    working tree, not any revision history like the branch and repository or
    the working tree basis revision.

    To remove only some changes, without reverting to a prior version, use
    merge instead.  For example, "merge . -r -2..-3" (don't forget the ".")
    will remove the changes introduced by the second last commit (-2), without
    affecting the changes introduced by the last commit (-1).  To remove
    certain changes on a hunk-by-hunk basis, see the shelve command.
    To update the branch to a specific revision or the latest revision and
    update the working tree accordingly while preserving local changes, see the
    update command.

    Uncommitted changes to files that are reverted will be discarded.
    Howver, by default, any files that have been manually changed will be
    backed up first.  (Files changed only by merge are not backed up.)  Backup
    files have '.~#~' appended to their name, where # is a number.

    When you provide files, you can use their current pathname or the pathname
    from the target revision.  So you can use revert to "undelete" a file by
    name.  If you name a directory, all the contents of that directory will be
    reverted.

    If you have newly added files since the target revision, they will be
    removed.  If the files to be removed have been changed, backups will be
    created as above.  Directories containing unknown files will not be
    deleted.

    The working tree contains a list of revisions that have been merged but
    not yet committed. These revisions will be included as additional parents
    of the next commit.  Normally, using revert clears that list as well as
    reverting the files.  If any files are specified, revert leaves the list
    of uncommitted merges alone and reverts only the files.  Use ``bzr revert
    .`` in the tree root to revert all files but keep the recorded merges,
    and ``bzr revert --forget-merges`` to clear the pending merge list without
    reverting any files.

    Using "bzr revert --forget-merges", it is possible to apply all of the
    changes from a branch in a single revision.  To do this, perform the merge
    as desired.  Then doing revert with the "--forget-merges" option will keep
    the content of the tree as it was, but it will clear the list of pending
    merges.  The next commit will then contain all of the changes that are
    present in the other branch, but without any other parent revisions.
    Because this technique forgets where these changes originated, it may
    cause additional conflicts on later merges involving the same source and
    target branches.
    RR:tmergetshelveRjs	no-backups&Do not save backups of reverted files.s
forget-mergess8Remove pending merge marker, without changing any files.sfile*cC@setj|\}}|j|jj|rK|j|jd n|j||||dS(Ni(RPRRRRRXRt_revert_tree_to_revision(RRjR%R[t
forget_mergesR\((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
cC@s6td|d|}|j|||ddtdS(NRR\treport_changes(RkRRRG(R\RjR[R%Ri((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR`sN(RRRRRRRRR!RtstaticmethodR`(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR]s4		tcmd_assert_failcB@seZdZeZdZRS(s$Test reporting of assertion failurescC@stddS(Nsalways fails(tAssertionError(R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs(RRRRGRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRdstcmd_helpcB@sYeZdZdgZeddgZdgZddddgZed
e
d	ZRS(s+Show help on a command or other topic.
    ttopicsRsShow help on all commands.stopic?R
s--helps-?s-hcC@s;ddl}|dkr'|r'd}n|jj|dS(Nitcommands(tbzrlib.helpRRx(RttopicRR)((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	N(RRRRRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRfs		tcmd_shell_completecB@s8eZdZdgZdgZeZeddZ	RS(ssShow appropriate completions for context.

    For a list of all available commands, say 'bzr shell-complete'.
    scontext?ss-ccC@s!ddlm}|j|dS(Ni(t
shellcomplete(R)Rl(RRsRl((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsN(
RRRRRRGRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRks		tcmd_missingcB@seZdZddgZdgZdeddedded	d
edded
ddddedddeddeddeddeddeddg
Z	dZ
ed e
e
e
d e
e
e
e
e
e
e
d d d dejdZRS(!sShow unmerged/unpulled revisions between two branches.

    OTHER_BRANCH may be local or remote.

    To filter on a range of revisions, you can use the command -r begin..end
    -r revision requests a specific revision, -r ..end or -r begin.. are
    also valid.
            
    :Exit values:
        1 - some missing revisions
        0 - no missing revisions

    :Examples:

        Determine the missing revisions between this and the branch at the
        remembered pull location::

            bzr missing

        Determine the missing revisions between this and another branch::

            bzr missing http://server/branch

        Determine the missing revisions up to a specific revision on the other
        branch::

            bzr missing -r ..-10

        Determine the missing revisions up to a specific revision on this
        branch::

            bzr missing --my-revision ..-10
    R^Rs
other_branch?RrR(sReverse the order of revisions.s	mine-onlys)Display changes in the local branch only.tthissSame as --mine-only.stheirs-onlys*Display changes in the remote branch only.RsSame as --theirs-only.s
log-formatsshow-idsRvRjRxsRFilter on other branch revisions (inclusive). See "help revisionspec" for details.smy-revisionRsRFilter on local branch revisions (inclusive). See "help revisionspec" for details.sinclude-mergeds4Show all revisions in addition to the mainline ones.sinclude-mergesRs&Historical alias for --include-merged.Ru.c#@sddlm}m}fd}tj|rtjjdddddd	d
dj|
dkrt|}
qt
jtdj
ddn|
dkrt}
n|r|}n|r|}nd
}|rd}n|rd}ntj|d}j|jj|j}|dkr|}|dkrZt
jtdntj|jj}|tdj
|ntj|}|j|jkr|}nj|jjtt||j}tt||j}||||d|d|
d|d|\}}|dkrbtj}|j |}n|djd|	dd}d} |r|r|t!ddt"|t"|i}!|j#r|j$j%}!nx-|||j&|
|!D]}|j'|qWt(}"d} nt}"|r|r|"t(krH|dn|t!ddt"|t"||j#r|j$j%}!nx-|||j&|
|!D]}|j'|qWd} n|r|r|td nK|r|r|td!n+|p|p|p|s0|td"nj)| r|dkr|dk	rj|j*j|jdkr|j+|jqn| S(#Ni(t
find_unmergedtiter_log_revisionsc@s tsjj|ndS(N(R
RR(R(R(s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRRs	RRs--include-mergesRs--include-mergedRs2.5Rs"{0} and {1} are mutually exclusiveRR~tremotes$No peer location known or specified.s!Using saved parent location: {0}
tbackwardRtlocal_revid_rangetremote_revid_rangeRRRRsYou have %d extra revision:
sYou have %d extra revisions:
is


sYou are missing %d revision:
sYou are missing %d revisions:
s"This branch has no new revisions.
s#Other branch has no new revisions.
sBranches are up to date.
(,tbzrlib.missingRoRpRRRRRRRRRcRZRR!R9RQRRRRR1RRRR RRRRCRRRRRbt
supports_tagsRtget_reverse_tag_dictRtlog_revisionRGRRR(#RRR(t	mine_onlyttheirs_onlyRRRwRRRvRnRRRjtmy_revisionRrRRoRpRtrestricttlocal_branchRRt
remote_branchRsRttlocal_extratremote_extratregistryRtstatus_codetrev_tag_dictt
printed_local((Rs3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRIs	
									
				
		
	

		
	


N(RRRRRRRR	RGRRRRR!RRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRm
s@!					tcmd_packcB@sAeZdZdgZdgZeddgZdedZRS(s+Compress the data within a repository.

    This operation compresses the data within a bazaar repository. As
    bazaar supports automatic packing of repository, this operation is
    normally not required to be done manually.

    During the pack operation, bazaar takes a backup of existing repository
    data, i.e. pack files. This backup is eventually removed by bazaar
    automatically when it is safe to do so. To save disk space by removing
    the backed up pack files, the --clean-obsolete-packs option may be
    used.

    Warning: If you use --clean-obsolete-packs and your machine crashes
    during or immediately after repacking, you may be left with a state
    where the deletion has been written to disk but the new packs have not
    been. In this case the repository may be unusable.
    Rsbranch_or_repo?sclean-obsolete-packss)Delete obsolete packs to save disk space.R;cC@sftjj|d}y|j}|j}Wn tjk
rQ|j}nX|jd|dS(Nitclean_obsolete_packs(	RRRQRRRRRtpack(Rtbranch_or_repoRR@R-R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
(	RRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
		tcmd_pluginscB@s)eZdZdgZeedZRS(s!List the installed plugins.

    This command displays the list of installed plugins including
    version of plugin and a short description of each.

    --verbose shows the path where each plugin is located.

    A plugin is an external component for Bazaar that extends the
    revision control system, by adding or replacing code in Bazaar.
    Plugins can do a variety of things, including overriding commands,
    adding new commands, providing additional network transports and
    customizing log output.

    See the Bazaar Plugin Guide <http://doc.bazaar.canonical.com/plugins/en/>
    for further information on plugins including where to find them and how to
    install them. Instructions are also provided there on how to write new
    plugins using the Python programming language.
    RvcC@s6ddlm}|jjt|jd|dS(Ni(tplugint
show_paths(R)RRt
writelinesR>tdescribe_plugins(RRvR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	(RRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	t
cmd_testamentcB@s_eZdZdedddedddgZdgZdZed	de	e	d
Z
RS(s,Show testament (signing-form) of a revision.RjRRxsProduce long-format testament.Rs"Produce a strict-format testament.sbranch?Ru.cC@sddlm}m}|tkr+|}n|}|dkrStj|d}ntj|}|j|jj	|dkr|j}	n|dj|}	|j
|j|	}
|r|jj|
jn|jj|
jdS(Ni(t	TestamenttStrictTestamentR;(tbzrlib.testamentRRRGR9RQR RRRRRRt
from_revisionRRRt
as_text_linesRt
as_short_text(RR-RjRRRRttestament_classRRR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	N(RRRRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs		tcmd_annotatecB@sweZdZdddgZdgZedddeddd	d
ddgZd
Zee	e	de	ddZRS(s<Show the origin of each line in a file.

    This prints out the given file with an annotation on the left side
    indicating which revision, author and date introduced the change.

    If the origin is the same for a run of consecutive lines, it is
    shown only at the top, unless the --all option is given.
    tanntblametpraiseR_RRxsShow annotations on all lines.Rs Show commit date in annotations.Rjsshow-idsRrRc

C@sHddlm}t||\}}	}
|dk	rM|j|jjn|j|	jjtd|d|	}|j|jj|dk	r|dkr|j|
}n|j|
}|dkrt	j
|n|dk	r|dkr||||j||d|n%||||j||d|d|	dS(Ni(tannotate_file_treetannotateR-R(tbzrlib.annotateRRsRRRRRkR4RR/R(
RR_RRRjRRrRR*R-R]R\RN((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRIs"
N(RRRRRRRRRR!RR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR3s			tcmd_re_signcB@sDeZdZeZdgZddgZddddZdZ	RS(s4Create a digital signature for an existing revision.srevision_id*RrRju.cC@s|dk	r0|dk	r0tjtdn|dkr`|dkr`tjtdntj|dj}|j|jj	|j
|||S(Ns4You can only supply one of revision_id or --revisions2You must supply either --revision or a revision_idi(RRRcRZRPRQR-RRRR[(Rtrevision_id_listRjRrR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRosc
C@s4ddlj}|j|j}|dk	r|jjy(x!|D]}|jj||qGWWn|jjq0X|jj	n|dk	r0t
|dkr|dj|\}}|jjy|jj||Wn|jjq-X|jj	q0t
|dkr|dj|\}	}
|dj|\}}|dkrs|j}n|	dks|dkrt
jtdn|jjy>x7t|	|dD]"}|jj|j||qWWn|jjq-X|jj	q0t
jtdndS(Niiis5Cannot sign a range of non-revision-history revisionss.Please supply either one revision, or a range.(t
bzrlib.gpgRRRRRtstart_write_groupt
sign_revisiontabort_write_grouptcommit_write_groupRbRRRRcRZR2R6(
RRRRjRtgpg_strategyRRRt
from_revnot
from_revidtto_revnotto_revid((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR[xsL






N(
RRRRGRRRRRR[(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRgs		tcmd_bindcB@s;eZdZddgZdgZdgZdddZRS(sConvert the current branch into a checkout of the supplied branch.
    If no branch is supplied, rebind to the last bound location.

    Once converted into a checkout, commits must succeed on the master branch
    before they will be applied to the local branch.

    Bound branches use the nickname of its master branch unless it is set
    locally, in which case binding will update the local nickname to be
    that of the master.
    Rtunbinds	location?Rru.cC@stj|\}}|dkry|j}Wn)tjk
r\tjtdqX|dkr|jdk	rtjtdqtjtdqntj	|}y|j
|Wn)tjk
rtjtdnX|jj
r|j|_ndS(NsCNo location supplied.  This format does not remember old locations.sBranch is already bounds3No location supplied and no previous location knowns?These branches have diverged. Try merging, and then bind again.(R9RQRtget_old_bound_locationRR[RcRZRR RtDivergedBranchest
get_configthas_explicit_nicknameR(RR5RrRR]tb_other((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs&N(RRRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs

		t
cmd_unbindcB@s5eZdZddgZgZdgZddZRS(sConvert the current checkout into a regular branch.

    After unbinding, the local branch is considered independent and subsequent
    commits will be local only.
    RRRru.cC@s=tj|\}}|js9tjtdndS(NsLocal branch is not bound(R9RQRRRcRZ(RRrRR]((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs(RRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
	tcmd_uncommitc	B@seZdZdgZddedddeddded	dd
edddgZd
gZgZdZde
e
de
e
e
dZdZRS(sRemove the last committed revision.

    --verbose will print out what is being removed.
    --dry-run will go through all the motions, but not actually
    remove anything.

    If --revision is specified, uncommit revisions to leave the branch at the
    specified revision.  For example, "bzr uncommit -r 15" will leave the
    branch at revision 15.

    Uncommit leaves the working tree ready for a new commit.  The only change
    it may make is to restore any pending merges that were present before
    the commit.
    RRvRjsdry-runRxsDon't actually make changes.RsSay yes to all questions.s	keep-tagss*Keep tags that point to removed revisions.R~sAOnly remove the commits from the local branch when in a checkout.s	location?Rc	C@s|dkrd}ntjj|\}}	y|j}
|
j}Wn/tjtjfk
rwd}
|j	}nX|
dk	r|j
|
jjn|j
|jj|j
||
||||||S(Nu.(RRRRQR"R-RR#R$RRRRR[(RR5R'RvRjRR~t	keep_tagstcontrolR]R\R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	
c	C@sddlm}	m}
ddlm}|j\}}
d}|dkrY|}|
}n8|dj|jd}||kr|j	|}n|dkst
j|r|jj
tddS|	dd|jdd	}|
||d
tddd
|d||r%|jj
tdn|jj
td|s|tjjtddis||jj
tddSntd|
|||d|d|d
|d|d|d||jj
td|
dS(Ni(t
log_formattertshow_log(RRisNo revisions to uncommit.
RwRRRRvRRRRs3Dry-run, pretending to remove the above revisions.
s'The above revision(s) will be removed.
uUncommit these revisionssbzrlib.builtins.uncommits	Canceled
sUncommitting from {%s} to {%s}R\R'RR~RsAYou can restore the old tip by running:
  bzr pull . -r revid:%s
(RRRtbzrlib.uncommitRRRRRRR6RRERRRZR!RRtconfirm_actionR
(RRR\R'RvRjRR~RRRRRRtlast_rev_idRRR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR[sL							
N(
RRRRRRRRRRR!RR[(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs					tcmd_break_lockcB@sMeZdZdgZedddedddgZdeedZRS(	sBreak a dead lock.

    This command breaks a lock on a repository, branch, working directory or
    config file.

    CAUTION: Locks should only be broken when you are sure that the process
    holding the lock has been stopped.

    You can get information on what locks are open via the 'bzr info
    [location]' command.

    :Examples:
        bzr break-lock
        bzr break-lock bzr+ssh://example.com/bzr/foo
        bzr break-lock --conf ~/.bazaar
    s	location?tconfigRxs3LOCATION is the directory where the config lock is.Rs5Do not ask for confirmation before breaking the lock.cC@s|dkrd}n|r@tjtjditd6t_n|retjd|}|jn:tj	j
|\}}y|jWntk
rnXdS(Nu.sbzrlib.lockdir.breakR^(RRtConfirmationUserInterfacePolicyRRGRtLockableConfigt
break_lockRRRQtNotImplementedError(RR5RRtconfRR]((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRns	

N(	RRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRTs			tcmd_wait_until_signalledcB@seZdZeZdZRS(sTest helper for test_start_and_stop_bzr_subprocess_send_signal.

    This just prints a line to signal when it is ready, then blocks on stdin.
    cC@s.tjjdtjjtjjdS(Nsrunning
(RRRRtstdintreadline(R((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
(RRRRGRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRst	cmd_servecB@seZdZdgZedddedddddd
eedddd
eedddd
ee	dddedddedd
e
ddgZdde
de
dddZRS(sRun the bzr server.tservertinetRxs.Serve on stdin/out for use from inetd or sshd.tprotocolsProtocol to serve.RGsbzrlib.transportttransport_server_registryR!tlistens,Listen for connections on nominated address.RtportsListen for connections on nominated port.  Passing 0 as the port number will result in a dynamically allocated port.  The default port depends on the protocol.Rrs!Serve contents of this directory.sallow-writessWBy default the server is a readonly server.  Supplying --allow-writes enables write access to the contents of the served directory and below.  Note that ``bzr serve`` does not perform authentication, so unless some form of external authentication is arranged supplying this option leads to global uncontrolled write access to your file system.sclient-timeouts0Override the default idle client timeout (5min).cC@sddlm}|dkr+tj}n|dkrI|jj}n|j|}	|skd|	}	n|j|	}
||
||||dS(Ni(Rs	readonly+(	R)RRR8RRRtlocation_to_urltget_transport_from_url(RRRRRrtallow_writesRtclient_timeoutRRcR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
(sbzrlib.transportstransport_server_registryN(RRRRRRRGRRRtfloatRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs*							tcmd_joincB@sGeZdZdgZdgZeddddegZedZ	RS(sCombine a tree into its containing tree.

    This command requires the target tree to be in a rich-root format.

    The TREE argument should be an independent tree, inside another tree, but
    not part of it.  (Such trees can be produced by "bzr split", but also by
    running "bzr branch" with the target inside a tree.)

    The result is a combined tree, with the subtree no longer an independent
    part.  This is marked as a merge of the subtree into the containing tree,
    and all history is preserved.
    RR\RLRxsJoin by reference.RcC@stj|}tj|j}tj|d}|jj}|jskt	j
td|fn|ry|j|Wqt	j
k
r}t	j
tdj||jqXnNy|j|Wn:t	jk
r}t	j
tdj||jnXdS(NisfCan't join trees because %s doesn't support rich root data.
You can use bzr upgrade on the repository.sCannot join {0}.  {1}(RPR RURRkRQR-Rtsupports_rich_rootRRcRZt
add_referencetBadReferenceTargetRtreasontsubsumetBadSubsumeSource(RR\RLtsub_treet
parent_dirtcontaining_treeRNR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs&	%(
RRRRRRRGRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
		t	cmd_splitcB@s)eZdZdgZdgZdZRS(sSplit a subdirectory of a tree into a separate tree.

    This command will produce a target tree in a format that supports
    rich roots, like 'rich-root' or 'rich-root-pack'.  These formats cannot be
    converted into earlier formats like 'dirstate-tags'.

    The TREE argument should be a subdirectory of a working tree.  That
    subdirectory will be converted into an independent tree, with its own
    branch.  Commits in the top-level tree will not apply to the new subtree.
    R4R\cC@stj|\}}|j|}|dkrBtj|ny|j|Wn)tjk
r~tj|j	j
nXdS(N(RPRQR4RRR/textracttRootNotRichtRichRootUpgradeRequiredR-R(RR\RR@tsub_id((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs(RRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
		tcmd_merge_directivecB@seZdZddgZeZdgZdejddddd	ed
e	ddd
ddde
dddde
ddedde
ddeddddgZdZ
ddde	dddddZRS( sGenerate a merge directive for auto-merge tools.

    A directive requests a merge to be performed, and also provides all the
    information necessary to do so.  This means it must either include a
    revision bundle, or the location of a branch containing the desired
    revision.

    A submit branch (the location to merge into) must be supplied the first
    time the command is issued.  After it has been supplied once, it will
    be remembered as the default.

    A public branch is optional if a revision bundle is supplied, but required
    if --diff or --plain is specified.  It will be remembered as the default
    after the first use.
    ssubmit_branch?spublic_branch?R{Rrs
patch-types.The type of patch to include in the directive.R s
Patch typeR!R"Rs!Bazaar revision bundle (default).RsNormal unified diff.tplainsNo patch, just directive.tsignRxsGPG-sign the directive.Rjsmail-toRs9Instead of printing the directive, email to this address.RRyRs*Message to use when committing this merge.Ru.c	C@sddlm}	m}
ittfd6ttfd6ttfd6|\}}tj|}
|
j}|dkr}|}n|dkr|
j	|n|dkr|
j
}n|dkrtjt
dn|
j}|dkr|}n|dkr|
j|n|r@|dkr@tjt
dnd}|dk	rt|dkr|tjt
d	n|d
j|
}t|dkr|dj|
}qn|
j}|	|}||
krtjt
dntjj|
j|tjtj|d|d
|d|d|d|}|dkr|ro|jj|j|
q|jj|jn4|j||
|}t |
j!}|j"|dS(Ni(RR@RRRs#No submit branch specified or knowns#No public branch specified or knownis>bzr merge-directive takes at most two one revision identifiersisNo revisions to bundle.t
public_brancht
include_patchtinclude_bundleRR(#RRR@R!RGR9R R?RR@RRRcRZRtset_public_branchRbRRtmerge_directivetMergeDirective2tfrom_objectsRttimeRURORRt	to_signedRtto_linestto_emailtSMTPConnectionRt
send_email(Rt
submit_branchRt
patch_typeRRjtmail_toRRrRR@RRR-tstored_submit_branchtstored_public_branchRRt	directiveR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR0s^



				N(RRRRRGRRRR-R!RRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs,			tcmd_sendcB@seZdZdZddgZddgZeddded	dd
eddded
dddddeeddddddeedddeddddeddeddddeeddddd#gZ	d$d$eed$d$d$d$d$d$d$d$d"ZRS(%sMail or create a merge-directive for submitting changes.

    A merge directive provides many things needed for requesting merges:

    * A machine-readable description of the merge to perform

    * An optional patch that is a preview of the changes requested

    * An optional bundle of revision data, so that the changes can be applied
      directly from the merge directive, without retrieving data from a
      branch.

    `bzr send` creates a compact data set that, when applied using bzr
    merge, has the same effect as merging from the source branch.  
    
    By default the merge directive is self-contained and can be applied to any
    branch containing submit_branch in its ancestory without needing access to
    the source branch.
    
    If --no-bundle is specified, then Bazaar doesn't send the contents of the
    revisions, but only a structured request to merge from the
    public_location.  In that case the public_branch is needed and it must be
    up-to-date and accessible to the recipient.  The public_branch is always
    included if known, so that people can check it later.

    The submit branch defaults to the parent of the source branch, but can be
    overridden.  Both submit branch and public branch will be remembered in
    branch.conf the first time they are used for a particular branch.  The
    source branch defaults to that containing the working directory, but can
    be changed using --from.

    Both the submit branch and the public branch follow the usual behavior with
    respect to --remember: If there is no default location set, the first send
    will set it (use --no-remember to avoid setting it). After that, you can
    omit the location to use the default.  To change the default, use
    --remember. The value will only be saved if the location can be accessed.

    In order to calculate those changes, bzr must analyse the submit branch.
    Therefore it is most efficient for the submit branch to be a local mirror.
    If a public location is known for the submit_branch, that location is used
    in the merge directive.

    The default behaviour is to send the merge directive by mail, unless -o is
    given, in which case it is sent to a file.

    Mail is sent using your preferred mail program.  This should be transparent
    on Windows (it uses MAPI).  On Unix, it requires the xdg-email utility.
    If the preferred client can't be found (or used), your editor will be used.

    To use a specific mail program, set the mail_client configuration option.
    (For Thunderbird 1.5, this works around some bugs.)  Supported values for
    specific clients are "claws", "evolution", "kmail", "mail.app" (MacOS X's
    Mail.app), "mutt", and "thunderbird"; generic options are "default",
    "editor", "emacsclient", "mapi", and "xdg-email".  Plugins may also add
    supported clients.

    If mail is being sent, a to address is required.  This can be supplied
    either on the commandline, by setting the submit_to configuration
    option in the branch itself or the child_submit_to configuration option
    in the submit branch.

    Two formats are currently supported: "4" uses revision bundle format 4 and
    merge directive format 2.  It is significantly faster and smaller than
    older formats.  It is compatible with Bazaar 0.19 and later.  It is the
    default.  "0.9" uses revision bundle format 0.9 and merge directive
    format 1.  It is compatible with Bazaar 0.12 - 0.18.

    The merge directives created by bzr send may be applied using bzr merge or
    bzr pull by specifying a file containing a merge directive as the location.

    bzr send makes extensive use of public locations to map local locations into
    URLs that can be used by other people.  See `bzr help configuration` to
    set them, and use `bzr info` to display them.
    RR^Rssubmit_branch?spublic_branch?s	no-bundleRxs/Do not include a bundle in the merge directive.sno-patchs6Do not include a preview patch in the merge directive.R|s"Remember submit and public branch.tfroms]Branch to generate the submission from, rather than the one containing the working directory.RyRRtoutputtosBWrite merge directive to this file or directory; use - for stdout.RsdRefuse to send if there are uncommitted changes in the working tree, --no-strict disables the check.smail-tos!Mail the request to this address.RjRtbodysBody for the email.Rs Use the specified output format.RGsbzrlib.sendRHc
K@sSddlm}||||||||||
jdd|	|
||jd|
S(Ni(R{RR;R(tbzrlib.sendR{RR(RRRt	no_bundletno_patchRjR|RRRRRRtkwargsR{((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs	(sbzrlib.sendsformat_registryN(
RRRRRRRR0RRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRls<J						tcmd_bundle_revisionscB@seZdZedddedddedddeddd	d
ddeed
d
ddddeeddddedddddgZdgZddgZe	Z
ddeededddd	Z
RS(sCreate a merge-directive for submitting changes.

    A merge directive provides many things needed for requesting merges:

    * A machine-readable description of the merge to perform

    * An optional patch that is a preview of the changes requested

    * An optional bundle of revision data, so that the changes can be applied
      directly from the merge directive, without retrieving data from a
      branch.

    If --no-bundle is specified, then public_branch is needed (and must be
    up-to-date), so that the receiver can perform the merge using the
    public_branch.  The public_branch is always included if known, so that
    people can check it later.

    The submit branch defaults to the parent, but can be overridden.  Both
    submit branch and public branch will be remembered if supplied.

    If a public_branch is known for the submit_branch, that public submit
    branch is used in the merge instructions.  This means that a local mirror
    can be used as your actual submit branch, once you have set public_branch
    for that mirror.

    Two formats are currently supported: "4" uses revision bundle format 4 and
    merge directive format 2.  It is significantly faster and smaller than
    older formats.  It is compatible with Bazaar 0.19 and later.  It is the
    default.  "0.9" uses revision bundle format 0.9 and merge directive
    format 1.  It is compatible with Bazaar 0.12 - 0.18.
    s	no-bundleRxs/Do not include a bundle in the merge directive.sno-patchs6Do not include a preview patch in the merge directive.R|s"Remember submit and public branch.Rs]Branch to generate the submission from, rather than the one containing the working directory.RyRRRRsWrite directive to this file.RspRefuse to bundle revisions if there are uncommitted changes in the working tree, --no-strict disables the check.RjRs Use the specified output format.RGsbzrlib.sendRHRR{R^c
K@sh|dkrd}nddlm}||||||||||
jddddd|jd|	
S(Nt-i(R{RR;R(RRR{RR(RRRRRRjR|RRRRR{((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR$s	(sbzrlib.sendsformat_registryN(RRRRR0RRRRRGRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs0							tcmd_tagcB@sqeZdZddgZdgZedddeddded	dd
dgZdddddd
Z	RS(srCreate, remove or modify a tag naming a revision.

    Tags give human-meaningful names to revisions.  Commands that take a -r
    (--revision) option can be given -rtag:X, where X is any previously
    created tag.

    Tags are stored in the branch.  Tags are copied from one branch to another
    along when you branch, push, pull or merge.

    It is an error to give a tag name that already exists unless you pass
    --force, in which case the tag is moved to point to the new revision.

    To rename a tag (change the name but keep it on the same revsion), run ``bzr
    tag new-name -r tag:old-name`` and then ``bzr tag --delete oldname``.

    If no tag name is specified it will be determined through the 
    'automatic_tag_name' hook. This can e.g. be used to automatically tag
    upstream releases by reading configure.ac. See ``bzr help hooks`` for
    details.
    RRs	tag_name?tdeleteRxs'Delete this tag rather than placing it.Rrs!Branch in which to place the tag.RsReplace existing tags.RjR;c
C@stj|\}}|j|jj|r||dkrUtjtdn|j	j
|ttd|n_|rt|dkrtjtdn|dj
|}n|j}|dkr|j|}|dkrtjtdqny|j	j|}	Wntjk
rBd}	nX|rn|	d|fkrntj|n|	|krttd|nJ|j	j|||	dkrttd|nttd	|dS(
NsNo tag specified to delete.sDeleted tag %s.is<Tags can only be placed on a single revision, not on a rangeisPlease specify a tag name.s(Tag %s already exists for that revision.sCreated tag %s.sUpdated tag %s.(R9RQRRRRRRcRZRt
delete_tagRRbRRtautomatic_tag_namet
lookup_tagt	NoSuchTagtTagAlreadyExiststset_tag(
Rttag_nameRRrRRjR-R]Rtexisting_target((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRTs<		
N(
RRRRRRRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR0s					tcmd_tagsc	B@sneZdZdgZedddeddddd	ddd
gZedde	ddZ
dZRS(s^List tags.

    This command shows a table of tag names and the revisions they reference.
    RcRrRxs&Branch whose tags should be displayed.Rs Sort tags by different criteria.R tSortingRGs
bzrlib.tagttag_sort_methodssshow-idsRjR;cC@sddlm}tj|\}}|jjj}|sDdS|j|jj	|ru|j
||}n|dkr|j}n||||sBxt
|D]\}	\}
}y=|j|}t|trdjtt|}nWn)tjtjtjfk
r*d}nX|
|f||	<qWn|jx.|D]&\}
}
|jjd|
|
fqSWdS(Ni(RR;R
s	%-20s %s
(RRR9RQRtget_tag_dicttitemsRRRt_tags_for_rangeRRRRRVRR4RRRRtGhostRevisionsHaveNoRevnotUnsupportedOperationRRR(RRrRRRjRR-R]RRIRcRRtrevspec((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs2


c
C@st}t|||j\}}|j|j}}|rk||krk|jjj||rkgSn|jj}g}	xo|j	d|d|ddD]O}
|j
|
dd}|r|	jg|D]}||
df^qqqW|	S(Ntstart_revision_idtstop_revision_idt	stop_ruletincludei(
RGRRCRRR=tis_ancestorRRwtiter_merge_sorted_revisionsRRR(
RR-Rjtrange_validRRtrevid1trevid2t
tagged_revidstfoundRt
revid_tagsRc((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
1(s
bzrlib.tagstag_sort_methodsN(RRRRRRRRRR!RR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR	s			!tcmd_reconfigurecB@s4eZdZddddgZdgZejdddd	d
deded
dddddddejdddd	ddededdddejdddd	ddededd d!d"e	d#d	d$d%e
e	d&d	d'e	d(d	d)d%ee	d*d	d+gZd-d-ed-d-d-d-d-d,ZRS(.sReconfigure the type of a bzr directory.

    A target configuration must be specified.

    For checkouts, the bind-to location will be auto-detected if not specified.
    The order of preference is
    1. For a lightweight checkout, the current bound location.
    2. For branches that used to be checkouts, the previously-bound location.
    3. The push location.
    4. The parent location.
    If none of these is available, --bind-to must be specified.
    tbranchesRsstandalone-treess
working-treess	location?t	tree_typeR s	Tree typeRxs%The relation between branch and tree.R!R"R-s9Reconfigure to be an unbound branch with no working tree.R\s8Reconfigure to be an unbound branch with a working tree.Rs5Reconfigure to be a bound branch with a working tree.tlightweight_checkoutsAReconfigure to be a lightweight checkout (with no local history).trepository_typesRepository typesLocation fo the repository.RsJReconfigure to be a standalone branch (i.e. stop using shared repository).t
use_shareds'Reconfigure to use a shared repository.trepository_treessTrees in Repositorys2Whether new branches in the repository have trees.t
with_treessFReconfigure repository to create working trees on branches by default.t
with_no_treessJReconfigure repository to not create working trees on branches by default.sbind-tosBranch to bind checkout to.RRs;Perform reconfiguration even if local changes will be lost.s
stacked-ons5Reconfigure a branch to be stacked on another branch.t	unstackedsYReconfigure a branch to be unstacked.  This may require copying substantial data into it.c	C@s5tjj|}	|r6|r6tjtdnA|dk	r[tjj	|	|n|rwtj
j	|	n|dkr|dkr|dkr|s|rdStjtdnd}
|dkrtjj|	}
ni|dkrtjj
|	}
nH|dkr/tjj|	|}
n$|dkrStjj|	|}
n|
ro|
j	|d}
n|dkrtjj|	}
n!|dkrtjj|	}
n|
r|
j	|d}
n|d	krtjj|	t}
n$|d
krtjj|	t}
n|
r1|
j	|d}
ndS(Ns+Can't use both --stacked-on and --unstackeds!No target configuration specifiedR-R\Rslightweight-checkouts
use-sharedRs
with-treess
with-no-trees(RRR RRcRZRtreconfiguretReconfigureStackedOntapplytReconfigureUnstackedtReconfiguret	to_branchtto_treetto_checkouttto_lightweight_checkoutt
to_use_sharedt
to_standalonetset_repository_treesRGR!(RR5tbind_toRR R"R$RR'Rrtreconfiguration((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsV		
	
			
N(RRRRRRR-RGR!RRR0RRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsJ						t
cmd_switchc	B@sqeZdZdgZdeddddeddd	dd
edddgZdeedd
edZRS(sSet the branch of a checkout and update.

    For lightweight checkouts, this changes the branch being referenced.
    For heavyweight checkouts, this checks that there are no local commits
    versus the current bound branch, then it makes the local branch a mirror
    of the new location and binds to it.

    In both cases, the working tree is updated and uncommitted changes
    are merged. The user can commit or revert these as they desire.

    Pending merges need to be committed or reverted before using switch.

    The path to the branch to switch to can be specified relative to the parent
    directory of the current branch. For example, if you are currently in a
    checkout of /path/to/branch, specifying 'newbranch' will find a branch at
    /path/to/newbranch.

    Bound branches use the nickname of its master branch unless it is set
    locally, in which case switching will update the local nickname to be
    that of the master.
    sto_location?RrRRxs*Switch even if local commits will be lost.Rjs
create-branchRyRs>Create the target branch from this one before switching to it.tstores4Store and restore uncommitted changes in the branch.u.cC@sddlm}|}td|}g}	tjj|d|	d}
|dkr|dkrwtjt	dn|}ny(|
j
d|	}|jj}Wn tj
k
rd}t}nX|r1|dkrtjt	dnt|
|d|	}|jj|d|	d|j
}
nEytj|d|	}
Wn)tj
k
rut|
|d|	}
nX|dk	r|j|
}n|j|
|
|d|d	||r|
j
}|
j|_ntt	d
tj|
jddS(Ni(RRRs/You must supply either a revision or a locations*cannot create branch without source branchRRtstore_uncommittedsSwitched to branch: %ssutf-8(R)RRfRRRQRRRcRZRRRRR!R7RDRR9R R:RRRR1RR(RRRRYRjRrR7Rt
tree_locationRRR-thad_explicit_nickR-((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRdsR
			
	

N(	RRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR6@s				tcmd_viewc	B@seZdZgZdgZedddedddedddd	eed
ddd	egZeed
d
dZ
RS(sRManage filtered views.

    Views provide a mask over the tree so that users can focus on
    a subset of a tree when doing their work. After creating a view,
    commands that support a list of files - status, diff, commit, etc -
    effectively have that list of files implicitly given each time.
    An explicit list of files can still be given but those files
    must be within the current view.

    In most cases, a view has a short life-span: it is created to make
    a selected change and is deleted once that change is committed.
    At other times, you may wish to create one or more named views
    and switch between them.

    To disable the current view without deleting it, you can switch to
    the pseudo view called ``off``. This can be useful when you need
    to see the whole tree for an operation or two (e.g. merge) but
    want to switch back to your view after that.

    :Examples:
      To define the current view::

        bzr view file1 dir1 ...

      To list the current view::

        bzr view

      To delete the current view::

        bzr view --delete

      To disable the current view without deleting it::

        bzr view --switch off

      To define a named view and switch to it::

        bzr view --name view-name file1 dir1 ...

      To list a named view::

        bzr view --name view-name

      To delete a named view::

        bzr view --name view-name --delete

      To switch to a named view::

        bzr view --switch view-name

      To list all views defined::

        bzr view --all

      To delete all views::

        bzr view --delete --all
    sfile*RRxs)Apply list or delete action to all views.RsDelete the view.RCs+Name of the view to define, list or delete.RRsName of the view to switch to.cC@stj|dt\}}|jj\}}|dkrE|}n|r
|ritjtdq|rtjtdq|r|jj	di|j
jtdq|dkrtjtdq|jj||j
jtd|n|r|r.tjtdq|rLtjtdq|d	kr|dkr|tjtd
n|jj	d||j
jtd|q|jj	||tj
|jj}	|j
jtdj||	n|r|r|j
jtd
xxt|D]Q}
|
|krFd}nd}tj
||
}	|j
jd||
|	fq+Wq|j
jtdn|r1|dkrd}n$|d	krtjtdn|jj|t|tj
|jj}	|j
jtdj||	nb|dkrV|j
jtdn=tj
|jj|}	|j
jtdj||	dS(NR{s'Both --delete and a file list specifieds$Both --delete and --switch specifiedsDeleted all views.
sNo current view to deletesDeleted '%s' view.
s'Both --switch and a file list specifieds!Both --switch and --all specifiedtoffsNo current view to disablesDisabled '%s' view.
sUsing '{0}' view: {1}
sViews defined:
s=>s  s%s %-20s %s
sNo views defined.
tmys#Cannot change the 'off' pseudo viewsNo current view.
s'{0}' view is: {1}
(RPRR!RSRlRRRcRZt
set_view_infoRRtdelete_viewRYRTRR$tset_view(RR[RRRCRR\Rot	view_dictR`tviewR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRsr					%	$		%N(RRRRRRR0RR!RR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR;s"<					t	cmd_hookscB@seZdZeZdZRS(sShow hooks.cC@sxttjjD]}tj|}|jjdt|jxt|j	D]\}}|jjd|ft
|}|rxG|D]&}|jjd|j|fqWq[|jjtdq[WqWdS(Ns%s:
s  %s:
s    %s
s    <no hooks installed>
(
R$RQtknown_hooksR%tknown_hooks_key_to_objectRRRRR
R>t
get_hook_nameRZ(Rthook_keyt
some_hookst	hook_namet
hook_pointtfound_hooksthook((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR4s
(RRRRGRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRC/stcmd_remove_branchcB@sJeZdZdgZdedddgZdgZddedZ	RS(	sRemove a branch.

    This will remove the branch from the specified location but 
    will keep any working tree or repository in place.

    :Examples:

      Remove the branch at repo/trunk::

        bzr remove-branch repo/trunk

    s	location?RrRRxs.Remove branch even if it is the active branch.trmbranchcC@std|d|}|r|jjry|jjdd}Wntjk
r`d}nX|dk	r|j|jkrtjt	dqn|jj
|jdS(NR<R5RCRs+Branch is active. Use --force to remove it.(R>RDRWRRRRR'RcRZtdestroy_branchRC(RRrR5RtbrR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRXs
N(
RRRRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRMCs		t
cmd_shelvecB@seZdZdgZddeddddedd	ejjd
e	de
eddd
edddgZddgZde
ddde
e
ddZddZRS(s`Temporarily set aside some changes from the current tree.

    Shelve allows you to temporarily put changes you've made "on the shelf",
    ie. out of the way, until a later time when you can bring them back from
    the shelf with the 'unshelve' command.  The changes are stored alongside
    your working tree, and so they aren't propagated along with your branch nor
    will they survive its deletion.

    If shelve --list is specified, previously-shelved changes are listed.

    Shelve is intended to help separate several sets of changes that have
    been inappropriately mingled.  If you just want to get rid of all changes
    and you don't need to restore them later, use revert.  If you want to
    shelve all text changes at once, use shelve --all.

    If filenames are specified, only the changes to those files will be
    shelved. Other files will be left untouched.

    If a revision is specified, changes since that revision will be shelved.

    You can put multiple items on the shelf, and by default, 'unshelve' will
    restore the most recently shelved changes.

    For complicated changes, it is possible to edit the changes in a separate
    editor program to decide what the file remaining in the working copy
    should look like.  To do this, add the configuration option

        change_editor = PROGRAM @new_path @old_path

    where @new_path is replaced with the path of the new version of the 
    file and @old_path is replaced with the path of the old version of 
    the file.  The PROGRAM should save the new file with the desired 
    contents of the file in the working tree.
        
    sfile*RrRjRRxsShelve all changes.RR:s Method to use for writing diffs.R!R"R>sList shelved changes.R5s1Destroy removed changes instead of shelving them.tunshelvet
configurationc	
C@s|r|jd|Sddlm}	|dkrGtjjj}nyP|	j|t	j
||||d|d|}
z|
jWd|
jXWnt
jk
rdSXdS(NRri(R8R5(trun_for_listtbzrlib.shelf_uiR8RR)RR7Rt	from_argsRRRR)Rt	UserAbort(RRjRR[RR:R>R5RrR8R;((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRscC@s|dkrd}ntj|d}|j|jj|j}|j}t|dkr|t	t
ddSx[t|D]M}|j|j
d}|dkrd}n|jjd||fqWdS(Nu.isNo shelved changes.Rs<no message>s%3d: %s
i(RRPRQRRRRtactive_shelvesRbRRZRAtget_metadataRRR(RRrR\tmanagertshelvestshelf_idR((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRTs		N(RRRRRRR)RR7RGR!RRRRRT(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRQfs #			tcmd_unshelvecB@sweZdZdgZdejddddededd	d
ddd
ddddgZdgZ	ddddZRS(sRestore shelved changes.

    By default, the most recently shelved changes are restored. However if you
    specify a shelf by id those changes will be restored instead.  This works
    best when the changes don't depend on each other.
    s	shelf_id?RrRRxsThe action to perform.R"R!R*s(Apply changes and remove from the shelf.R's.Show changes, but do not apply or remove them.RsSInstead of unshelving the changes, show the diff that would result from unshelving.tdelete_onlys%Delete changes without applying them.R$s$Apply changes but don't delete them.R_u.cC@sKddlm}|j||d|}z|jWd|jjXdS(Ni(t	UnshelverRr(RUR_RVRR\R(RR\RRrR_t	unshelver((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs
N(RRRRRR-R!RGRRRR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR]s		tcmd_clean_treec	B@s}eZdZdedddedddeddded	dd
edddgZeeeeed
dZRS(sRemove unwanted files from working tree.

    By default, only unknown files, not ignored files, are deleted.  Versioned
    files are never deleted.

    Another class is 'detritus', which includes files emitted by bzr during
    normal operations and selftests.  (The value of these files decreases with
    time.)

    If no options are specified, unknown files are deleted.  Otherwise, option
    flags are respected, and may be combined.

    To check what clean-tree will do, use --dry-run.
    RrR.RxsDelete all ignored files.tdetritussJDelete conflict files, merge and revert backups, and failed selftest dirs.Rs&Delete files unknown to bzr (default).sdry-runs.Show files to delete instead of deleting them.RsDo not prompt before deleting.u.cC@sfddlm}|p|p|s+t}n|r:t}n||d|d|d|d|d|dS(Ni(t
clean_treeRR.RbR't	no_prompt(tbzrlib.clean_treeRcRG(RRR.RbR'RRrRc((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs		(RRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRas	t
cmd_referencecB@s8eZdZeZddgZdddZdZRS(s list, view and set branch locations for nested trees.

    If no arguments are provided, lists the branch locations for nested trees.
    If one argument is provided, display the branch location for that tree.
    If two arguments are provided, set the branch location for that tree.
    spath?s	location?c	C@sd}|dk	r|}ntjj|\}}}|dk	rK|}n|dkrf|j}n|dkr|jj}|j|||nz|j|}|dkrt	j
|n|dkr||j|fg}|j|||n|j|||dS(NR;(
RRRRqRgt_get_all_reference_infoRBt_display_reference_infoR4RR/tget_reference_infotset_reference_info(	RRR5t	branchdirR\R-R]RRN((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRs$		cC@sg}xW|D]O\}\}}y|j|}Wntjk
rHnX|j||fq
Wx4t|D]&\}}|jjd||fqmWdS(Ns%s %s
(RRtNoSuchIdRR$RR(RR\R-Rtref_listRNRR5((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRh&sN(	RRRRGRRRRRh(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRfs
tcmd_export_potcB@sMeZdZeZeddddeedddgZde	dZ
RS(	s5Export command helps and error messages in po format.RRxsHExport help text from named command (defaults to all built in commands).Rsinclude-duplicatessMOutput multiple copies of the same msgid string if it appears more than once.cC@s'ddlm}||j||dS(Ni(t
export_pot(tbzrlib.export_potRoR(RRtinclude_duplicatesRo((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyR?sN(RRRRGRRRRRR!R(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyRn2s		cC@sxdgdfdgdfdgdfdgdfd	d
gdfdgdfd
gdfdgdfdgdfdgdfg
D]"\}}}tj|||qWdS(Ntcmd_bundle_infosbzrlib.bundle.commandst
cmd_configs
bzrlib.configt	cmd_dpushsbzrlib.foreigntcmd_version_infosbzrlib.cmd_version_infotcmd_resolvetresolvedsbzrlib.conflictst
cmd_conflictstcmd_pingsbzrlib.smart.pingtcmd_sign_my_commitss bzrlib.commit_signature_commandstcmd_verify_signaturestcmd_test_scriptsbzrlib.cmd_test_script(Rt
register_lazy(RCRtmodule_name((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt_register_lazy_builtinsDs(Rt
__future__RR8t
bzrlib.bzrdirR)RtglobalsRRRRt
bzrlib.optionRRRRR	tbzrlib.traceR
RRR
RRRRR+R7R:R>RORaRfRkRpRsRtRRRRRR	RR1RBRCRTRxRRRRRRRRR.R0R7R<RCRFRdRpRRRRRRRRRR!RRRRR R2R5R7RBRNRPRRRRRRRRRR	RNR]RdRfRkRmRRRRRRRRRRRRRRRRRR	RR6R;RCRMRQR]RaRfRnR(((s3/usr/lib/python2.7/dist-packages/bzrlib/builtins.pyt<module>s((( 	 	
		g;T+4/9^/<2Jr,6"v>			'		uKI	F;AF
_O
# 4A+p,0.f{IOOrT#Y!#/

Copyright © 2017 || Recoded By Mr.Bumblebee