tags vs branches in a repo

Jan Hudec bulb at ucw.cz
Thu May 11 23:04:31 BST 2006


On Thu, May 11, 2006 at 23:52:34 +0200, Matthieu Moy wrote:
> Jan Hudec <bulb at ucw.cz> writes:
> 
> > On Thu, May 11, 2006 at 22:59:55 +0200, Erik Bågfors wrote:
> >> If we go in a way that tags and named revisions, that means that they
> >> are not global for a repository.  Using branches as tags has the
> >> advantage that they are repository wide.
> >
> > If we go in a way that tags are named revisions, that means that they *ARE*
> > global for a repository. They would be stored in a special knit and that
> > special knit would be in the repository. So there is no problem looking
> > there.
> 
> IIUC, repositories are not aware of the branches composing it. Only
> branches know which repository they belong to.
> 
> So, a repository-wide tags store could point to a revision as the
> unique identifier for this revision, but I'm not sure how to do
> cleanly a way to say "this tag corresponds to revno 12 in branch foo",
> which should probably be there in the user interface.

Revisions don't really belong to branches in bzr. So that question can't
really be answered. You can:
- ask what revno does the tag correspond to on a particular branch
- ask whether it's merged in a particular branch
  (there would be just one command, that would say either "it is revno 12" or
  "it is merged in revno 12"'--or "it's not present")
- make a branch from the tag

> Perhaps just a command to find all the instance of this revision in
> different branches is sufficient (but we come back to the problem of
> how to list branches in a repository).

I think an experimental plugin to do that was recently announced.

> (note: there are many cases where you don't need the branch+revno, of
> course, but I think this possibility should be offered)

I actually can't think of *any* case where I'd need to list all branches that
contain that revision. Asking whether it is in some particular set of
branches is not a problem.

-- 
						 Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060512/2af33429/attachment.pgp 


More information about the bazaar mailing list