Cannot use backslash character in file name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
I am attempting to use bzr as an svn client. The svn repository seems to contain some file names which bzr struggles with. The bzr-svn plugin seems to be aware of this limitation because it outputs a "friendly" message:
> bzr: ERROR: Unable to convert Subversion path file with \ backslash because it contains characters invalid in Bazaar.
Whereas using a bzr repository directly (without branching from svn) prints a traceback:
> bzr: ERROR: bzrlib.
>
> Traceback (most recent call last):
> File "/usr/lib/
> return run_bzr(argv)
> File "/usr/lib/
> ret = run(*run_argv)
> File "/usr/lib/
> return self.run(
> File "/usr/lib/
> no_recurse, action=action, save=not dry_run)
> File "/usr/lib/
> return unbound(self, *args, **kwargs)
> File "/usr/lib/
> added.extend(
> File "/usr/lib/
> _add_one(tree, inv, parent_ie, path, kind, action)
> File "/usr/lib/
> file_id=file_id)
> File "/usr/lib/
> return make_entry(kind, name, parent_id, file_id)
> File "/usr/lib/
> return factory(file_id, name, parent_id)
> File "/usr/lib/
> super(Inventory
> File "/usr/lib/
> raise errors.
> InvalidEntryName: Invalid entry name: file with \ backslash
>
> bzr 1.0.0 on python 2.5.1.final.0 (linux2)
> arguments: ['/usr/bin/bzr', 'add', 'file with \\ backslash']
> encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
> plugins:
> launchpad /usr/lib/
> multiparent /usr/lib/
> svn /usr/lib/
> *** Bazaar has encountered an internal error.
> Please report a bug at https:/
> including this traceback, and a description of what you
> were doing when the error occurred.
> added "file with \ backslash"
As tested on Ubuntu 7.10 (Gutsy Gibbon) with the version of bzr and bzr-svn packaged for that distribution.