Part of bzrlib
Checking of bzr objects.
check_refs is a concept used for optimising check. Objects that depend on other objects (e.g. tree on repository) can list the objects they would be requesting so that when the dependent object is checked, matches can be pulled out and evaluated in-line rather than re-reading the same data many times. check_refs are tuples (kind, value). Currently defined kinds are:
Class | Check | Check a repository |
Class | VersionedFileCheck | Check a versioned file repository |
Function | scan_branch | Scan a branch for refs. |
Function | scan_tree | Scan a tree for refs. |
Function | check_dwim | Check multiple objects. |
Parameters | branch | The branch to schedule for checking. |
needed_refs | Refs we are accumulating. | |
to_unlock | The unlock list accumulating. |