Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 25466
180
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: 41085
848
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: 25466
180
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: 41085
848
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.
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic