[bug] bzr push to lightweight checkout inside repository pushes to the wrong repo

John Arbash Meinel john at arbash-meinel.com
Thu Dec 13 19:32:08 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have an admittedly odd situation. But at one point on my server, I created a
shared repository in ~/dev/bzr. And I had branches underneath there.

I realized they were all checkouts of /srv/bzr/branches/*, so I started
switching them to lightweight checkouts.

I wanted to test my "push-and-update" plugin (if I could push to a lw checkout
of a branch and have it update the checkout).

But when I did "bzr push sftp://host/~/dev/bzr/bzr.dev" it started copying the
revisions into ~/dev/bzr/.bzr/repository, rather than /srv/bzr/public/...

I would have thought we would open the remote branch first, and then search for
a repository. (Which would trigger the redirect).

Anyway, it was pretty surprising to have it open the containing repository when
there is no branch there. Maybe we only open the BzrDir and then search for a
containing repository (before we actually check the branch?).

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHYYi4JdeBCYSNAAMRAkQBAJ48j2JAgo1iwMoK8fm68yzHU8ykFwCgtdPE
8iJygawzm/hOgIR4WyAqghk=
=4jcL
-----END PGP SIGNATURE-----



More information about the bazaar mailing list