Is it possible to rename a tag in subversion?
Whenever I release a production version of the application, I tag the revision with the corresponding number, e.g, when version 1.0.0
was released, a corresponding tag was created:
svn copy https://svn.mydomain.com/project/trunk https://svn.mydomain.com/project/tags/v_1.0.0
In this same manner, I just checked in the code for version 1.0.3
of the application and create the corresponding tag. However I noticed that when 1.0.2
was released, the tag was created as v_1.2
instead of v_1.0.2
. Is there a way to rename the tag? At present, I have this:
r14 - final changes for version 1.0.2
r15 - tag 1.2 created
r16 - more changes
r17 - more changes
r18 - final changes for 1.0.3
r19 - tag 1.0.3 created
I'd like to rename tag 1.2
to 1.0.2
. Is there a way to do this?
In this case svn mv should work as follows: $ svn mv old_file_name new_file_name A new_file_name D old_file_name $ svn stat A + new_file_name > moved from old_file_name D old_file_name > moved to new_file_name $ svn commit Adding new_file_name Deleting old_file_name Committing transaction...
Because branches and tags are ordinary directories, the svn move command can move or rename them however you wish.
Version Control System supports the tag operation by using that concept that one can give meaningful name to a specific version of the code. Tag allows to give descriptive and memorable names to specific version of code. For example BASIC_ARRAY_OPERATIONS is more memorable than revision 4.
If you want to do a simple in-place rename of a file or folder, use Context Menu → Rename... Enter the new name for the item and you're done.
Yes, you can rename any part of subtree in Subversion repository.
Tag (any tag) is just directory inside /tags (if you use conventional layout). And rename can be applied to it
svn mv <REPO>/tags/v_1.2 <REPO>/tags/v_1.0.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With