Probably the most useful bk command to list a file's revision history and contents is bk prs, which comes with a load of options. First, you can use bk prs to examine a file's revision history:

 $ bk prs README                  # print revision summary (newest first)
 $ bk prs -f README               # print revision summary (oldest first)
 $ bk prs -r+ README              # only most recent revision
 $ bk prs -r1.3 README            # specific revision
 $ bk prs -r1.3..1.6 README       # specific range of revisions
 $ bk prs -r1.5..+ README         # from specific revision to latest

bk prs also supports an output format and numerous keywords that let you customize exactly what output you want to see. For example, to list a file as of a particular revision:

 $ bk prs -r1.5 -n -d':GB:' README     # print revision 1.5 of file
 $ bk prs -r1.5 -nd':GB:' README       # shorter idiom of above

In addition to all of the above, bk prs has default and recursive behaviour:
 $ bk prs                      # all files in current directory
 $ bk -r prs                   # recursive (probably overkill)

In order to understand all of the possible options, you really need to consult the prs section of bk helptool.

This topic: Dev > WebHome > BitKeeperNotes > BkPrs
Topic revision: 30 Oct 2004, RobDay
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Network Time Foundation's NTP Support Wiki? Send feedback