Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to rename svn tag

Tags:

rename

svn

tags

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?

like image 895
Aleks G Avatar asked Mar 07 '13 11:03

Aleks G


People also ask

How do I change my name in svn?

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...

Can we rename branch in svn?

Because branches and tags are ordinary directories, the svn move command can move or rename them however you wish.

How do tags work in svn?

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.

How do I rename a directory in svn?

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.


1 Answers

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

like image 192
Lazy Badger Avatar answered Nov 15 '22 15:11

Lazy Badger