/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: 2006-05-08 13:47:04 UTC
  • Revision ID: david.allouche@canonical.com-20060508134704-6eac676fbd499db4
rename --maxnum to --limit

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    """
33
33
    takes_options = [
34
34
        "revision",
35
 
        Option('maxnum', "maximum number of revisions to display", int, 'count')]
 
35
        Option('limit', "maximum number of revisions to display",
 
36
               int, 'count')]
36
37
    takes_args = [ "location?" ]
37
38
    aliases = [ "visualize", "vis", "viz" ]
38
39
 
39
 
    def run(self, location=".", revision=None, maxnum=None):
 
40
    def run(self, location=".", revision=None, limit=None):
40
41
        (branch, path) = Branch.open_containing(location)
41
42
        branch.lock_read()
42
43
        branch.repository.lock_read()
51
52
            from bzrkapp import BzrkApp
52
53
                
53
54
            app = BzrkApp()
54
 
            app.show(branch, revid, maxnum)
 
55
            app.show(branch, revid, limit)
55
56
        finally:
56
57
            branch.repository.unlock()
57
58
            branch.unlock()