On Wed, 14 Jul 2010 19:56:18 -0000, Elliot Murphy <email address hidden> wrote:
> Public bug reported:
>
> I heard that there was this amazing new feature where I could go run bzr
> bd in the subversion checkout of my debian packages from debian python
> modules team (these all use svn-buildpackage). When I tried this, I got
> an error:
>
>
> emurphy@sunk:~/python-packaging/django-lean$ bzr bd
> Initialising Subversion metadata cache in /home/emurphy/.cache/bazaar/svn/771dd761-d7fa-0310-a302-f036d1c1ebb6.
> Building using working tree
> Running in merge mode
> bzr: ERROR: Invalid url supplied to transport: "svn+ssh://<email address hidden>/svn/python-modules/packages/django-lean/trunk": local urls must start with file:/// or file://localhost/
Hi Elliot,
Thanks for the bug.
So, it thinks that the branch that you passed is a local build, which it
is, because you didn't pass one.
In that case it assumes that the branch.base will be be local, but I'm
guessing that it is not forced to be in a checkout.
Thefore we need to be a bit smarter here and take the root of the tree
instead, if we have a tree.
We won't have one if you pass a remote branch to build, or if you are in
a treeless branch. If it is the latter then branch.base will be local
and all will work, if it is the former then it will be remote and the
existing code will cope with this.
I'm not quite sure how to untwist the logic around this right now, but
it shouldn't be hard to make the necessary tweaks in cmds.py if you want
to hack it and see how far you get after this error is removed.
On Wed, 14 Jul 2010 19:56:18 -0000, Elliot Murphy <email address hidden> wrote: sunk:~/ python- packaging/ django- lean$ bzr bd .cache/ bazaar/ svn/771dd761- d7fa-0310- a302-f036d1c1eb b6. /svn/python- modules/ packages/ django- lean/trunk" : local urls must start with file:/// or file://localhost/
> Public bug reported:
>
> I heard that there was this amazing new feature where I could go run bzr
> bd in the subversion checkout of my debian packages from debian python
> modules team (these all use svn-buildpackage). When I tried this, I got
> an error:
>
>
> emurphy@
> Initialising Subversion metadata cache in /home/emurphy/
> Building using working tree
> Running in merge mode
> bzr: ERROR: Invalid url supplied to transport: "svn+ssh://<email address hidden>
Hi Elliot,
Thanks for the bug.
So, it thinks that the branch that you passed is a local build, which it
is, because you didn't pass one.
In that case it assumes that the branch.base will be be local, but I'm
guessing that it is not forced to be in a checkout.
Thefore we need to be a bit smarter here and take the root of the tree
instead, if we have a tree.
We won't have one if you pass a remote branch to build, or if you are in
a treeless branch. If it is the latter then branch.base will be local
and all will work, if it is the former then it will be remote and the
existing code will cope with this.
I'm not quite sure how to untwist the logic around this right now, but
it shouldn't be hard to make the necessary tweaks in cmds.py if you want
to hack it and see how far you get after this error is removed.
Thanks,
James