Solved

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

Posted on 1998-08-24
11
312 Views
Last Modified: 2010-04-22
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
Comment
Question by:wbellman
  • 5
  • 5
11 Comments
 
LVL 2

Expert Comment

by:JYoungman
ID: 1637859
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
 

Author Comment

by:wbellman
ID: 1637860
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
 
LVL 2

Expert Comment

by:JYoungman
ID: 1637861
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:wbellman
ID: 1637862
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
 
LVL 2

Expert Comment

by:JYoungman
ID: 1637863
Did you read the fourth paragraph?
0
 

Author Comment

by:wbellman
ID: 1637864
Sorry....  I didn't make it that far...  Busy day.  I'll check it out.  Resend your answer.
0
 
LVL 2

Expert Comment

by:JYoungman
ID: 1637865
I'll wait for you to see if it was any use first.

0
 

Author Comment

by:wbellman
ID: 1637866
That will do nicely.
0
 
LVL 2

Accepted Solution

by:
JYoungman earned 30 total points
ID: 1637867
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
 

Author Comment

by:wbellman
ID: 1637868
Adjusted points to 30
0
 

Expert Comment

by:jerry
ID: 3040871
You can branch with CVS to allow multiple developers to develop
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question