This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark ""Tag as Version" and "Create Branch"" Watch ""Tag as Version" and "Create Branch"" New topic
Author

"Tag as Version" and "Create Branch"

Swerrgy Smith
Ranch Hand

Joined: Mar 26, 2010
Posts: 91
Hi all,

Could anyone tell me the difference between two actions "Tag as Version" and "Create Branch" when we use Eclipse to work with CVS server?

Thank you very much.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Tag as version creates a tag. Create as branch creates a branch and optionally creates a tag.

I realize I use the words in the question to answer it, so a little more definition.
  • tag - just a label. A point you can reference later. (you can also create a branch from it later)
  • branch - a stream of development that you can write to. HEAD is a built in branch.


  • [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
    Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
    Swerrgy Smith
    Ranch Hand

    Joined: Mar 26, 2010
    Posts: 91
    Jeanne Boyarsky wrote:Tag as version creates a tag. Create as branch creates a branch and optionally creates a tag.

    I realize I use the words in the question to answer it, so a little more definition.
  • tag - just a label. A point you can reference later. (you can also create a branch from it later)
  • branch - a stream of development that you can write to. HEAD is a built in branch.


  • Hi, thank you for your reply.

    If I am using HEAD version, then I create a tag called TAG_VERSION_1, then I create a branch called BRANCH1 and work on this branch for a while, then I choose "Team -> Switch to Another Branch or Version" and choose TAG_VERSION_1. After this final action I'll work work on HEAD or with BRANCH1?

    Thank you.
    Jeanne Boyarsky
    author & internet detective
    Marshal

    Joined: May 26, 2003
    Posts: 30789
        
    157

    Neither. You will be working on a readonly static snapshot. if you try to commit at that point, it will complain that you are not pointing to a branch.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: "Tag as Version" and "Create Branch"