Fish Monitor
Fish Monitor

Reputation: 4565

Launchpad and github sync

I make launchpad automatically import code of my project from github. If I make changes at launchpad, like adding translations, is there a way to automatically export them to github? Or should I just switch to launchpad for code hosting?

Upvotes: 3

Views: 1654

Answers (3)

Mustafa Rawi
Mustafa Rawi

Reputation: 13

I tried to do the same and found bzr-git-ng plugin hosted on git: https://github.com/termie/git-bzr-ng

I didn't try syncing so far myself. Check the Extra Notes in the link above.

Upvotes: 0

jelmer
jelmer

Reputation: 2450

You can use the "dpush" command from the bzr-git plugin to push the changes on Launchpad back into Git.

E.g.:

$ bzr branch lp:~yourusername/yourproject/translations
$ cd translations
$ bzr dpush github:yourgithubusername/yourgithubrepo,branch=translations

Upvotes: 1

VonC
VonC

Reputation: 1326746

I don't see a two-way "roundtrip" mechanism in place to keep a bazaar and a git repo in sync.

That leaves you with bazaar export mechanism like fast-export (described in "Convert bazaar to git").
But the process doesn't seem to be incremental, which could risk at least for the first export to create a different history (different SHA1), making your first export a git push -force (not ideal)

So if your development environment of choice will be launchpad for the near future, switching to its dedicated VCS for now would be simpler.

Upvotes: 0

Related Questions