Comment 7 for bug 485494

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 485494] Re: bzr-externals does not do the right thing for lightweight checkouts

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

Brian de Alwis wrote:
> Sorry, I wasn't clear: in this case, I was doing a pull from within a
> lightweight checkout.
>
> The problem in this case is that the brach base is not the location of
> the working tree. A lightweight checkout is simply a working tree
> whose branch was elsewhere (I hadn't realized this until now; I had
> thought they were much more invoked and different). The externals
> should be checked out into the working tree, but are being checked out
> into the branch.
>
> I came across this as doing an update from within a lightweight
> checkout did not update the externals. It's perfectly legit to do a
> pull from a lightweight checkout, isn't it?
>
> Perhaps there should be an explicit update-externals command?
> Likewise, it could be desirable to do a pull of the main branch
> without updating the externals; "pull --ignore-externals"?
>
> Brian.
>

It sounds more like externals needs a working-tree level hook that fires
whenever something occurs that it would want to update the working tree.
This happens a lot more often than just pull and update. (revert, for
example, should probably have some sort of meaning for externals, too.)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksGtwsACgkQJdeBCYSNAAPJ9wCfYkHZNccBFfqripkR5k1uvana
7REAoI6g8wBvnYTTwloLeWAEgJRSw3ob
=LO7/
-----END PGP SIGNATURE-----