git
git copied to clipboard
Push to new launchpad branch using git-remote-bzr
I'm trying a typical Launchpad MP workflow using git-remote-bzr.
Cloned the lp repository, I commited changes, and now I need to push them to a new LP branch, to then make a merge proposal.
Using bzr, I would bzr push lp:~<user>/<project>/<branch>
:
bzr push lp:~dreis-pt/contract-management/7.0-project_sla-dr
So I try:
git push bzr::lp:~dreis-pt/contract-management/7.0-project_sla-dr
But this results in:
Traceback (most recent call last):
File "/usr/bin/git-remote-bzr", line 946, in <module>
sys.exit(main(sys.argv))
File "/usr/bin/git-remote-bzr", line 918, in main
repo = get_repo(url, alias)
File "/usr/bin/git-remote-bzr", line 804, in get_repo
origin = bzrlib.bzrdir.BzrDir.open(url, possible_transports=transports)
File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 687, in open
_unsupported=_unsupported)
File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 721, in open_from_transport
return format.open(transport, _found=True)
File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 1499, in open
return self._open(transport)
File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 317, in _open
return RemoteBzrDir(transport, self)
File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 436, in __init__
self._probe_bzrdir()
File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 448, in _probe_bzrdir
self._rpc_open_2_1(path)
File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 457, in _rpc_open_2_1
raise errors.NotBranchError(path=self.root_transport.base)
bzrlib.errors.NotBranchError: Not a branch: "bzr+ssh://bazaar.launchpad.net/~dreis-pt/contract-management/7.0-project_sla-dr/".
I did read the available docs but found no help on this.
Have a look at git-lp. It's built exactly for that purpose.
2013/12/19 Daniel Reis [email protected]
I'm trying a typical Launchpad MP workflow using git-remote-bzr.
Cloned the lp repository, I commited changes, and now I need to push them to a new LP branch, to then make a merge proposal.
Using bzr, I would bzr push lp:~
/ / : bzr push lp:~dreis-pt/contract-management/7.0-project_sla-dr
So I try:
git push bzr::lp:~dreis-pt/contract-management/7.0-project_sla-dr
But this results in:
Traceback (most recent call last): File "/usr/bin/git-remote-bzr", line 946, in
sys.exit(main(sys.argv)) File "/usr/bin/git-remote-bzr", line 918, in main repo = get_repo(url, alias) File "/usr/bin/git-remote-bzr", line 804, in get_repo origin = bzrlib.bzrdir.BzrDir.open(url, possible_transports=transports) File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 687, in open _unsupported=_unsupported) File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 721, in open_from_transport return format.open(transport, _found=True) File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 1499, in open return self._open(transport) File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 317, in _open return RemoteBzrDir(transport, self) File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 436, in init self._probe_bzrdir() File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 448, in _probe_bzrdir self._rpc_open_2_1(path) File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 457, in _rpc_open_2_1 raise errors.NotBranchError(path=self.root_transport.base) bzrlib.errors.NotBranchError: Not a branch: "bzr+ssh://bazaar.launchpad.net/~dreis-pt/contract-management/7.0-project_sla-dr/". I did read the available docshttps://github.com/felipec/git/wiki/git-remote-bzrbut found no help on this.
— Reply to this email directly or view it on GitHubhttps://github.com/felipec/git/issues/55 .
Thanks, I'll try that. You didn't make it easy for me, though: I eventually managed to find it at http://zyga.github.io/git-lp/
Yes, sorry that was from my phone. We're using it daily in a team of 4-6 people (on average) and it works okay, if you have any issues open a bug on https://github.com/zyga/git-lp/issues
I'm working on a new revision of git-lp that adds code review support, should be released in January.
It should be possible to implement this feature in git-remote-bzr, but it doesn't work as of yet.