blame¶
vb annotate|blame|praise [OPTIONS] FILENAME
Description¶
Output the text of a file with markings to show when each line of the file
was last modified. The version currently checked out is shown by default.
Other versions may be specified using the -r option. The annotate command
shows line numbers and omits the username. The blame and praise commands
show the user who made each check-in.
Reverse Annotations: Normally, these commands look at versions of
FILENAME moving backwards in time back toward the root check-in, and
thus the output shows the most recent change to each line. However,
if the -o|--origin option is used to specify some future check-in
(example: -o trunk) then these commands show changes moving towards
that alternative origin. Thus using -o trunk on an historical version
of the file shows the first time each line in the file was changed or
removed by any subsequent check-in.
Options¶
- --filevers¶
Show file version numbers rather than check-in versions
- -r, --revision VERSION¶
The specific check-in containing the file
- -l, --log¶
List all versions analyzed
- -n, --limit LIMIT¶
LIMIT can be one of:
N Up to N versions; Xs As much as possible in X seconds; none No limit
- -o, --origin VERSION¶
The origin check-in. By default this is the root of the repository. Set to
trunkor similar for a reverse annotation.
- -w, --ignore-all-space¶
Ignore white space when comparing lines
- -Z, --ignore-trailing-space¶
Ignore whitespace at line end
Examples¶
Create multiple revisions of a file
$ vb sys echo "a" > code.c
$ vb add code.c
ADDED code.c
$ vb commit -m "v1"
Committed version: 25556907c2a3cc074e5b90f68e273b1bde70ad495e2df7e4408301b8a202bc95
$ vb sys echo "b" >> code.c
$ vb commit -m "v2"
Committed version: f3fd79a8b1dca67fccdb6c35516d8bc4c5774601854e751c5174b47f9eb59a54
List all versions analyzed
$ vb annotate -l code.c
version 1: 2026-03-31 f3fd79a8b1 file d1068fe887
version 2: 2026-03-31 25556907c2 file be5215abf7
---------------------------------------------------
25556907c2 2026-03-31 1: a
f3fd79a8b1 2026-03-31 2: b