Interpret .bzr/branch/location relative to checkout root
John Arbash Meinel
john at arbash-meinel.com
Wed Oct 8 19:29:03 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Colin D Bennett wrote:
...
> So bzr is interpreting the '.bzr/branch/location' contents relative to
> the current working directory. I propose that it should interpret the
> 'location' of the checkout's bound branch relative to the checkout
> root. It should not behave differently depending on what subdirectory
> depth you are at below the checkout.
>
> Am I missing something? Is the current behavior intended, and would a
> patch be welcome to make it relative to the checkout root?
>
> Regards,
> Colin
So the contents of 'location' are supposed to be absolute paths. It
happens to work sometimes if you force it to a relative path, but as you
noticed, it is a bit more accidental than on purpose.
Personally, I think it would be good to do a relative path when
possible, like we do for "get_parent". My only concern is about
compatibility with older clients, as they won't be able to understand a
checkout with a relative location very well.
Perhaps we can bring in the functionality, and not make it default, so
that people can do it themselves, and then on the next WT release, we
make it the default behavior.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjs++8ACgkQJdeBCYSNAAONUgCfWRfV+NbeuQOIHRTsxGeLiUc5
G7sAnRyFnAwITUfv+bbaMHW23sZdgC1B
=WWK/
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list