Skip to main content

Module views

Module views 

Source
Expand description

The views working-tree control file (Bazaar views format 1).

Views scope a working tree to a subset of its paths. They are stored in an unversioned control file whose top line is a format marker:

Bazaar views format X

where X is an integer. Only version 1 is supported, and is stored as optional name=value keyword lines, then an optional views: line followed by one view per line as nul-separated name\0path1\0path2. The file is UTF-8. The only keyword with a defined meaning is current, naming the enabled view.

Enums§

ViewsError
An error parsing the contents of a views file.

Functions§

deserialize
Parse views file content into its keywords and view definitions.
serialize
Serialise keywords and view definitions into views file content.
view_display_str
The display string for a list of view files.

Type Aliases§

Keywords
Keyword lines from a views file, in file order. Insertion order is preserved so that reading a file and writing it back is byte-identical, including any keywords this version does not interpret.
ViewDict
View definitions from a views file: view name to its list of paths.