Part of bzrlib.commit View In Hierarchy
Task of committing a new revision.
This is a MethodObject: it accumulates state as the commit is prepared, and then it is discarded. It doesn't represent historical revisions, just the act of recording a new one.
missing_ids Modified to hold a list of files that have been deleted from the working directory; these should be removed from the working inventory.
Method | __init__ | Create a Commit object. |
Static Method | update_revprops | Undocumented |
Method | commit | Commit working copy as a new revision. |
Method | _commit | Undocumented |
Method | _select_reporter | Select the CommitReporter to use. |
Method | _check_pointless | Undocumented |
Method | _check_bound_branch | Check to see if the local branch is bound. |
Method | _check_out_of_date_tree | Check that the working tree is up to date. |
Method | _process_pre_hooks | Process any registered pre commit hooks. |
Method | _process_post_hooks | Process any registered post commit hooks. |
Method | _process_hooks | Undocumented |
Method | _gather_parents | Record the parents of a merge for merge detection. |
Method | _update_builder_with_changes | Update the commit builder with the data about what has changed. |
Method | _filter_iter_changes | Process iter_changes. |
Method | _record_unselected | Undocumented |
Method | _report_and_accumulate_deletes | Undocumented |
Method | _check_strict | Undocumented |
Method | _populate_from_inventory | Populate the CommitBuilder by walking the working tree inventory. |
Method | _commit_nested_tree | Commit a nested tree. |
Method | _record_entry | Record the new inventory entry for a path if any. |
Method | _report_change | Report a change to the user. |
Method | _set_progress_stage | Set the progress stage and emit an update to the progress bar. |
Method | _next_progress_entry | Emit an update to the progress bar and increment the entry count. |
Method | _emit_progress | Undocumented |
Method | _set_specific_file_ids | populate self.specific_file_ids if we will use it. |
Parameters | reporter | the default reporter to use or None to decide later |
Parameters | message | the commit message (it or message_callback is required) |
message_callback | A callback: message = message_callback(cmt_obj) | |
timestamp | if not None, seconds-since-epoch for a postdated/predated commit. | |
specific_files | If not None, commit only those files. An empty list means 'commit no files'. | |
rev_id | If set, use this as the new revision id. Useful for test or import commands that need to tightly control what revisions are assigned. If you duplicate a revision id that exists elsewhere it is your own fault. If null (default), a time/random revision id is generated. | |
allow_pointless | If true (default), commit even if nothing has changed and no merges are recorded. | |
strict | If true, don't allow a commit if the working tree contains unknown files. | |
revprops | Properties for new revision | |
local | Perform a local only commit. | |
reporter | the reporter to use or None for the default | |
verbose | if True and the reporter is not None, report everything | |
recursive | If set to 'down', commit in any subtrees that have pending changes of any sort during this commit. | |
exclude | None or a list of relative paths to exclude from the commit. Pending changes to excluded files will be ignored by the commit. | |
lossy | When committing to a foreign VCS, ignore any data that can not be natively represented. |
If it is bound, then most of the commit will actually be done using the remote branch as the target branch. Only at the end will the local branch be updated.
Returns | old_revision_number,new_revision_number tuple |
This method reports on the changes in iter_changes to the user, and converts 'missing' entries in the iter_changes iterator to 'deleted' entries. 'missing' entries have their
Parameters | iter_changes | An iter_changes to process. |
Returns | A generator of changes. |
The change that has occurred is described relative to the basis inventory.