~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to branches.py

  • Committer: Aaron Bentley
  • Date: 2011-05-10 01:53:58 UTC
  • mfrom: (756.1.1 no-deprecated-graph)
  • Revision ID: aaron@aaronbentley.com-20110510015358-y6ft9e47oisysftz
Move deprecated_graph functionality to bzrtools (Jelmer).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from bzrlib import errors
 
2
from bzrlib.bzrdir import BzrDir
 
3
from bzrlib.transport import get_transport
 
4
from bzrtools import list_branches
 
5
 
 
6
 
 
7
def branches(location=None):
 
8
    if location is None:
 
9
        location = '.'
 
10
    t = get_transport(location)
 
11
    for branch in list_branches(t):
 
12
        print branch.base[len(t.base):].rstrip('/')