~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2007-12-22 02:01:03 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20071222020103-ggjszok7n974e1l2
Update branches, multi-pull to new APIs, create trees

Show diffs side-by-side

added added

removed removed

Lines of Context:
457
457
        from branches import branches
458
458
        return branches(location)
459
459
 
 
460
class cmd_trees(BzrToolsCommand):
 
461
    """Scan a location for trees"""
 
462
    takes_args = ['location?']
 
463
    def run(self, location='.'):
 
464
        from bzrlib.workingtree import WorkingTree
 
465
        from bzrlib.transport import get_transport
 
466
        t = get_transport(location)
 
467
        for tree in WorkingTree.find_trees(location):
 
468
            self.outf.write('%s\n' % t.relpath(
 
469
                tree.bzrdir.root_transport.base))
460
470
 
461
471
class cmd_multi_pull(BzrToolsCommand):
462
472
    """Pull all the branches under a location, e.g. a repository.
499
509
                print e
500
510
 
501
511
 
 
512
 
502
513
class cmd_import(BzrToolsCommand):
503
514
    """Import sources from a directory, tarball or zip file
504
515
 
630
641
            cmd_baz_import,
631
642
            cmd_baz_import_branch,
632
643
            cmd_branches,
 
644
            cmd_trees,
633
645
            cmd_branch_history,
634
646
            cmd_cbranch,
635
647
            cmd_cdiff,