Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

CVS: Is there a way to lock files in CVS?

I know from reading the docs, CVS is designed for multiple users, but it had been relayed to me that it would be nice to have the ability to lock out other users from checking out already checked out files.  Any ideas?
0
wbellman
Asked:
wbellman
  • 5
  • 5
1 Solution
 
JYoungmanCommented:
IMHO most people wanting to do this are approaching CVS in the wrong way.

See
      info cvs "Multiple Developers"

Why does your client wish to "lock out" other users?
0
 
wbellmanAuthor Commented:
So that two people can't edit the same file at the same time.  He would rather the second developer wait for the first developer to finish than use diff.  I realize this is not the way CVS is *supposed* to run...  Again I understand how CVS is supposed to work and have used and am using it in that way... but my client is emphatic about being able to *lock* people out.  So much so he would rather use "VisualSource Safe 5.0" than CVS, and I don't want to be responsible for that. :)
0
 
JYoungmanCommented:
I consider myself well-informed about these matters (I'm the author of GNU's SCCS clone) and I strongly suggest that you don't try to work this way.

What I suggest you do is artificially generate a conflict in a CVS-controlled file and show him how easy the conflict resolution process is.  Have you done this?   I really reccomend that you do.   "Conflict Resolution" is a scary name for a process that is genuinely simple and easy even for people who aren't computer literate.


I have used VSS.  I have used RCS.  I have used CVS.  I have used SCCS.   I write CSSC.   I *use* CVS.

Look in the "contrib" directory of the CVS source distribution.  You should see a file "rcslock.pl".   Also read the README file in the same directory and the node "admin options" in the Info pages for CVS.

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
wbellmanAuthor Commented:
I understand and I have.  I have explained in detail and he understands, but still he wants to lock people out.  So yet another recomendation doesn't *answer* my question...  Believe me, I too have been in developement a while and am impress as everything with the way CVS works...  If I can figure out this one function, I can sell him on it and eventually bring him up to speed properly.
0
 
JYoungmanCommented:
Did you read the fourth paragraph?
0
 
wbellmanAuthor Commented:
Sorry....  I didn't make it that far...  Busy day.  I'll check it out.  Resend your answer.
0
 
JYoungmanCommented:
I'll wait for you to see if it was any use first.

0
 
wbellmanAuthor Commented:
That will do nicely.
0
 
JYoungmanCommented:
Dummy answer:-

---cut here---


What I suggest you do is artificially generate a conflict in a CVS-controlled file and show him how easy the conflict resolution process is.  Have you done this?   Ireally reccomend that you do. "Conflict Resolution" is a scary name for a process that is genuinely simple and easy even for people who aren't computer literate.

Look in the "contrib" directory of the CVS source distribution.  You should see a file "rcslock.pl".   Also read the README file in the same directory and the node "admin options" in the Info pages for CVS.

0
 
wbellmanAuthor Commented:
Adjusted points to 30
0
 
jerryCommented:
You can branch with CVS to allow multiple developers to develop
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now