Bad restart - attempted to skip commit 559 but matching revision-id is unknown

Bug #1449623 reported by Peter Sabaini on 2015-04-28
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
Undecided
Unassigned

Bug Description

Crash when restarting an import. Traceback:

git fast-export --after 2015-04-16T18:13:47Z HEAD --signed-tags=warn | (cd ~/src ; bzr fast-import - tempest-trunk-3 )
17:26:30 Starting import ...
17:26:30 Found 6290 commits already loaded - skipping over these ...
bzr: ERROR: fastimport.errors.BadRestart: Bad restart - attempted to skip commit 559 but matching revision-id is unknown

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/cmds.py", line 314, in run
    user_map=user_map)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/cmds.py", line 45, in _run
    return proc.process(p.iter_commands)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/processors/generic_processor.py", line 310, in process
    super(GenericProcessor, self)._process(command_iter)
  File "/usr/lib/python2.7/dist-packages/fastimport/processor.py", line 86, in _process
    handler(self, cmd)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/processors/generic_processor.py", line 519, in commit_handler
    raise plugin_errors.BadRestart(mark)
BadRestart: Bad restart - attempted to skip commit 559 but matching revision-id is unknown

bzr 2.7.0dev1 on python 2.7.9 (Linux-3.19.0-15-generic-x86_64-with-
    Ubuntu-15.04-vivid)
arguments: ['/usr/bin/bzr', 'fast-import', '-', 'tempest-trunk-3']
plugins: bash_completion[2.7.0dev1], builddeb[2.8.6], bzrtools[2.6.0],
    changelog_merge[2.7.0dev1], explorer[1.3.0], fastimport[0.13.0],
    git[0.6.12], grep[2.7.0dev1], launchpad[2.7.0dev1],
    netrc_credential_store[2.7.0dev1], news_merge[2.7.0dev1],
    po_merge[2.7.0dev1], qbzr[0.23.1], weave_fmt[2.7.0dev1]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'

The previous (initial) import was successful fwiw:

git fast-export --before 2015-04-16T18:13:47Z HEAD --signed-tags=warn | (cd ~/src ; bzr fast-import - tempest-trunk-3 )
Creating destination repository ...
Shared repository with trees (format: 2a)
Location:
  shared repository: tempest-trunk-3
17:21:27 Starting import ...
17:21:41 1000 commits processed at 4366/minute (3466)
17:22:02 2000 commits processed at 3475/minute (6399)
17:22:41 3000 commits processed at 2437/minute (9852)
17:23:25 4000 commits processed at 2035/minute (12834)
17:24:04 5000 commits processed at 1916/minute (15587)
17:24:42 6000 commits processed at 1843/minute (19561)
17:25:01 Updating branch information ...
         branch trunk now has 3343 revisions and 0 tags
17:25:01 Updating the working tree for /home/peter/src/tempest-trunk-3/trunk ...
All changes applied successfully.
17:25:02 Imported 6290 revisions, updating 1 branch and 1 tree in 0:03:35

Vincent Ladeuil (vila) on 2015-10-14
affects: bzr → bzr-fastimport
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers