~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-10-02 16:01:45 UTC
  • mfrom: (3753.1.2 trivial_276436)
  • Revision ID: pqm@pqm.ubuntu.com-20081002160145-vrwbzkinptlkk5az
(jam) Simple fix for bug #276436,
        WT.open() should use osutils.getcwd()

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