Friday, May 30, 2014

svn tag

Reference goes here: http://svnbook.red-bean.com/en/1.6/svn.branchmerge.tags.html

Creating a Simple Tag

Once again, svn copy comes to the rescue. If you want to create a snapshot of /calc/trunk exactly as it looks in the HEAD
revision, make a copy of it:

$ svn copy http://svn.example.com/repos/calc/trunk \
           http://svn.example.com/repos/calc/tags/release-1.0 \
      -m "Tagging the 1.0 release of the 'calc' project."


Committed revision 902.


Creating a Complex Tag


Sometimes you may want your “snapshot” to be more complicated than a single directory at a single revision.

$ ls
my-working-copy/

$ svn copy my-working-copy \
           http://svn.example.com/repos/calc/tags/mytag \
           -m "Tag my existing working copy state."

Committed revision 940.

No comments:

Post a Comment