On 2006-08-25, Timothy Miller wrote:
> Anyone know anything about adding major versions or tags to svn 
> repositories?

Yes.  You make a copy into the project toplevel "tags" directory.  E.g.
to tag the whole project,

    svn cp https://svn.suug.ch/repos/opengraphics/main/trunk \
           https://svn.suug.ch/repos/opengraphics/main/tags/TAG_NAME

This is of course just a convention, so we must make sure never to
commit changes to a tag (because then it would be a branch).  I'll leave
it to the authors of "Version Control with Subversion" to explain why
this makes sense:

    http://svnbook.red-bean.com/nightly/en/svn.branchmerge.tags.html

I am not sure what is the common convention for part of a project.  My
preference would be to create appropriate subdirectories under "tags"
first, and then copy to that,

    svn mkdir https://svn.suug.ch/repos/opengraphics/main/tags/rtl
    svn mkdir https://svn.suug.ch/repos/opengraphics/main/tags/rtl/mem_ctl
    ...
    svn cp ...trunk.../mem_ctl/tims ...tags.../mem_ctl/tims/revision-0.1

but if someone knowns otherwise, speak out.

> I have some files in one specific subdir of the respository that I'd
> like to add tag together as a single version.  I want to tag only
> those files.  When I do performance enhancements, the changes can be
> radical, and I'd like to make sure I can rewind to a known and
> consistent state.

If you don't want to bother with tags, remember that Subversion uses
global revision numbers.  That is, if you write down the revision number
you can always check out that specific revision later.
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to