Subversive: can't commit files inside a tags folder
Asked Answered
K

6

10

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?

Karat answered 17/12, 2008 at 14:57 Comment(2)
Perhaps, this question with regards to tags would provide some enlightenment: #16642Cramoisy
Thanks for the link Jon. Unfortunately, that's not the problem. I know how to work in the trunk, create tags & branches, and merge to the trunk, and cut a release and all that... This issue is different, and much more annoying.Karat
K
0

I finally got it working. I can only assume it's a bug in the Zend Studio for Eclipse's Subversive plugin.

If I try to commit by right clicking on the files in "PHP Explorer", it fails. If I "Override and Commit" via "Team -> Synchronize with Repository", it works fine.

Karat answered 31/1, 2009 at 20:16 Comment(0)
G
20

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

Gauldin answered 17/12, 2008 at 15:0 Comment(3)
I do have the layout you recommend. The problem I'm having is with /trunk/application/views/tags/index.tplKarat
just say yes to the prompt, as it is not a "tag" folder in the sense that it is warning you about.Enterostomy
It really isn't a problem. I have the same issue with libtiff because "tags" is a concept there too.Leonardo
P
1

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.

Plastered answered 17/12, 2008 at 15:2 Comment(0)
F
1

Subversion's just trying to warn you that you might be accidentally committing to a tag - that is, a labeled version of code - which in normal usage you would never do.

In your case I believe you've just got a folder called tags where you're working on taglib type stuff. You might want to call it something different to prevent the warning, but it sounds like it's spurious in your case.

Footstone answered 17/12, 2008 at 17:3 Comment(1)
the tricky part is that i can't rename it because the framework i'm using enforces strict naming conventions between controller & view. i have a tagsController, so i need to have some views in /views/tags -- and calling tags anything other than tags is kind of suck :(Karat
C
0

The trunk should usually represent the current working copy of your application, branches are there to support working on a previous version of an application (like they do with Firefox for example, they still release bug fixes to version 2.0 while the last version is in the trunk. Tags are just used to mark a specific release of your application, this makes it handy to check how code was at a specific release.

Why are you trying to change the tagged files?

Clava answered 17/12, 2008 at 15:7 Comment(1)
He's not trying to change the tagged files. He has a folder in his trunk code called "Tags" as in en.wikipedia.org/wiki/Tag_(metadata).Gauldin
K
0

I finally got it working. I can only assume it's a bug in the Zend Studio for Eclipse's Subversive plugin.

If I try to commit by right clicking on the files in "PHP Explorer", it fails. If I "Override and Commit" via "Team -> Synchronize with Repository", it works fine.

Karat answered 31/1, 2009 at 20:16 Comment(0)
O
0

See this post for a slightly longer explanation of why the warning pops up :-)

Osrock answered 2/3, 2009 at 19:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.