fast-import failed

Bug #1345094 reported by Dave Nadler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
Fix Released
Undecided
Unassigned

Bug Description

It *may* be a duplicate of #1084749??
I'm using cygwin, just updated to latest builds (from cygwin that is) yesterday.

However, I do *NOT* get this error when I invoke fast-import through an older BZR/Tortoise:
Run command: bzr version
Bazaar (bzr) 2.5.1
  Python interpreter: C:\Program Files\Bazaar\python26.dll 2.6.6
  Python standard library: C:\Program Files\Bazaar\lib\library.zip
  Platform: Windows-7-6.1.7601-SP1
  bzrlib: C:\Program Files\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:/Users/Dave Nadler/AppData/Roaming/bazaar/2.0
  Bazaar log file: C:\Users\Dave Nadler\Documents\.bzr.log

Here's the report from the failure under cygwin:

$ bzr fast-import ./svn-fast-import-stream
14:41:45 Starting import of 643 commits ...
14:44:56 Updating branch information ...
bzr: ERROR: exceptions.AttributeError: 'CHKInventoryRepository' object has no attribute 'get_ancestry'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/cmds.py", line 307, in run
    user_map=user_map)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/cmds.py", line 39, in _run
    return proc.process(p.iter_commands)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/processors/generic_processor.py", line 310, in process
    super(GenericProcessor, self)._process(command_iter)
  File "/usr/lib/python2.7/site-packages/fastimport/processor.py", line 79, in _process
    self.post_process()
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/processors/generic_processor.py", line 351, in post_process
    branches_updated, branches_lost = updater.update()
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/branch_updater.py", line 61, in update
    if self._update_branch(br, tip):
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/branch_updater.py", line 168, in _update_branch
    ancestry = self.repo.get_ancestry(last_rev_id)
AttributeError: 'CHKInventoryRepository' object has no attribute 'get_ancestry'

bzr 2.6.0 on python 2.7.3 (CYGWIN_NT-6.1-1.7.30-0.272-5-3-i686-32bit)
arguments: ['/usr/bin/bzr', 'fast-import', './svn-fast-import-stream']
plugins: bash_completion[2.6.0], changelog_merge[2.6.0], fastimport[0.13.0],
    grep[2.6.0], launchpad[2.6.0], netrc_credential_store[2.6.0],
    news_merge[2.6.0], po_merge[2.6.0], weave_fmt[2.6.0]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'

*** 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.

Dave Nadler (drn-nadler)
summary: - fast-import crashed
+ fast-import failed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Please update to a newer version of bzr-fastimport. Newer versions no longer use get_ancestry().

Changed in bzr:
status: New → Invalid
status: Invalid → Fix Released
affects: bzr → bzr-fastimport
Revision history for this message
Dave Nadler (drn-nadler) wrote : Re: [Bug 1345094] Re: fast-import failed

Apologies, but I have no idea how to "update to a newer version of
bzr-fastimport".
I'm unfortunately using Windows7 with two copies of BZR from latest
installs I could find:
- cygwin install
- tortoise BZR install
Last time I tried to find bzr-fastimport I was led down a
maze of web pages until I was asked for security credentials
and just gave up...

Thanks!
Best Regards, Dave

On 8/4/2014 8:58 PM, Jelmer Vernooij wrote:
> Please update to a newer version of bzr-fastimport. Newer versions no
> longer use get_ancestry().
>
> ** Changed in: bzr
> Status: New => Invalid
>
> ** Changed in: bzr
> Status: Invalid => Fix Released
>
> ** Project changed: bzr => bzr-fastimport
>

--
Dave Nadler, USA East Coast voice (978) 263-0097, <email address hidden>, Skype
  Dave.Nadler1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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