~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shelf.py

  • Committer: Michael Ellerman
  • Date: 2005-10-19 13:36:05 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-20051019133605-83ecac725f52de87
Use Branch.base rather than running bzr root

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
class Shelf(object):
29
29
    def __init__(self):
30
 
        self.bzr_root = run_bzr('root')[0].strip()
 
30
        b = Branch.open_containing('.')[0]
 
31
        self.bzr_root = b.base
31
32
 
32
33
    def shelf_suffix(self, index):
33
34
        if index == 0: