• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Subversion commit to a tag

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic