~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shelf.py

  • Committer: Michael Ellerman
  • Date: 2005-10-26 09:49:08 UTC
  • mto: (0.3.1 shelf-dev) (325.1.2 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: michael@ellerman.id.au-20051026094908-ddd0626e7e5e12a1
Shelf() takes a location which specifies where to open the branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    pass
19
19
 
20
20
class Shelf(object):
21
 
    def __init__(self):
22
 
        self.branch = Branch.open_containing('.')[0]
 
21
    def __init__(self, location):
 
22
        self.branch = Branch.open_containing(location)[0]
23
23
 
24
24
    def shelf_suffix(self, index):
25
25
        if index == 0: