IndexError in git_to_bzr during fastimport

Bug #690944 reported by Jordan Farrell
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
Fix Released
Undecided
Unassigned

Bug Description

Ran fast-import on a recently git exported repository. I have the proper permissions for all of the directories in my home. Not the first time bzr has reported this problem and with other directories/commands.
Ubuntu 10.10 32-bit
Bazaar 2.2.1

Previous Export Command:
wolfrage@wolfrage-laptop1:~/Programing/git/telepathy/otr/telepathy-spec$ bzr fast-export-from-git ./ ~/Programing/otr.fi
not installing http[s]+webdav:// support (only supported for bzr 1.12 and above)
Executing git fast-export --all --signed-tags=warn --export-marks=/home/wolfrage/Programing/otr.marks in directory ./ ...
warning: Exporting signed tag b5dc345be3cd25d3f55d329e20425e84e22ef1fc
warning: Exporting signed tag dc2c5493de1838ab39ce8ade42f1d5b1916c3ab7
warning: Exporting signed tag 9e3fd5b6c7e5f5e5bf51df96edbee6801e0f6426
warning: Exporting signed tag 1b326e3ff2a61b5e7c55bb624d0729a19f0fa353
warning: Exporting signed tag 5f1566ea61d359f429f2c791c6939b4d96a1f674
warning: Exporting signed tag 480fa0d0aadd67a50237430a497064ea26c2a5dc
warning: Exporting signed tag 099798dcb2b62b126a6b02ee55a63e31310e7a1d
warning: Exporting signed tag 559e36267e84aa83b9d1dc63ef1209cd2ba30b95
warning: Exporting signed tag e58b450fe975f6a029c0ab12c488726733e0bb57
warning: Exporting signed tag b4d2437f22603fb7f0d1e87e219a92eccb20e552
warning: Exporting signed tag 52c348c3af75b52be6ef70ccdb95a170145cd27c
warning: Exporting signed tag bce3e6a233cf1d31ad9f027b093d5bc7990f5d4f
warning: Exporting signed tag b42d3aedfa1c37352f13e6f87d2f13a44023456f
warning: Exporting signed tag 4041f7ccbc74258c03c66066a68b07b626889c43
warning: Exporting signed tag 3ed767010e7ff5bb02f2941130cd74fdd6be4fd6
warning: Exporting signed tag 4e532e3b0c3a3c859c95a49099f76bb6511e5392
warning: Exporting signed tag d0367f37835ced174558e2425345084e9b66b75b
warning: Exporting signed tag adbbe76c63b5434082b2db1e3a22c5ef17653586
warning: Exporting signed tag bb231c43f19763e517e0982f3b3d38c247030460
warning: Exporting signed tag 56a455ef2f9e00842b6cf32c68f2573a853ab3f9
warning: Exporting signed tag 6bfb0ba40b457d9d0a17b3d83709a88999fb6984
warning: Exporting signed tag bae3b1c070f52db3bb9dd2120e8caf22cf936d9b
warning: Exporting signed tag 40a6d27d49dfad4ed0fd4c8fd7f42da6946f0006
warning: Exporting signed tag 7532d2bd99e822b0ccb268fe4b174efb0f456be8
warning: Exporting signed tag 1755d8aaa547f32738c833090d645a569c421417
warning: Exporting signed tag f7c2f8adef053dc4f321737dec1adfaf4af560be
warning: Exporting signed tag 0872328489f288a647b34ce584ebc03b659728c7
warning: Exporting signed tag b162d4082382579f7e7d788209fce27a837d53a0
warning: Exporting signed tag 6f10b15128147fe1ee04fc6c3155ed5116de5b00
warning: Exporting signed tag e1fd2f6c0a446f99397f92dc8a9c6d635294b328
warning: Exporting signed tag 0bb1d13b38d6eebaf17610dc656f6055014bf037
warning: Exporting signed tag a5dcbb2070c4d13c9116a8fcbe0a541641920f7a
warning: Exporting signed tag e204c44438b090d19d0b9e189c020707847ea859
warning: Exporting signed tag 0d84daf0872cbfe15cdd731030419b7ed6f7b3bb
warning: Exporting signed tag 6d7e2c8b2e5a19d0d66fd0540fa3a1b21fd70cc5
warning: Exporting signed tag 711f3f4f6ee55cbaa7983e9355a702cfc30a1090
warning: Exporting signed tag 9851a9b6ba6170e0a6a0f7444d0ae8c4b8ccffc9
warning: Exporting signed tag 873ddfc06aa09bdae17897e8efc1b57ffa6d53da
warning: Exporting signed tag be380189d5ebdddc36fbfd9edd3300cccb7d48a2
warning: Exporting signed tag c9bc0cf97fa59af2d73280dda83eb28951fd71b4
warning: Exporting signed tag 8ee3e12e03c1f757eed5fe2bbf202fc557081e4e
warning: Exporting signed tag 255b2b58167212c0ba8e67e09009fb19bda85276
Export to /home/wolfrage/Programing/otr.fi completed successfully.

Fast-Import Command that had the Error.
wolfrage@wolfrage-laptop1:~/Programing/bazaar/telepathy$ bzr fast-import ~/Programing/otr.fi ./otr/otr.bzr
not installing http[s]+webdav:// support (only supported for bzr 1.12 and above)
Creating destination repository ...
Shared repository with trees (format: 2a)
Location:
  shared repository: otr/otr.bzr
09:45:37 Collecting statistics ...
09:45:38 Starting import of 4163 commits ...
ABORT: exception occurred processing commit :1
bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: exceptions.IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/__init__.py", line 384, in run
    params, verbose, user_map=user_map)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/__init__.py", line 111, in _run
    return proc.process(p.iter_commands)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/processor.py", line 95, in process
    self._process(command_iter)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/processors/generic_processor.py", line 283, in _process
    processor.ImportProcessor._process(self, command_iter)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/processor.py", line 117, in _process
    handler(self, cmd)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/processors/generic_processor.py", line 493, in commit_handler
    handler.process()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/processor.py", line 200, in process
    self.pre_process_files()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/bzr_commit_handler.py", line 582, in pre_process_files
    super(InventoryDeltaCommitHandler, self).pre_process_files()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/bzr_commit_handler.py", line 91, in pre_process_files
    self.revision = self.build_revision()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/bzr_commit_handler.py", line 227, in build_revision
    self.branch_ref)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport/branch_mapper.py", line 39, in git_to_bzr
    name_no_ext = self._git_to_bzr_name(parts[-1])
IndexError: list index out of range

bzr 2.2.1 on python 2.6.6 (Linux-2.6.35-23-generic-i686-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'fast-import', '/home/wolfrage/Programing/otr.fi', './otr/otr.bzr']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.1]
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [2.2.0]
  builder /usr/lib/python2.6/dist-packages/bzrlib/plugins/builder [unknown]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  cvsps_import /usr/lib/python2.6/dist-packages/bzrlib/plugins/cvsps_import [unknown]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1.0dev]
  email /usr/lib/python2.6/dist-packages/bzrlib/plugins/email [unknown]
  etckeeper /usr/lib/python2.6/dist-packages/bzrlib/plugins/etckeeper [unknown]
  explorer /usr/lib/python2.6/dist-packages/bzrlib/plugins/explorer [1.1.0]
  fastimport /usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport [0.9.0dev]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.5.2]
  grep /usr/lib/python2.6/dist-packages/bzrlib/plugins/grep [0.4.0]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.99.0]
  hg /usr/lib/python2.6/dist-packages/bzrlib/plugins/hg [0.2.0dev]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.1]
  loom /usr/lib/python2.6/dist-packages/bzrlib/plugins/loom [2.1.0]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.1]
  pipeline /usr/lib/python2.6/dist-packages/bzrlib/plugins/pipeline [unknown]
  pqm /usr/lib/python2.6/dist-packages/bzrlib/plugins/pqm [1.4.0dev]
  qbzr /usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr [0.19.1]
  rewrite /usr/lib/python2.6/dist-packages/bzrlib/plugins/rewrite [0.6.1]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]
  stats /usr/lib/python2.6/dist-packages/bzrlib/plugins/stats [0.1.0dev]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.3]
  upload /usr/lib/python2.6/dist-packages/bzrlib/plugins/upload [1.0.0dev]
  webdav /usr/lib/python2.6/dist-packages/bzrlib/plugins/webdav [1.12.0]
  xmloutput /usr/lib/python2.6/dist-packages/bzrlib/plugins/xmloutput [0.8.6]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Martin Pool (mbp)
affects: bzr → bzr-fastimport
summary: - bzr fast-import OS permission denied
+ IndexError in git_to_bzr during fastimport
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is fixed in trunk and a dupe (though I can't find the original at the moment).

Changed in bzr-fastimport:
status: New → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-fastimport:
status: Fix Committed → Fix Released
milestone: none → 0.10.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.