~abentley/bzrtools/bzrtools.dev

352 by Aaron Bentley
Added branches subcommand
1
from bzrlib.transport import get_transport
603 by Aaron Bentley
Update branches, multi-pull to new APIs, create trees
2
from bzrtools import list_branches
602 by Aaron Bentley
Update branches to new find_branches API
3
352 by Aaron Bentley
Added branches subcommand
4
5
def branches(location=None):
6
    if location is None:
7
        location = '.'
8
    t = get_transport(location)
602 by Aaron Bentley
Update branches to new find_branches API
9
    for branch in list_branches(t):
352 by Aaron Bentley
Added branches subcommand
10
        print branch.base[len(t.base):].rstrip('/')