What is the current best bi-directional git<->bzr method?

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

What is the current best bi-directional git<->bzr method?

From: Alex Bennee <hidden>
Date: 2016-06-15 22:46:47

Hi,

I'm starting to mess around with project on Launchpad which are all
hosted with bzr. Short of convincing these projects to switch DVCS
just for me I need a decent bi-directional way of dealing with bzr
archives.

I found a script[1] which I have hacked a bit[2] to import repo's
fine. However going the other way doesn't seem to work. Before I mess
around too much further I though I'd check if there are any known
working gateways at the moment?

[1] http://github.com/pieter/git-bzr/tree/master
[2] http://github.com/stsquad/git-bzr/tree/master

-- 
Alex, homepage: http://www.bennee.com/~alex/
CV: http://www.bennee.com/~alex/cv.php

Re: What is the current best bi-directional git<->bzr method?

From: Pieter de Bie <hidden>
Date: 2016-06-15 22:46:48

Hi,

On May 19, 2009, at 3:08 PM, Alex Bennee wrote:
I found a script[1] which I have hacked a bit[2] to import repo's
fine. However going the other way doesn't seem to work. Before I mess
around too much further I though I'd check if there are any known
working gateways at the moment?
Bidirectional syncing should work, though I've heard there
may be some problems with multiple branches. I had a discussion
with someone about the used mapping, and they hacked up something
in bash, though I've never looked at it. I've lost interest in
git<->bzr syncing (and bzr in general) some time ago, so I never
looked at it further. What specific problem do you have?

It might be that Bazaar changed something in the last year.
They change their repository format and commands quite frequently,
so you might be able to get it to work with an older version.
[1] http://github.com/pieter/git-bzr/tree/master
[2] http://github.com/stsquad/git-bzr/tree/master
- Pieter

Re: What is the current best bi-directional git<->bzr method?

From: Alex Bennee <hidden>
Date: 2016-06-15 22:46:48

2009/5/19 Pieter de Bie [off-list ref]:
Hi,

On May 19, 2009, at 3:08 PM, Alex Bennee wrote:
quoted
I found a script[1] which I have hacked a bit[2] to import repo's
fine. However going the other way doesn't seem to work. Before I mess
around too much further I though I'd check if there are any known
working gateways at the moment?
Bidirectional syncing should work, though I've heard there
may be some problems with multiple branches. I had a discussion
with someone about the used mapping, and they hacked up something
in bash, though I've never looked at it. I've lost interest in
git<->bzr syncing (and bzr in general) some time ago, so I never
looked at it further. What specific problem do you have?
Erm it spat out a bunch of python errors which didn't make much sense
and I was hoping to avoid digging into:

21:28 alex@danny/x86_64 [gwibber.git] >git bzr push test
bzr: ERROR: exceptions.KeyError: ':465'

Traceback (most recent call last):
  File "//usr/lib64/python2.5/site-packages/bzrlib/commands.py", line
727, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "//usr/lib64/python2.5/site-packages/bzrlib/commands.py", line
922, in run_bzr
    ret = run(*run_argv)
  File "//usr/lib64/python2.5/site-packages/bzrlib/commands.py", line
559, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/alex/.bazaar/plugins/fastimport/__init__.py", line 221, in run
    params, verbose)
  File "/home/alex/.bazaar/plugins/fastimport/__init__.py", line 75, in _run
    return proc.process(p.iter_commands)
  File "/home/alex/.bazaar/plugins/fastimport/processor.py", line 92, in process
    self._process(command_iter)
  File "/home/alex/.bazaar/plugins/fastimport/processors/generic_processor.py",
line 269, in _process
    processor.ImportProcessor._process(self, command_iter)
  File "/home/alex/.bazaar/plugins/fastimport/processor.py", line 114,
in _process
    handler(self, cmd)
  File "/home/alex/.bazaar/plugins/fastimport/processors/generic_processor.py",
line 459, in commit_handler
    handler.process()
  File "/home/alex/.bazaar/plugins/fastimport/processor.py", line 193,
in process
    self.pre_process_files()
  File "/home/alex/.bazaar/plugins/fastimport/bzr_commit_handler.py",
line 517, in pre_process_files
    super(InventoryDeltaCommitHandler, self).pre_process_files()
  File "/home/alex/.bazaar/plugins/fastimport/bzr_commit_handler.py",
line 64, in pre_process_files
    for p in parents]
KeyError: ':465'

bzr 1.14.1 on python 2.5.4 (linux2)
arguments: ['/usr/bin/bzr', 'fast-import',
'--import-marks=/home/alex/src/gwibber/gwibber.git/.git/bzr-git/test-bzr-map',
'--export-marks=/home/alex/src/gwibber/gwibber.git/.git/bzr-git/test-bzr-map',
'-']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: 'en_GB'
plugins:
  bzrtools
/usr/lib64/python2.5/site-packages/bzrlib/plugins/bzrtools [1.14]
  fastimport           /home/alex/.bazaar/plugins/fastimport [0.8dev]
  launchpad
/usr/lib64/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store
/usr/lib64/python2.5/site-packages/bzrlib/plugins/netrc_credential_store
[unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

*sigh* I suppose it's time to break out those debugging shoes...

-- 
Alex, homepage: http://www.bennee.com/~alex/
CV: http://www.bennee.com/~alex/cv.php
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help