Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversive: can't commit files inside a tags folder

I'm using Zend Studio 6.1 for Eclipse, which comes bundled with the Subversive plug-in.

My repo layout is:

/trunk/
/branches/
/tags/

My application code is in:

/trunk/application

I'm trying to add some view templates in:

/trunk/application/views/tags/index.tpl

BUT Subversive won't let me commit any of the files in that folder. The message it gives me is:

"You are going to modify the tag on the repository. Do you want to continue?"

So I say "no". It seems to be confusing my 'tags' folder with SVN's concept of tags.

I can't rename the folder because the framework I'm using enforces strict naming conventions between controller & view. I have a tagsController, so my views must be in /views/tags

I could rename the controller to something other than 'tags', but that sucks, because a tag is a tag, not a schmag ;)

Any ideas on how to get around this?

like image 680
lo_fye Avatar asked Dec 17 '08 14:12

lo_fye


2 Answers

It's actually fine to say "Yes" to this warning.

A common layout for version control is to have 3 root folders:

/trunk
/tags
/branches

Once a trunk build has been released, the current contents of trunk are copied into a folder (e.g. "April 2008 version 1.3" or something) in tags. Generally speaking this folder should not then be modified, as it represents a specific build at a specific point in time, so Subversion will warn you if you attempt to change files in it.

However, in your case you have a folder which just happens to be called "tags", and contains trunk code, rather than tagged code, so it is perfectly right to say "Yes" to this warning and continue with the commit.

For more info, read the SVN Book, particularly Tags and Recommended Repository Layout

like image 147
RB. Avatar answered Nov 01 '22 03:11

RB.


Maybe change tho another plugin? "tags" and "branches" are exactly the same thing inside svn, it is only the logical view that we, as users, have of both that makes them different. You should be able -- even though it is not a good idea IMO -- to commit here.

It is one of my gripes with svn BTW, branches and tags are different things.

like image 24
Keltia Avatar answered Nov 01 '22 04:11

Keltia