On 20/10/06, Jakub Narebski <jnareb@gmail.com> wrote:
With the above layout, I would just type:
bzr branch http://server/repo/branch1
This command behaves identically whether the repository data is in
/repo or in /repo/branch1. Someone pulling from the branch doesn't
have to care what the repository structure is. Having a separate
namespace for branch names only really makes sense if the user needs
to care about it.
As for heirarchical names, there is nothing stopping you from using
deaper directory structures with Bazaar too. Bazaar just checks each
successive parent directory til it finds a repository for the branch.
I think you are a bit confused about how Bazaar works here. A Bazaar
repository is a store of trees and revision metadata. A Bazaar branch
is just a pointer to a head revision in the repository. As you can
probably guess, the data for the branch is a lot smaller than the data
for the repository.
You can store the repository and branch in the same directory to get a
standalone branch. The layout I described above has a repository in a
parent directory, shared by multiple branches.
If you are comparing Subversion and Bazaar, a Bazaar branch shares
more properties with a full Subversion repository rather than a
Subversion branch.
I may have got the git terminology wrong. I was trying to draw
parallels between the .git/refs/... files in a git repository and the
way multiple branches can be stored in a Bazaar repository.
I am not claiming that you'll get bandwidth or disk space benefits for
storing unrelated branches in a single Bazaar repository. But if the
branches are related, then there will be space savings (which is what
the great-grandparent post was asking about).
A revision number is only has meaning in the context of a branch. If
I mirror a branch, the revision numbers in the context of each will
refer to the same revision IDs.
I am not sure what sort of distinction you are trying to draw.
My point was that by shortening the IDs with GIT, you are trading
global uniqueness (i.e. the identifier may clash with one found in a
different context) for the convenience of shorter identifiers.
Provided you know that the tradeoff is being made, it isn't generally
much of a problem. I agree that the ability to pick how much of a
tradeoff is made by altering the length of the identifier is a nice
property of GIT.
I can't say I ever used usenet much, so can't comment too much. But
from your description, a (server, xref) tuple could be used to look up
the unique identifier in a similar way to how you can do so in Bazaar
with a (branch_url, revno) tuple.
James.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html