~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to branches.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-25 01:51:22 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20050825015122-169b68edd17fb871
Made files for shelf optional

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