Two Laptop Bag*
The moose likes IDEs, Version Control and other tools and the fly likes CVS Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "CVS Question" Watch "CVS Question" New topic
Author

CVS Question

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Hi,

I have three questions on CVS.

1). I just connected to a CVS repository from my IDE. Should I have to do an update even though I did not checkout anything to see the latest code?

2). Does the Head always have the latest code?

3). If I checkout code, Will other people not have access to it until I check it back in?

Thanks

Be Humble... Be Nice.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

Arjun,
1) You can browse in the CVS perspective, but it is slow because there is a network call each time you go down one directory (package) and you don't see Java code in the Java editor. I prefer to checkout.
2) HEAD is the latest code in the HEAD branch. There could be other branches for bug fixes and the like. You'll need to ask someone on your project.
3) No. CVS is optimistic and does not lock files.


[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
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Jeanne Boyarsky wrote:Arjun,
1) You can browse in the CVS perspective, but it is slow because there is a network call each time you go down one directory (package) and you don't see Java code in the Java editor. I prefer to checkout.
2) HEAD is the latest code in the HEAD branch. There could be other branches for bug fixes and the like. You'll need to ask someone on your project.
3) No. CVS is optimistic and does not lock files.


Thank you Jeanne.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16142
    
  21

Arjun Reddy wrote:

3). If I checkout code, Will other people not have access to it until I check it back in?

Thanks


CVS, SVN, and many of the other open-source VCS tools do not lock access to checked-out resources. This is by design, since these systems, open-source themselves, were designed to be the code repositories for other open-source systems, such as the PostgreSQL database, the various apache.org files, and even the Linux and some BSD OS's (Linux uses git these days).

Open-source projects aren't as tightly managed as traditional IT shop projects. The contributors are often on widely-separated parts of the planet, and if one of them decides to take a long vacation or something, you don't want the code that he/she was working on to be held hostage until an administrator can pry it loose again. So these systems don't lock code, but instead work on a straight update if no one else has modified the code or a merge operation if they have.


Customer surveys are for companies who didn't pay proper attention to begin with.
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Tim Holloway wrote:
Arjun Reddy wrote:

3). If I checkout code, Will other people not have access to it until I check it back in?

Thanks


CVS, SVN, and many of the other open-source VCS tools do not lock access to checked-out resources. This is by design, since these systems, open-source themselves, were designed to be the code repositories for other open-source systems, such as the PostgreSQL database, the various apache.org files, and even the Linux and some BSD OS's (Linux uses git these days).

Open-source projects aren't as tightly managed as traditional IT shop projects. The contributors are often on widely-separated parts of the planet, and if one of them decides to take a long vacation or something, you don't want the code that he/she was working on to be held hostage until an administrator can pry it loose again. So these systems don't lock code, but instead work on a straight update if no one else has modified the code or a merge operation if they have.


Thanks Tim.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CVS Question