~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to command_classes.py

  • Committer: Aaron Bentley
  • Date: 2009-12-01 03:24:57 UTC
  • mfrom: (736.1.1 shell-dir)
  • Revision ID: aaron@aaronbentley.com-20091201032457-ng4w9ssd2uavdf3c
Merge support for shell -d.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
class cmd_graph_ancestry(BzrToolsCommand):
50
50
    """Produce ancestry graphs using dot.
51
 
    
 
51
 
52
52
    Output format is detected according to file extension.  Some of the more
53
53
    common output formats are html, png, gif, svg, ps.  An extension of '.dot'
54
54
    will cause a dot graph file to be produced.  HTML output has mouseovers
342
342
    --all        --help       --revision   --show-ids
343
343
    bzr bzrtools:287/> status --
344
344
    """
345
 
    def run(self):
 
345
    takes_options = [
 
346
        Option('directory',
 
347
            help='Branch in which to start the shell, '
 
348
                 'rather than the one containing the working directory.',
 
349
            short_name='d',
 
350
            type=unicode,
 
351
            ),
 
352
        ]
 
353
    def run(self, directory=None):
346
354
        import shell
347
 
        return shell.run_shell()
 
355
        return shell.run_shell(directory)
348
356
 
349
357
 
350
358
class cmd_branch_history(BzrToolsCommand):