/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/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-16 16:38:27 UTC
  • mfrom: (1551.18.3 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070816163827-sbv5xkblg2uh7fh4
Checkout into existing trees works (Aaron Bentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
959
959
            except errors.NoWorkingTree:
960
960
                source.bzrdir.create_workingtree(revision_id)
961
961
                return
962
 
        try:
963
 
            os.mkdir(to_location)
964
 
        except OSError, e:
965
 
            if e.errno == errno.EEXIST:
966
 
                raise errors.BzrCommandError('Target directory "%s" already'
967
 
                                             ' exists.' % to_location)
968
 
            if e.errno == errno.ENOENT:
969
 
                raise errors.BzrCommandError('Parent of "%s" does not exist.'
970
 
                                             % to_location)
971
 
            else:
972
 
                raise
973
962
        source.create_checkout(to_location, revision_id, lightweight)
974
963
 
975
964