11
12
The bottom hald of the window shows the details for the selected revision.
14
from branchwin import BranchWindow
16
15
__copyright__ = "Copyright © 2005 Canonical Ltd."
17
16
__author__ = "Scott James Remnant <scott@ubuntu.com>"
19
from bzrlib.commands import Command, register_command
20
from bzrlib.option import Option
21
from bzrlib.branch import Branch
24
class cmd_visualise(Command):
25
"""Graphically visualise this branch.
27
Opens a graphical window to allow you to see the history of the branch
28
and relationships between revisions in a visual manner,
30
The default starting point is latest revision on the branch, you can
31
specify a starting point with -r revision.
35
Option('limit', "maximum number of revisions to display",
37
takes_args = [ "location?" ]
38
aliases = [ "visualize", "vis", "viz" ]
40
def run(self, location=".", revision=None, limit=None):
41
(branch, path) = Branch.open_containing(location)
43
branch.repository.lock_read()
46
revid = branch.last_revision()
50
(revno, revid) = revision[0].in_history(branch)
52
from bzrkapp import BzrkApp
55
app.show(branch, revid, limit)
57
branch.repository.unlock()
62
register_command(cmd_visualise)