Invalid entry name because it contains a backslash (\)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
While exporting from git to bzr a branch which contains my Emacs configuration, I got:
…
17:20:24 3000/3873 commits processed at 402/minute (:18229)
ABORT: exception occurred processing commit :20414
bzr: ERROR: bzrlib.
Traceback (most recent call last):
File "/w/bzr/
return the_callable(*args, **kwargs)
File "/w/bzr/
ret = run(*run_argv)
File "/w/bzr/
return self.run(
File "/home/
params, verbose, user_map=user_map)
File "/home/
return proc.process(
File "/home/
self.
File "/home/
processor.
File "/home/
handler(self, cmd)
File "/home/
handler.
File "/home/
handler(self, fc)
File "/home/
filecmd.
File "/home/
ie = inventory.
File "/w/bzr/
return factory(file_id, name, parent_id)
File "/w/bzr/
super(
File "/w/bzr/
raise errors.
InvalidEntryName: Invalid entry name: \begin{
bzr 2.1.0dev2 on python 2.5.4 (Linux-
arguments: ['/usr/
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'ca_ES.UTF-8'
plugins:
bzrtools /home/dc/
etckeeper /usr/lib/
explorer /home/dc/
fastimport /home/dc/
gtk /home/dc/
launchpad /w/bzr/
netrc_
qbzr /home/dc/
The problem is due to a file called "\begin{
~ $ ls -l .emacs.
total 12
-rw-r--r-- 1 dc dc 139 18 set 11:21 Beamer Overlay Specification.
-rw-r--r-- 1 dc dc 222 24 set 08:32 \\begin{
-rw-r--r-- 1 dc dc 222 18 set 11:21 \begin{
If git can handle this, I assume bzr can too.
I can confirm this bug is in bzr itself, not bzr-fastimport. To reproduce:
echo > '\begin{ }…\end{ }.yasnippet'
bzr init .
bzr add
Here's the exception:
Traceback (most recent call last): ian/Projects/ bzr/bzr/ trunk/bzrlib/ commands. py", line 842, in exception_ to_return_ code ian/Projects/ bzr/bzr/ trunk/bzrlib/ commands. py", line 1037, in run_bzr ian/Projects/ bzr/bzr/ trunk/bzrlib/ commands. py", line 654, in run_argv_aliases **all_cmd_ args) ian/Projects/ bzr/bzr/ trunk/bzrlib/ builtins. py", line 661, in run ian/Projects/ bzr/bzr/ trunk/bzrlib/ mutabletree. py", line 49, in tree_write_locked ian/Projects/ bzr/bzr/ trunk/bzrlib/ mutabletree. py", line 493, in smart_add ian/Projects/ bzr/bzr/ trunk/bzrlib/ mutabletree. py", line 690, in _add_one id=file_ id) ian/Projects/ bzr/bzr/ trunk/bzrlib/ inventory. py", line 925, in make_entry ian/Projects/ bzr/bzr/ trunk/bzrlib/ inventory. py", line 2315, in make_entry ian/Projects/ bzr/bzr/ trunk/bzrlib/ inventory. py", line 536, in __init__ InventoryFile, self)._ _init__ (file_id, name, parent_id) ian/Projects/ bzr/bzr/ trunk/bzrlib/ inventory. py", line 215, in __init__ InvalidEntryNam e(name= name) }…\end{ }.yasnippet
File "/home/
return the_callable(*args, **kwargs)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
no_recurse, action=action, save=not dry_run)
File "/home/
return unbound(self, *args, **kwargs)
File "/home/
_add_one(self, inv, parent_ie, directory, kind, action)
File "/home/
file_
File "/home/
return make_entry(kind, name, parent_id, file_id)
File "/home/
return factory(file_id, name, parent_id)
File "/home/
super(
File "/home/
raise errors.
InvalidEntryName: Invalid entry name: \begin{