Labels [was: RE: Accidental double tag copy]
From: Rob Hubbard <rob.hubbard_at_softel.co.uk>
Date: Tue, 30 Sep 2008 09:38:35 +0100
> -----Original Message-----
> Basically, a label would simply be an alias to a revision. For
> * A label would be across an entire repository. If I have
Why?
A label *could* be mapped to a pinned URL.
If they're implemented as properties, then should they be
E.g., would you want labels like "experimental", "stable"?
Should they be stored effectively at the repository root,
> I know that Subversion works fine without "labels", and you
I think there are already all the tools required to "emulate"
With labels, its certainly nice to have meaningful names, such
----
However, I *do* think that SVN could be vastly improved with
better "support" of tags. Sometimes it would be useful to do an
svn log
with interleaved tag information: that is, show the history along with
the revisions forming the *sources* of copy commands.
This could perhaps be done by having a (versioned)
svn:copy-area
property containing a (list of) tag and/or branch areas of interest
associated with a directory
Then a command such as
svn log --show-copies
could first search up through the tree for an svn:copy-area property,
(probably stopping at the first one found)
perform a log of those areas, noting any copy operations, and display
interleaved log information something like this:
Suppose the "svn:copy-area" for /project/trunk has value
/project/branches
/project/tags
then a log "with copies"
$ svn log --show-copies -r100:200
might result in
------------------------------------------------------------------------
r100 | user | YYYY-MM-DD HH:MM:SS +0000 (Day, DD Mon YYYY) | N lines
Comment
========================================================================
"v1.0.1"
A /project/tags/v1.0.1 (from /project/trunk:112)
========================================================================
r125 | user | YYYY-MM-DD HH:MM:SS +0000 (Day, DD Mon YYYY) | N lines
Comment
------------------------------------------------------------------------
r150 | user | YYYY-MM-DD HH:MM:SS +0000 (Day, DD Mon YYYY) | N lines
Comment
========================================================================
"feature-x"
A /project/branches/feature-x (from /project/trunk:170)
========================================================================
r175 | user | YYYY-MM-DD HH:MM:SS +0000 (Day, DD Mon YYYY) | N lines
Comment
------------------------------------------------------------------------
This can of course be scripted, but it would be great to have this sort
of support directly.
I think the sort of syntax David mentioned could also be supported with
an approach similar to this. Other than a new "svn:copy-area" property
I don't think any further "scaffolding" is required. However, providing
the functionality itself is not entirely trivial...
Possibly, it would be better to have the "svn:copy-area" in the
working copy rather than the repository. But this was only intended to
be the beginnings of an idea...
Rob.
_______________________________________________
This email has been scanned for Softel by Star.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-30 10:39:04 CEST
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.