~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to branches.py

  • Committer: Robert Collins
  • Date: 2005-09-13 15:11:39 UTC
  • mto: (147.2.6) (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: robertc@robertcollins.net-20050913151139-9ac920fc9d7bda31
TODOification

Show diffs side-by-side

added added

removed removed

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