• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Subversion commit to a tag

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Can we commit new files or modify existing files to a tag? Eclipse does not allow committing to a tag. But does Subversion in general allow committing changes to a tag? If yes, then I do not see any special advantage of using a tag.
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In purely ideological terms, a tag applies to a specific version and should therefore be forever tied to that version, because that's the whole point of version control - committing versions to the archive and thereby "setting them in stone". And Eclipse encourages that practice. Unlike CVS, where a tag was a mutable label and you could have more than one of them, in SVN, the tag is the name of the actual archive itself.

This is different from a branch, which is a work in progress and therefore allowed to change (accumulate new versions).

However, in SVN terms, the whole branch/tag/trunk thing isn't an architectural component of SVN, just a convention on how to manage things, so while Eclipse may object to updating a tag, SVN doesn't care.

Note, however, that copies and commits are done differentially, so where you post your "tagged version" is really immaterial in terms of SVN server storage resources. So whatever actual path - branch, tag, trunk, or whatever, SVN won't care about anything except getting the path of the commit right.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Harry wrote:Guys,

Can we commit new files or modify existing files to a tag? Eclipse does not allow committing to a tag. But does Subversion in general allow committing changes to a tag? If yes, then I do not see any special advantage of using a tag.

A tag is like a reference point to a svn commit #. You can set up hooks to make the tag immutable if you want to. Or just honor the convention.
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, Jean, I have to disagree. That's what it is in CVS, but in SVN, the tag is the name of a copy of the archive. Its "file name" as it were.

That's why there's an issue. Basically, SVN will permit updates to that "file" (or more accurately speaking "directory") without comment, but Eclipse says whoa!

The SVN equivalent to a CVS tag would be an archive property, but SVN's tagging convention didn't go that route.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim, Jean != Jeanne.

What are you disagreeing with? If you set up tags to be immutable (which we have done via hook script), they are a label for a commit# - the one that created the tag. I do agree this isn't the default behavior for SVN, but it is the one I am describing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic