b.builtins : module documentation

Part of bzrlib

builtin bzr commands
Function tree_files Undocumented
Function tree_files_for_add Return a tree and list of absolute paths from a file list.
Function internal_tree_files Convert command-line paths to a WorkingTree and relative paths.
Function safe_relpath_files Convert file_list into a list of relpaths in tree.
Class cmd_status Display status summary.
Class cmd_cat_revision Write out metadata for a revision.
Class cmd_dump_btree Dump the contents of a btree index file to stdout.
Class cmd_remove_tree Remove the working tree from a given branch/checkout.
Class cmd_revno Show current revision number.
Class cmd_revision_info Show revision number and revision id for a given revision identifier.
Class cmd_add Add specified files or directories.
Class cmd_mkdir Create a new versioned directory.
Class cmd_relpath Show path of a file relative to root
Class cmd_inventory Show inventory of the current working copy or a revision.
Class cmd_mv Move or rename a file.
Class cmd_pull Turn this branch into a mirror of another branch.
Class cmd_push Update a mirror of this branch.
Class cmd_branch Create a new branch that is a copy of an existing branch.
Class cmd_checkout Create a new checkout of an existing branch.
Class cmd_renames Show list of renamed files.
Class cmd_update Update a tree to have the latest code committed to its branch.
Class cmd_info Show information about a working tree, branch or repository.
Class cmd_remove Remove files or directories.
Class cmd_file_id Print file_id of a particular file or directory.
Class cmd_file_path Print path of file_ids to a file or directory.
Class cmd_reconcile Reconcile bzr metadata in a branch.
Class cmd_revision_history Display the list of revision ids on a branch.
Class cmd_ancestry List all revisions merged into this branch.
Class cmd_init Make a directory into a versioned branch.
Class cmd_init_repository Create a shared repository for branches to share storage space.
Class cmd_diff Show differences in the working tree, between revisions or branches.
Class cmd_deleted List files deleted in the working tree.
Class cmd_modified List files modified in working tree.
Class cmd_added List files added in working tree.
Class cmd_root Show the tree root directory.
Class cmd_log Show historical log for a branch or subset of a branch.
Function get_log_format Undocumented
Class cmd_touching_revisions Return revision-ids which affected a particular file.
Class cmd_ls List files in a tree.
Class cmd_unknowns List unknown files.
Class cmd_ignore Ignore specified files or patterns.
Class cmd_ignored List ignored files and the patterns that matched them.
Class cmd_lookup_revision Lookup the revision-id from a revision-number
Class cmd_export Export current or past revision to a destination directory or archive.
Class cmd_cat Write the contents of a file as of a given revision to standard output.
Class cmd_local_time_offset Show the offset in seconds from GMT to local time.
Class cmd_commit Commit changes into a new revision.
Class cmd_check Validate working tree structure, branch consistency and repository history.
Class cmd_upgrade Upgrade branch storage to current format.
Class cmd_whoami Show or set bzr user id.
Class cmd_nick Print or set the branch nickname.
Class cmd_alias Set/unset and display aliases.
Class cmd_selftest Run internal test suite.
Class cmd_version Show version of bzr.
Class cmd_rocks Statement of optimism.
Class cmd_find_merge_base Find and print a base revision for merging two branches.
Class cmd_merge Perform a three-way merge.
Class cmd_remerge Redo a merge.
Class cmd_revert Revert files to a previous revision.
Class cmd_assert_fail Test reporting of assertion failures
Class cmd_help Show help on a command or other topic.
Class cmd_shell_complete Show appropriate completions for context.
Class cmd_missing Show unmerged/unpulled revisions between two branches.
Class cmd_pack Compress the data within a repository.
Class cmd_plugins List the installed plugins.
Class cmd_testament Show testament (signing-form) of a revision.
Class cmd_annotate Show the origin of each line in a file.
Class cmd_re_sign Create a digital signature for an existing revision.
Class cmd_bind Convert the current branch into a checkout of the supplied branch.
Class cmd_unbind Convert the current checkout into a regular branch.
Class cmd_uncommit Remove the last committed revision.
Class cmd_break_lock Break a dead lock on a repository, branch or working directory.
Class cmd_wait_until_signalled Test helper for test_start_and_stop_bzr_subprocess_send_signal.
Class cmd_serve Run the bzr server.
Class cmd_join Combine a tree into its containing tree.
Class cmd_split Split a subdirectory of a tree into a separate tree.
Class cmd_merge_directive Generate a merge directive for auto-merge tools.
Class cmd_send Mail or create a merge-directive for submitting changes.
Class cmd_bundle_revisions Create a merge-directive for submitting changes.
Class cmd_tag Create, remove or modify a tag naming a revision.
Class cmd_tags List tags.
Class cmd_reconfigure Reconfigure the type of a bzr directory.
Class cmd_switch Set the branch of a checkout and update.
Class cmd_view Manage filtered views.
Class cmd_hooks Show hooks.
Class cmd_shelve Temporarily set aside some changes from the current tree.
Class cmd_unshelve Restore shelved changes.
Class cmd_clean_tree Remove unwanted files from working tree.
Class cmd_reference list, view and set branch locations for nested trees.
Function _get_one_revision Undocumented
Function _get_one_revision_tree Get a revision tree. Not suitable for commands that change the tree.
Function _get_view_info_for_change_reporter Get the view information from a tree for change reporting.
Function _parse_limit Undocumented
Function _parse_levels Undocumented
Function _get_revision_range Take the input of a revision option and turn it into a revision range.
Function _revision_range_to_revid_range Undocumented
def tree_files(file_list, default_branch=u'.', canonicalize=True, apply_view=True):
Undocumented
def tree_files_for_add(file_list):
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.

def _get_one_revision(command_name, revisions):
Undocumented
def _get_one_revision_tree(command_name, revisions, branch=None, tree=None):
Get 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.

def internal_tree_files(file_list, default_branch=u'.', canonicalize=True, apply_view=True):
Convert command-line paths to a WorkingTree and relative paths.

This is typically used for command-line processors that take one or more filenames, and infer the workingtree that contains them.

The filenames given are not required to exist.

Parametersfile_listFilenames to convert.
default_branchFallback tree path to use if file_list is empty or None.
apply_viewif True and a view is set, apply it or check that specified files are within it
Returnsworkingtree, [relative_paths]
def safe_relpath_files(tree, file_list, canonicalize=True, apply_view=True):
Convert file_list into a list of relpaths in tree.
ParameterstreeA tree to operate on.
file_listA list of user provided paths or None.
apply_viewif True and a view is set, apply it or check that specified files are within it
ReturnsA list of relative paths.
Raiseserrors.PathNotChildWhen a provided path is in a different tree than tree.
def _get_view_info_for_change_reporter(tree):
Get the view information from a tree for change reporting.
def _parse_limit(limitstring):
Undocumented
def _parse_levels(s):
Undocumented
def _get_revision_range(revisionspec_list, branch, command_name):
Take 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.

def _revision_range_to_revid_range(revision_range):
Undocumented
def get_log_format(long=False, short=False, line=False, default='long'):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2010-03-18 00:10:33.