File: branches.py

package info (click to toggle)
bzrtools 2.6.0-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 740 kB
  • sloc: python: 4,299; sh: 13; makefile: 10
file content (10 lines) | stat: -rw-r--r-- 277 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
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('/')