~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to branches.py

  • Committer: Max Bowsher
  • Date: 2009-11-13 00:43:08 UTC
  • mto: This revision was merged to the branch mainline in revision 739.
  • Revision ID: maxb@f2s.com-20091113004308-4dcwu1kwt3lhf1kp
Having discovered that bzr-builddeb import_dsc.py is a horrid copy-paste job of bzrtools upstream_import.py, restructure the change to minimize divergence from it.

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('/')