Comment 2 for bug 124859

Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 124859] incorrect repository detected with symlink to a branch

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

Robert Collins wrote:
> The cause is that the branch object for 'link' has not followed the
> symlink

I disagree that following the symlink is The Right Thing.

The symlink may well be a versioned file, so the containing directory is
the correct place to search. This allows "bzr log link" to give the
version history of the symlink, while bzr log "subproject/subtree" will
give the version history of the subtree.

Following the symlink would mean that there would be no way to get the
version history of the symlink, and would have even worse effects with
"commit", "merge", "revert" et al.

In sum, symlinks are first-class entities in Bazaar, so it does not make
sense to follow them.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGkjpJ0F+nu1YWqI0RAlkjAJ4uL8uNBIUqJlaZPxnjsUToWbup3wCfYv62
mbNwtLIDe8StDNRVx/vjvy0=
=41Yi
-----END PGP SIGNATURE-----