/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 breezy/plugins/fastimport/helpers.py

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
"""Miscellaneous useful stuff."""
17
17
 
18
 
from __future__ import absolute_import
19
 
 
20
18
import stat
21
19
 
22
20
from ... import (
96
94
    if os.path.exists(location):
97
95
        contents = os.listdir(location)
98
96
        if contents:
99
 
            errors.BzrCommandError("Destination must have a .bzr directory, "
 
97
            errors.CommandError("Destination must have a .bzr directory, "
100
98
                                   " not yet exist or be empty - files found in %s" % (location,))
101
99
    else:
102
100
        try:
103
101
            os.mkdir(location)
104
102
        except IOError as ex:
105
 
            errors.BzrCommandError("Unable to create %s: %s" %
106
 
                                   (location, ex))
 
103
            raise errors.CommandError(
 
104
                "Unable to create %s: %s" % (location, ex))
107
105
 
108
106
    # Create a repository for the nominated format.
109
107
    trace.note("Creating destination repository ...")