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?

lo_fye
  • 6,728
  • 2
  • 30
  • 49
  • Perhaps, this question with regards to tags would provide some enlightenment: http://stackoverflow.com/questions/16142/what-does-branch-tag-and-trunk-really-mean – Jon Limjap Dec 19 '08 at 05:40
  • 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. – lo_fye Dec 19 '08 at 16:59

6 Answers6

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

RB.
  • 33,692
  • 12
  • 79
  • 121
  • I do have the layout you recommend. The problem I'm having is with /trunk/application/views/tags/index.tpl – lo_fye Dec 17 '08 at 16:05
  • 3
    just say yes to the prompt, as it is not a "tag" folder in the sense that it is warning you about. – crashmstr Dec 17 '08 at 17:11
  • It really isn't a problem. I have the same issue with libtiff because "tags" is a concept there too. –  Apr 13 '12 at 15:01
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.

Keltia
  • 13,953
  • 3
  • 27
  • 30
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.

John Stoneham
  • 2,435
  • 18
  • 9
  • 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 :( – lo_fye Dec 17 '08 at 17:06
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?

Tamara Wijsman
  • 11,892
  • 8
  • 51
  • 80
  • 1
    He's not trying to change the tagged files. He has a folder in his trunk code called "Tags" as in http://en.wikipedia.org/wiki/Tag_(metadata). – RB. Dec 17 '08 at 15:08
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.

lo_fye
  • 6,728
  • 2
  • 30
  • 49
0

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