Veamos un ejemplo de creación de un tag. Primero creamos el proyecto:
casiano@exthost:~/src/subversion/BUG-3035$ svn mkdir svn+ssh://banot/home/casiano/repository/ejemplo/ Committed revision 1. casiano@exthost:~/src/subversion/BUG-3035$ svn mkdir svn+ssh://banot/home/casiano/repository/ejemplo/tags/ Committed revision 2. casiano@exthost:~/src/subversion/BUG-3035$ svn mkdir svn+ssh://banot/home/casiano/repository/ejemplo/branches/ Committed revision 3. casiano@exthost:~/src/subversion$ h2xs -XA -n SVN::Example Defaulting to backwards compatibility with perl 5.10.0 If you intend this module to be compatible with earlier perl versions, please specify a minimum perl version with the -b option. Writing SVN-Example/lib/SVN/Example.pm Writing SVN-Example/Makefile.PL Writing SVN-Example/README Writing SVN-Example/t/SVN-Example.t Writing SVN-Example/Changes Writing SVN-Example/MANIFEST casiano@exthost:~/src/subversion$ svn import SVN-Example/ svn+ssh://banot/home/casiano/repository/ejemplo/trunk/ Adding SVN-Example/t Adding SVN-Example/t/SVN-Example.t Adding SVN-Example/lib Adding SVN-Example/lib/SVN Adding SVN-Example/lib/SVN/Example.pm Adding SVN-Example/MANIFEST Adding SVN-Example/Makefile.PL Adding SVN-Example/Changes Adding SVN-Example/README Committed revision 4. casiano@exthost:~/src/subversion$ svn ls svn+ssh://banot/home/casiano/repository/ejemplo/trunk/ Changes MANIFEST Makefile.PL README lib/ t/
Para crear una etiqueta hacemos una copia:
casiano@exthost:~/src/subversion/ejemplo$ svn cp svn+ssh://banot/home/casiano/repository/ejemplo/trunk \ svn+ssh://banot/home/casiano/repository/ejemplo/tags/REL-1.0 \ -m 'tagging release 1.0' Committed revision 12. casiano@exthost:~/src/subversion/ejemplo$ svn diff svn+ssh://banot/home/casiano/repository/ejemplo/trunk \ svn+ssh://banot/home/casiano/repository/ejemplo/tags/REL-1.0 casiano@exthost:~/src/subversion/ejemplo$
Casiano Rodríguez León