~abentley/bzr/cp-4470

« back to all changes in this revision

Viewing changes to doc/en/user-guide/browsing_history.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-04-24 16:44:16 UTC
  • mfrom: (3995.123.151 1.14)
  • Revision ID: launchpad@pqm.canonical.com-20090424164416-xkbn2oygg227p6z2
[rs=jml] Upgrade Bazaar to 1.14rc2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    % bzr log -r 1000..1100      # changes from 1000 to 1100
14
14
    % bzr log -r 1000            # The changes in only revision 1000
15
15
 
16
 
Viewing the mainline
17
 
--------------------
 
16
Viewing merged revisions
 
17
------------------------
18
18
 
19
19
As distributed VCS tools like Bazaar make merging much easier than
20
 
it is in central VCS tools, the history of a branch may often show
 
20
it is in central VCS tools, the history of a branch may often contain
21
21
lines of development splitting off the mainline and merging back
22
22
in at a later time. Technically, the relationship between the
23
23
numerous revision nodes is known as a Directed Acyclic Graph or
24
24
DAG for short.
25
25
 
26
 
In many cases though, you may only be interested in seeing the *mainline*
27
 
for a branch, namely the primary line of development within the DAG.
28
 
To do this, use the following command::
29
 
 
30
 
  bzr log --short
31
 
 
32
 
If you do this commonly, you may even wish to create an alias for it
33
 
as explained in `Using aliases`_.
 
26
In many cases, you typically want to see the mainline first and drill
 
27
down from there. The default behaviour of log is therefore to show
 
28
the mainline and indicate which revisions have nested merged revisions.
 
29
To explore the merged revisions for revision X, use the following command::
 
30
 
 
31
  bzr log -n0 -rX
 
32
 
 
33
To see all revisions and all their merged revisions::
 
34
 
 
35
  bzr log -n0
 
36
 
 
37
Note that the -n option is used to indicate the number of levels to display
 
38
where 0 means all. If that is too noisy, you can easily adjust the number
 
39
to only view down so far. For example, if your project is structured with
 
40
a top level gatekeeper merging changes from team gatekeepers, ``bzr log``
 
41
shows what the top level gatekeeper did while ``bzr log -n2`` shows what
 
42
the team gatekeepers did. In the vast majority of cases though, ``-n0``
 
43
is fine.
34
44
 
35
45
Tuning the output
36
46
-----------------