Part of bzrlib
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 72 | Class | Branch | Branch holding a history of revisions. |
| 912 | Class | BranchFormat | An encapsulation of the initialization and open routines for a format. |
| 1071 | Class | BranchHooks | A dictionary mapping hook name to a list of callables for branch hooks. |
| 1160 | Class | ChangeBranchTipParams | Object holding parameters passed to *_change_branch_tip hooks. |
| 1198 | Class | BzrBranchFormat4 | Bzr branch format 4. |
| 1240 | Class | BranchFormatMetadir | Common logic for meta-dir based branch formats. |
| 1278 | Class | BzrBranchFormat5 | Bzr branch format 5. |
| 1313 | Class | BzrBranchFormat6 | Branch format with last-revision and tags. |
| 1344 | Class | BzrBranchFormat7 | Branch format with last-revision, tags, and a stacked location pointer. |
| 1381 | Class | BranchReferenceFormat | Bzr branch reference format. |
| 1482 | Class | BzrBranch | A branch stored in the actual filesystem. |
| 1929 | Class | BzrBranch5 | A format 5 branch. This supports new features over plain branches. |
| 2056 | Class | BzrBranch7 | A branch with support for a fallback repository. |
| 2346 | Class | BzrBranch6 | See BzrBranchFormat6 for the capabilities of this branch. |
| 2374 | Class | PullResult | Result of a Branch.pull operation. |
| 2402 | Class | PushResult | Result of a Branch.push operation. |
| 2427 | Class | BranchCheckResult | Results of checking branch consistency. |
| 2447 | Class | Converter5to6 | Perform an in-place upgrade of format 5 to format 6 |
| 2478 | Class | Converter6to7 | Perform an in-place upgrade of format 6 to format 7 |
| 2364 | Class | _Result | Undocumented |
| 2489 | Function | _run_with_write_locked_target | Run callable(*args, **kwargs), write-locking target for the |
Run callable(*args, **kwargs), write-locking target for the duration.
_run_with_write_locked_target will attempt to release the lock it acquires.
If an exception is raised by callable, then that exception will be propagated, even if the unlock attempt raises its own error. Thus _run_with_write_locked_target should be preferred to simply doing:
target.lock_write()
try:
return callable(*args, **kwargs)
finally:
target.unlock()