git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What is the current best bi-directional git<->bzr method?
@ 2009-05-19 14:08 Alex Bennee
  2009-05-19 15:51 ` Pieter de Bie
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Bennee @ 2009-05-19 14:08 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What is the current best bi-directional git<->bzr method?
  2009-05-19 14:08 What is the current best bi-directional git<->bzr method? Alex Bennee
@ 2009-05-19 15:51 ` Pieter de Bie
  2009-05-19 20:31   ` Alex Bennee
  0 siblings, 1 reply; 3+ messages in thread
From: Pieter de Bie @ 2009-05-19 15:51 UTC (permalink / raw)
  To: Alex Bennee; +Cc: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What is the current best bi-directional git<->bzr method?
  2009-05-19 15:51 ` Pieter de Bie
@ 2009-05-19 20:31   ` Alex Bennee
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Bennee @ 2009-05-19 20:31 UTC (permalink / raw)
  To: Pieter de Bie; +Cc: git

2009/5/19 Pieter de Bie <pieter@frim.nl>:
> 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?

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-19 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-19 14:08 What is the current best bi-directional git<->bzr method? Alex Bennee
2009-05-19 15:51 ` Pieter de Bie
2009-05-19 20:31   ` Alex Bennee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).