Page MenuHomeSolus

Initial version of bzr-fastimport
AbandonedPublic

Authored by kyrios123 on May 14 2018, 8:29 PM.

Details

Reviewers
DataDrake
Group Reviewers
Triage Team
Maniphest Tasks
T6399: bzr-fastimport
Summary

Inclusion of Bazaar Fast Import in the repository.

Depends on D2936, closes T6399.

Signed-off-by: Pierre-Yves <pyu@riseup.net>

Test Plan

TBD

Diff Detail

Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

kyrios123 created this revision.May 14 2018, 8:29 PM
kyrios123 requested review of this revision.May 14 2018, 8:29 PM
kyrios123 retitled this revision from Initial version of bzr-fastimport to [WIP] Initial version of bzr-fastimport.EditedMay 18 2018, 3:44 PM

I need some help to test this: I feel kinda stupid but my attempt for testing this failed and (and I think it's rather me who's the problem and not the package).

kyrios123 edited the summary of this revision. (Show Details)May 19 2018, 2:39 PM
kyrios123 retitled this revision from [WIP] Initial version of bzr-fastimport to Initial version of bzr-fastimport.May 21 2018, 7:20 PM

I need some help to test this: I feel kinda stupid but my attempt for testing this failed and (and I think it's rather me who's the problem and not the package).

From the request:

To be able to migrate repositories from bzr to git or another vcs

So maybe try to migrate a bzr repo to git?

DataDrake requested changes to this revision.Jul 19 2018, 3:06 PM

Bump for testplan

This revision now requires changes to proceed.Jul 19 2018, 3:06 PM
kyrios123 added a comment.EditedJul 19 2018, 6:00 PM

@DataDrake

I haven't managed to make a successful test. I did export a dummy git repository with just one branch and a few commits into a file
Then I did initialize a new bzr repo and I tried to import the file but I did not work:

 py   master  ~  tmp  GIT  git fast-export --all > project.fi
 py   master  ~  tmp  GIT  cd ../BZR/
 py  ~  tmp  BZR  bzr init-repo .
Shared repository with trees (format: 2a)
Location:
  shared repository: .
 py   BZR  ~  tmp  BZR  cp ../GIT/project.fi .
 py   BZR  ~  tmp  BZR  bzr fast-import project.fi project.bzr
bzr: ERROR: exceptions.ImportError: cannot import name single_plural

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 280, in run
    from bzrlib.plugins.fastimport.processors import generic_processor
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/processors/generic_processor.py", line 40, in <module>
    from bzrlib.plugins.fastimport import (
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/cache_manager.py", line 31, in <module>
    from fastimport.helpers import (
ImportError: cannot import name single_plural

bzr 2.7.0 on python 2.7.15 (Linux-4.17.6-82.current-x86_64-with-glibc2.2.5)
arguments: ['/usr/bin/bzr', 'fast-import', 'project.fi', 'project.bzr']
plugins: bash_completion[2.7.0], changelog_merge[2.7.0], fastimport[0.13.0],
    grep[2.7.0], launchpad[2.7.0], netrc_credential_store[2.7.0],
    news_merge[2.7.0], po_merge[2.7.0], weave_fmt[2.7.0]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_GB.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.
kyrios123 abandoned this revision.Aug 24 2018, 6:13 PM

Abandoned since I didn't managed to to make it work