~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

 * Two new commands 'bzr checkout' and 'bzr update' allow for CVS/SVN-alike
   behaviour. They use the existing serverless-mode and store no data
   locally. As such they are not suitable for use except in high bandwidth
   low latency environments like LAN's or local disk. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
        >>> bzrlib.trace.silent = True
235
235
        >>> d1 = bzrdir.ScratchDir()
236
236
        >>> br1 = d1.open_branch()
237
 
        >>> wt1 = WorkingTree(br1.base, br1)
 
237
        >>> wt1 = d1.open_workingtree()
238
238
        >>> d2 = bzrdir.ScratchDir()
239
239
        >>> br2 = d2.open_branch()
240
 
        >>> wt2 = WorkingTree(br2.base, br2)
 
240
        >>> wt2 = d2.open_workingtree()
241
241
        >>> br1.missing_revisions(br2)
242
242
        []
243
243
        >>> wt2.commit("lala!", rev_id="REVISION-ID-1")
1007
1007
        if (self.base.find('://') != -1 or 
1008
1008
            not isinstance(self._transport, LocalTransport)):
1009
1009
            raise NoWorkingTree(self.base)
1010
 
        return WorkingTree(self.base, branch=self)
 
1010
        return self.bzrdir.open_workingtree()
1011
1011
 
1012
1012
    @needs_write_lock
1013
1013
    def pull(self, source, overwrite=False, stop_revision=None):