File: branches.py

package info (click to toggle)
bzrtools 1.5.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 716 kB
  • ctags: 663
  • sloc: python: 5,508; makefile: 11; sh: 11
file content (12 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
from bzrlib import errors
from bzrlib.bzrdir import BzrDir
from bzrlib.transport import get_transport
from bzrtools import list_branches


def branches(location=None):
    if location is None:
        location = '.'
    t = get_transport(location)
    for branch in list_branches(t):
        print branch.base[len(t.base):].rstrip('/')