aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 90
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30352
    
150

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: 90
    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
    internet detective
    Marshal

    Joined: May 26, 2003
    Posts: 30352
        
    150

    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.
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: "Tag as Version" and "Create Branch"