Part of bzrlib.branch View In Hierarchy
Known subclasses: bzrlib.tests.test_foreign.InterToDummyVcsBranch
Class Method | is_compatible | Undocumented |
Class Method | unwrap_format | Undocumented |
Method | copy_content_into | Copy the content of source into target |
Method | fetch | Fetch revisions. |
Method | pull | Pull from source into self, updating my master if any. |
Method | push | See InterBranch.push. |
Class Method | _get_branch_formats_to_test | Return an iterable of format tuples for testing. |
Method | _update_revisions | Undocumented |
Method | _basic_push | Basic implementation of push without bound branches or hooks. |
Method | _push_with_bound_branches | Push from source into target, and into target's master if any. |
Method | _pull | See Branch.pull. |
Inherited from InterObject (via InterBranch):
Method | __init__ | Construct a default InterObject instance. Please use 'get'. |
Class Method | get | Retrieve a Inter worker object for these objects. |
Method | lock_read | Take out a logical read lock. |
Method | lock_write | Take out a logical write lock. |
Class Method | register_optimiser | Register an InterObject optimiser. |
Method | unlock | Release the locks on source and target. |
Class Method | unregister_optimiser | Unregister an InterObject optimiser. |
Method | _double_lock | Take out two locks, rolling back the first if the second throws. |
Returns | An iterable of (from_format, to_format) to use when testing this InterBranch class. Each InterBranch class should define this method itself. |
Copy the content of source into target
Parameters | stop_revision | Last revision to fetch |
limit | Optional rough limit of revisions to fetch |
Parameters | run_hooks | Private parameter - if false, this branch is being called because it's the master of the primary branch, so it should not run its hooks. |
This is the basic concrete implementation of push()
Parameters | _override_hook_source_branch | If specified, run the hooks passing this Branch as the source, rather than self. This is for use of RemoteBranch, where push is delegated to the underlying vfs-based Branch. |
Must be called with source read locked and target write locked.
This function is the core worker, used by GenericInterBranch.pull to avoid duplication when pulling source->master and source->local.
Parameters | _hook_master | Private parameter - set the branch to be supplied as the master to pull hooks. |
run_hooks | Private parameter - if false, this branch is being called because it's the master of the primary branch, so it should not run its hooks. is being called because it's the master of the primary branch, so it should not run its hooks. | |
_override_hook_target | Private parameter - set the branch to be supplied as the target_branch to pull hooks. | |
local | Only update the local branch, and not the bound branch. |