~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2007-05-02 14:54:20 UTC
  • mto: (2476.3.2 111702)
  • mto: This revision was merged to the branch mainline in revision 2479.
  • Revision ID: john@arbash-meinel.com-20070502145420-k2vebnl0rd45q8kk
Change calls to try/mkdir('.')/except FileExists to ensure_base()

Show diffs side-by-side

added added

removed removed

Lines of Context:
783
783
        :return: The tree of the created checkout
784
784
        """
785
785
        t = transport.get_transport(to_location)
786
 
        try:
787
 
            t.mkdir('.')
788
 
        except errors.FileExists:
789
 
            pass
 
786
        t.ensure_base()
790
787
        if lightweight:
791
788
            format = self._get_checkout_format()
792
789
            checkout = format.initialize_on_transport(t)