{"thread":{"id":"19414","subject":"What is the current best bi-directional git<->bzr method?","startedAt":"2009-05-19T14:08:22Z","lastAt":"2009-05-19T20:31:44Z","messageCount":3,"participants":["Alex Bennee","Pieter de Bie"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"114267","messageId":"b2cdc9f30905190708t1e170106oce3c577933c99247@mail.gmail.com","threadId":"19414","inReplyTo":null,"subject":"What is the current best bi-directional git<->bzr method?","fromName":"Alex Bennee","fromEmail":"kernel-hacker@bennee.com","sentAt":"2009-05-19T14:08:22Z","receivedAt":"2009-05-19T14:08:22Z","isPatch":false,"sender":{"key":"kernel-hacker@bennee.com","avatar":null},"body":"Hi,\n\nI'm starting to mess around with project on Launchpad which are all\nhosted with bzr. Short of convincing these projects to switch DVCS\njust for me I need a decent bi-directional way of dealing with bzr\narchives.\n\nI found a script[1] which I have hacked a bit[2] to import repo's\nfine. However going the other way doesn't seem to work. Before I mess\naround too much further I though I'd check if there are any known\nworking gateways at the moment?\n\n[1] http://github.com/pieter/git-bzr/tree/master\n[2] http://github.com/stsquad/git-bzr/tree/master\n\n-- \nAlex, homepage: http://www.bennee.com/~alex/\nCV: http://www.bennee.com/~alex/cv.php\n"},{"id":"114283","messageId":"03D68F82-503F-47D1-BF65-9D255E16EE00@frim.nl","threadId":"19414","inReplyTo":"b2cdc9f30905190708t1e170106oce3c577933c99247@mail.gmail.com","subject":"Re: What is the current best bi-directional git<->bzr method?","fromName":"Pieter de Bie","fromEmail":"pieter@frim.nl","sentAt":"2009-05-19T15:51:36Z","receivedAt":"2009-05-19T15:51:36Z","isPatch":false,"sender":{"key":"pieter@frim.nl","avatar":null},"body":"Hi,\n\nOn May 19, 2009, at 3:08 PM, Alex Bennee wrote:\n> I found a script[1] which I have hacked a bit[2] to import repo's\n> fine. However going the other way doesn't seem to work. Before I mess\n> around too much further I though I'd check if there are any known\n> working gateways at the moment?\n\nBidirectional syncing should work, though I've heard there\nmay be some problems with multiple branches. I had a discussion\nwith someone about the used mapping, and they hacked up something\nin bash, though I've never looked at it. I've lost interest in\ngit<->bzr syncing (and bzr in general) some time ago, so I never\nlooked at it further. What specific problem do you have?\n\nIt might be that Bazaar changed something in the last year.\nThey change their repository format and commands quite frequently,\nso you might be able to get it to work with an older version.\n\n> [1] http://github.com/pieter/git-bzr/tree/master\n> [2] http://github.com/stsquad/git-bzr/tree/master\n\n- Pieter\n"},{"id":"114302","messageId":"b2cdc9f30905191331t73795005haad00c7840e9e2a1@mail.gmail.com","threadId":"19414","inReplyTo":"03D68F82-503F-47D1-BF65-9D255E16EE00@frim.nl","subject":"Re: What is the current best bi-directional git<->bzr method?","fromName":"Alex Bennee","fromEmail":"kernel-hacker@bennee.com","sentAt":"2009-05-19T20:31:44Z","receivedAt":"2009-05-19T20:31:44Z","isPatch":false,"sender":{"key":"kernel-hacker@bennee.com","avatar":null},"body":"2009/5/19 Pieter de Bie <pieter@frim.nl>:\n> Hi,\n>\n> On May 19, 2009, at 3:08 PM, Alex Bennee wrote:\n>>\n>> I found a script[1] which I have hacked a bit[2] to import repo's\n>> fine. However going the other way doesn't seem to work. Before I mess\n>> around too much further I though I'd check if there are any known\n>> working gateways at the moment?\n>\n> Bidirectional syncing should work, though I've heard there\n> may be some problems with multiple branches. I had a discussion\n> with someone about the used mapping, and they hacked up something\n> in bash, though I've never looked at it. I've lost interest in\n> git<->bzr syncing (and bzr in general) some time ago, so I never\n> looked at it further. What specific problem do you have?\n\nErm it spat out a bunch of python errors which didn't make much sense\nand I was hoping to avoid digging into:\n\n21:28 alex@danny/x86_64 [gwibber.git] >git bzr push test\nbzr: ERROR: exceptions.KeyError: ':465'\n\nTraceback (most recent call last):\n  File \"//usr/lib64/python2.5/site-packages/bzrlib/commands.py\", line\n727, in exception_to_return_code\n    return the_callable(*args, **kwargs)\n  File \"//usr/lib64/python2.5/site-packages/bzrlib/commands.py\", line\n922, in run_bzr\n    ret = run(*run_argv)\n  File \"//usr/lib64/python2.5/site-packages/bzrlib/commands.py\", line\n559, in run_argv_aliases\n    return self.run(**all_cmd_args)\n  File \"/home/alex/.bazaar/plugins/fastimport/__init__.py\", line 221, in run\n    params, verbose)\n  File \"/home/alex/.bazaar/plugins/fastimport/__init__.py\", line 75, in _run\n    return proc.process(p.iter_commands)\n  File \"/home/alex/.bazaar/plugins/fastimport/processor.py\", line 92, in process\n    self._process(command_iter)\n  File \"/home/alex/.bazaar/plugins/fastimport/processors/generic_processor.py\",\nline 269, in _process\n    processor.ImportProcessor._process(self, command_iter)\n  File \"/home/alex/.bazaar/plugins/fastimport/processor.py\", line 114,\nin _process\n    handler(self, cmd)\n  File \"/home/alex/.bazaar/plugins/fastimport/processors/generic_processor.py\",\nline 459, in commit_handler\n    handler.process()\n  File \"/home/alex/.bazaar/plugins/fastimport/processor.py\", line 193,\nin process\n    self.pre_process_files()\n  File \"/home/alex/.bazaar/plugins/fastimport/bzr_commit_handler.py\",\nline 517, in pre_process_files\n    super(InventoryDeltaCommitHandler, self).pre_process_files()\n  File \"/home/alex/.bazaar/plugins/fastimport/bzr_commit_handler.py\",\nline 64, in pre_process_files\n    for p in parents]\nKeyError: ':465'\n\nbzr 1.14.1 on python 2.5.4 (linux2)\narguments: ['/usr/bin/bzr', 'fast-import',\n'--import-marks=/home/alex/src/gwibber/gwibber.git/.git/bzr-git/test-bzr-map',\n'--export-marks=/home/alex/src/gwibber/gwibber.git/.git/bzr-git/test-bzr-map',\n'-']\nencoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: 'en_GB'\nplugins:\n  bzrtools\n/usr/lib64/python2.5/site-packages/bzrlib/plugins/bzrtools [1.14]\n  fastimport           /home/alex/.bazaar/plugins/fastimport [0.8dev]\n  launchpad\n/usr/lib64/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]\n  netrc_credential_store\n/usr/lib64/python2.5/site-packages/bzrlib/plugins/netrc_credential_store\n[unknown]\n*** Bazaar has encountered an internal error.\n    Please report a bug at https://bugs.launchpad.net/bzr/+filebug\n    including this traceback, and a description of what you\n    were doing when the error occurred.\n\n*sigh* I suppose it's time to break out those debugging shoes...\n\n-- \nAlex, homepage: http://www.bennee.com/~alex/\nCV: http://www.bennee.com/~alex/cv.php\n"}]}