During this season of giving, you can show your support for the NTP Project by making a donation to Network Time Foundation.
There are a number of commands you can use to just query the properties of changesets, either the changesets that are already in your repo or the changesets that you'd get from your parent if you did a bk pull. Before you get into these commands, you should review how to specify revision ranges at BkRevisionRanges, since you can use this syntax to identify cset ranges. And you can also review the keywords that will be useful over at BkKeywords.

The main command for querying various things about a changeset is bk changes. There are two other commands -- bk rset and bk cset -- but these are listed as not for normal human consumption so we won't get into them here.

First, how to list some meta-info about csets in your current repository:
 $ bk changes -r+                 # default info about this cset
 $ bk changes -r+ -nd:REV:        # most recent cset's number only
 $ bk changes -r+ -nd:COMMENTS:   # most recent cset's comment field only

Some variations you can add to the above:

  • different keywords, as explained in bk prs

  • different revision numbers, and revision ranges, as explained at BkRevisionRanges

  • reversing the chronological order of the output with -f

and other options documented at bk helptool changes.

In addition to information about the changeset itself, you can display information about the files in a changeset by adding the -v option to bk changes, as in:
 $ bk changes -r+ -vnd:GFILE:     # files involved in that cset

Finally, you can query changesets that you haven't even pulled from the parent repo yet with any variation of:
 $ bk changes -R
Topic revision: r2 - 04 Nov 2004, RobDay
Copyright © by the contributing authors.Use of this website indicates your agreement with, and acceptance of, the PrivacyPolicy, the WikiDisclaimer, and the PrivateWebPolicy.