/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-30 20:30:04 UTC
  • mto: This revision was merged to the branch mainline in revision 3761.
  • Revision ID: john@arbash-meinel.com-20080930203004-sf06gl9iaovamxzl
Add some simple direct tests for WT.open and WT.open_containing.
Fixes bug #276436.

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
 
304
304
        """
305
305
        if path is None:
306
 
            path = os.path.getcwdu()
 
306
            path = osutils.getcwd()
307
307
        control = bzrdir.BzrDir.open(path, _unsupported)
308
308
        return control.open_workingtree(_unsupported)
309
 
        
 
309
 
310
310
    @staticmethod
311
311
    def open_containing(path=None):
312
312
        """Open an existing working tree which has its root about path.
313
 
        
 
313
 
314
314
        This probes for a working tree at path and searches upwards from there.
315
315
 
316
316
        Basically we keep looking up until we find the control directory or