|
|
|
Viewing changes
-
How can I find out what files have been modified and what the changes are?
You can either use bk citool or a combination of
bk sfiles and bk diffs.
-
How do I view differences between file revisions?
The main file browser is revtool.
If you want to see changes between two checked in versions, run:
 |
bk revtool filename
|
and a graphical viewer will appear.
You can double click (left mouse) on any version and an annotated
version will appear in the bottom window.
To see differences between any two versions, left click on the
earlier version and right click on the later.
Another frequent request is to see the differences between the
checked in version and a working version that has been modified.
To do this, run:
 |
bk difftool filename
|
and a side-by-side viewer will appear.
You can even use difftool on files that are not checked in at all
by specifying those file names.
-
How can I view overall history/status?
That is, how can I piece together what has happened in a
repository -- when it was cloned, what happened since the clone,
etc.
 |
bk revtool
|
will browse the entire package.
If you select one or more revisions, you can click "View
changesets" to get detailed information about the files changed in
that changeset.
See bk help revtool for more information.
-
How do I view revisions of a package and individual file revisions in that labeled package?
Revisions of a file are best viewed with
bk revtool.
This is a GUI that shows context differences.
In the top window is a graph of the file's history.
Left click and right click on two versions of the file to see the
context diffs.
To see side-by-side full file diffs, click on the "diff tool"
button and a new window will display that.
If no filename argument is given to revtool, it displays the
entire package's history.
Revisions of a package can also be viewed using bk
csettool.
You'll need a revision number as an argument to csettool;
bk changes or bk revtool will give you a
revision number.
Csettool is used to view the detailed information about the
specified changeset[s].
The tool displays the list of changes in each changeset, the
ChangeSet history, and (optionally) the differences found in each
file contained in each changeset.
To see the changes for a particular file, click on the file name
the top left window and you will see:
* the number of diffs in the light blue, middle status window
* the old version of the file in the lower left window
* the new version of the file in the lower right window
* the ChangeSet's comments followed by the delta's comments in the
upper right window
Use the space bar to move between diffs and files.
Each time you hit the space bar, the next diff is brought into
view.
If you are on the last diff, the tool moves to the next file.
The Next (>>) buttons and Previous (<<) buttons in the upper left
corner will also allow you to browse the files and diffs.
-
Is there any way to diff two committed and tagged versions of the repository
Yes, there is a way.
Use:
 |
bk export -tpatch -rtag1,tag2 | more
|
| |
|