Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Can i *lock* a file in CVS
Can i *lock* a file in CVS [message #44492] Mon, 03 February 2003 18:40 Go to next message
Eclipse UserFriend
Originally posted by: jonathan.brighthaul.com

I've started experimenting with Eclipse and CVS.
From what I gather, when doing an "update" (check in) there is nothing to
prevent other developers
from checking in their version.

Is this true?
If not, how can I enable locking?
Re: Can i *lock* a file in CVS [message #44523 is a reply to message #44492] Tue, 04 February 2003 00:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaimevallori.eresmas.com

Yonatan Taub wrote:

> I've started experimenting with Eclipse and CVS.
> From what I gather, when doing an "update" (check in) there is nothing to
> prevent other developers
> from checking in their version.
>
> Is this true?
> If not, how can I enable locking?

Since it is possible to lock files in CVS, it isn't very usual. CVS will try
to merge conflicting versions of the files and if it can't do this
operation, it will force a manual merge. Anyway, I THINK this feature -file
locking- is not available through the eclipse ide.
The command-line for locking a file would be:
#> cvs admin -l myfile
Re: Can i *lock* a file in CVS [message #44554 is a reply to message #44492] Tue, 04 February 2003 02:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: maildump.pacbell.net

The idea is that you do not lock an entire file to avoid the problem of
having to unlock files should you be running to the store, getting your hair
done or gunned down in a drive-by. CVS will flag conflicts when two or more
indivduals have updated the same section of code and the frequency of such
collisions is relatively infrequent. Given the sheer number and scope of
projects using CVS as the version control system you can rest assured this
approach is both effective and reliable. I will it mit it does take some
getting use to.

"Yonatan Taub" <jonathan@brighthaul.com> wrote in message
news:b1mbsp$8jv$1@rogue.oti.com...
> I've started experimenting with Eclipse and CVS.
> From what I gather, when doing an "update" (check in) there is nothing to
> prevent other developers
> from checking in their version.
>
> Is this true?
> If not, how can I enable locking?
>
>
Re: Can i *lock* a file in CVS [message #44585 is a reply to message #44492] Tue, 04 February 2003 09:57 Go to previous message
Werner Punz is currently offline Werner PunzFriend
Messages: 52
Registered: July 2009
Member
Yonatan Taub wrote:

> I've started experimenting with Eclipse and CVS.
> From what I gather, when doing an "update" (check in) there is nothing to
> prevent other developers
> from checking in their version.
>
No and believe me it is a good thing, I've been on the exclusive lock route
a few years ago, it causes more problems than it solves issues.

> Is this true?
> If not, how can I enable locking?
Avoid it, as somebody said, half the world uses CVS and nobody has a problem
with the non locking approach of CVS, in fact I think it is one of the big
advantages this program has, simply try it and you will love that nobody
has build his own workspace by locking half the project away.
Re: Can i *lock* a file in CVS [message #589759 is a reply to message #44492] Tue, 04 February 2003 00:06 Go to previous message
Eclipse UserFriend
Originally posted by: jaimevallori.eresmas.com

Yonatan Taub wrote:

> I've started experimenting with Eclipse and CVS.
> From what I gather, when doing an "update" (check in) there is nothing to
> prevent other developers
> from checking in their version.
>
> Is this true?
> If not, how can I enable locking?

Since it is possible to lock files in CVS, it isn't very usual. CVS will try
to merge conflicting versions of the files and if it can't do this
operation, it will force a manual merge. Anyway, I THINK this feature -file
locking- is not available through the eclipse ide.
The command-line for locking a file would be:
#> cvs admin -l myfile
Re: Can i *lock* a file in CVS [message #589771 is a reply to message #44492] Tue, 04 February 2003 02:38 Go to previous message
Eclipse UserFriend
Originally posted by: maildump.pacbell.net

The idea is that you do not lock an entire file to avoid the problem of
having to unlock files should you be running to the store, getting your hair
done or gunned down in a drive-by. CVS will flag conflicts when two or more
indivduals have updated the same section of code and the frequency of such
collisions is relatively infrequent. Given the sheer number and scope of
projects using CVS as the version control system you can rest assured this
approach is both effective and reliable. I will it mit it does take some
getting use to.

"Yonatan Taub" <jonathan@brighthaul.com> wrote in message
news:b1mbsp$8jv$1@rogue.oti.com...
> I've started experimenting with Eclipse and CVS.
> From what I gather, when doing an "update" (check in) there is nothing to
> prevent other developers
> from checking in their version.
>
> Is this true?
> If not, how can I enable locking?
>
>
Re: Can i *lock* a file in CVS [message #589781 is a reply to message #44492] Tue, 04 February 2003 09:57 Go to previous message
Werner Punz is currently offline Werner PunzFriend
Messages: 52
Registered: July 2009
Member
Yonatan Taub wrote:

> I've started experimenting with Eclipse and CVS.
> From what I gather, when doing an "update" (check in) there is nothing to
> prevent other developers
> from checking in their version.
>
No and believe me it is a good thing, I've been on the exclusive lock route
a few years ago, it causes more problems than it solves issues.

> Is this true?
> If not, how can I enable locking?
Avoid it, as somebody said, half the world uses CVS and nobody has a problem
with the non locking approach of CVS, in fact I think it is one of the big
advantages this program has, simply try it and you will love that nobody
has build his own workspace by locking half the project away.
Previous Topic:Can i *lock* a file in CVS
Next Topic:F2 Javadoc doesn't appear
Goto Forum:
  


Current Time: Fri Apr 19 03:55:23 GMT 2024

Powered by FUDForum. Page generated in 0.02471 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top