Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push to new launchpad branch using git-remote-bzr #55

Open
dreispt opened this issue Dec 19, 2013 · 4 comments
Open

Push to new launchpad branch using git-remote-bzr #55

dreispt opened this issue Dec 19, 2013 · 4 comments

Comments

@dreispt
Copy link

dreispt commented Dec 19, 2013

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.

@zyga
Copy link

zyga commented Dec 19, 2013

Have a look at git-lp. It's built exactly for that purpose.

2013/12/19 Daniel Reis notifications@github.com

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//issues/55
.

@dreispt
Copy link
Author

dreispt commented Dec 19, 2013

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/

@zyga
Copy link

zyga commented Dec 19, 2013

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.

@felipec
Copy link
Owner

felipec commented Jan 26, 2014

It should be possible to implement this feature in git-remote-bzr, but it doesn't work as of yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants