[BUG] 0.14 bzr add --dry-run: bzrlib.errors.InvalidEntryName: Invalid entry name: '\

Jari Aalto jari.aalto at cante.net
Sat Jan 27 07:45:56 GMT 2007


I happened to come accross a project that included a suspicous file names:

    $ ls -la
    total 16
    drwxr-sr-x 3 root src 176 2007-01-27 09:26 .
    drwxr-sr-x 5 root src 120 2007-01-27 09:26 ..
    -rw-r--r-- 1 root src  14 2007-01-27 09:26 '\
    -rw-r--r-- 1 root src  47 2007-01-27 09:26 Maelstrom Sound
    drwxr-sr-x 6 root src 240 2007-01-27 09:26 .svn
    -rw-r--r-- 1 root src  89 2007-01-27 09:26  .tif
    -rw-r--r-- 1 root src  40 2007-01-27 09:26 ".tif

The error message was:

    added tebzr: ERROR: bzrlib.errors.InvalidEntryName: Invalid entry name: '\

    Traceback (most recent call last):
      File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 650, in run_bzr_catch_errors
        return run_bzr(argv)
      File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 612, in run_bzr
        ret = run(*run_argv)
      File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 304, in run_argv_aliases
        return self.run(**all_cmd_args)
      File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 340, in run
        action=action, save=not dry_run)
      File "/usr/lib/python2.4/site-packages/bzrlib/add.py", line 148, in smart_add
        return smart_add_tree(tree, file_list, recurse, action=action, save=save)
      File "/usr/lib/python2.4/site-packages/bzrlib/add.py", line 284, in smart_add_tree
        __add_one(tree, inv, parent_ie, directory, kind, action)
      File "/usr/lib/python2.4/site-packages/bzrlib/add.py", line 374, in __add_one
        file_id=file_id)
      File "/usr/lib/python2.4/site-packages/bzrlib/inventory.py", line 1327, in make_entry
        return InventoryFile(file_id, name, parent_id)
      File "/usr/lib/python2.4/site-packages/bzrlib/inventory.py", line 668, in __init__
        super(InventoryFile, self).__init__(file_id, name, parent_id)
      File "/usr/lib/python2.4/site-packages/bzrlib/inventory.py", line 292, in __init__
        raise errors.InvalidEntryName(name=name)
    InvalidEntryName: Invalid entry name: '\

    bzr 0.14.0 on python 2.4.4.final.0 (linux2)
    arguments: ['/usr/bin/bzr', 'add', '--dry-run']

To see yourself:

    root at host svn co http://svn.wolffelaar.nl/lintian/trunk lintian
    root at host cd lintian
    root at host bzr init
    root at host bzr add --dry-run 2>&1 | tee /tmp/bzr.log




More information about the bazaar mailing list