1
from bzrlib.transport import get_transport
2
from bzrtools import iter_branches, apache_ls
4
def branches(location=None):
7
t = get_transport(location)
8
if location.startswith('http://'):
10
elif not t.listable():
11
print "Can't list this type of location."
15
for branch in iter_branches(t, lister):
16
print branch.base[len(t.base):].rstrip('/')