/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: David Allouche
  • Date: 2005-12-03 13:13:08 UTC
  • Revision ID: david.allouche@canonical.com-20051203131308-3aa4e899b01becd3
add --maxnum option to cut-off long histories

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    takes_options = [
41
41
        "revision",
42
42
        Option('robust', "ignore redundant parents"),
43
 
        Option('accurate', "sort revisions more carefully")]
 
43
        Option('accurate', "sort revisions more carefully"),
 
44
        Option('maxnum', "maximum number of revisions to display", int, 'count')]
44
45
    takes_args = [ "location?" ]
45
46
    aliases = [ "visualize", "vis", "viz" ]
46
47
 
47
 
    def run(self, location=".", revision=None, robust=False, accurate=False):
 
48
    def run(self, location=".", revision=None, robust=False, accurate=False,
 
49
            maxnum=None):
48
50
        (branch, path) = Branch.open_containing(location)
49
51
        if revision is None:
50
52
            revid = branch.last_revision()
56
58
        from bzrkapp import BzrkApp
57
59
 
58
60
        app = BzrkApp()
59
 
        app.show(branch, revid, robust, accurate)
 
61
        app.show(branch, revid, robust, accurate, maxnum)
60
62
        app.main()
61
63
 
62
64