Help with SCCS


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help with SCCS
# 1  
Old 03-20-2003
Help with SCCS

Hi All,

I am just wondering if you could help me with this.

Suppose I have a file in SCCS a particular user updates the files aand puts back in sccs . when doing so it proments the user to enter the comment.

Basically what I'd expect is the user to enter the changes he or she has made .... but currently even if the user does not enter anything and just hits enter it accepts it. Is there any way by which I can force the user to enter a line of comment or else it would not allow him/her to save the changes.

Please let me know if this can be done.

THANKS
RoohSmilie
# 2  
Old 03-20-2003
You could put a wrapper around the delta command, but the user could still just type a few useless keystrokes. You really need to educate your users. If that doesn't work, you will need management support.... you provide a list of users who are not providing acceptable comments to management and then management takes appropiate action.

Also if they are commenting the deltas, they may not be commenting the code itself. Be sure to check that. And again, you can't automate this. You need to look at the code and see if the comments are acceptable.
# 3  
Old 03-20-2003
Can you please tell me how I can put a wrapper around the delta command to perform this task.

Thanks
Rooh
# 4  
Old 03-21-2003
The delta command has a -y option that can be used to supply the comment. If you use the -y option to supply a cooment, delta doesn't also ask for a comment, it just used whatever you supllied as a argument to -y.

So you can write a script called "delta" that will ask for a comment. The script will perform whatever tests you think appropriate on the supplied comment. If it doesn't like the comment, it will ask again.

Once it has a comment that it likes, it will then call the real delta program. It will pass the real delta all of the arguments that were supplied to the wrapper script. And it will add a -y with the approved comment.

You need to make sure that the wrapper script is invoked when the user types "delta". This could be done by putting it earlier in the path than the real delta. Or you could give the users aliases that point to your script. You could also rename the real delta command to be real.delta or something.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with SCCS

I am having some problem while creating a new sccs file. During initial creation of the file the SCCS is not storing the file in actual format with the result that the SCCS file is different from my original file. (1 Reply)
Discussion started by: Allgemeine12
1 Replies

2. Shell Programming and Scripting

sccs get -ek command is throwing err

Hi, get -ek s.Communicator.java The difference between the current date and the creation date of the newest delta in the SCCS file is greater than 1 year. Make sure that the system date is set correctly. This message is only a warning. (co11) 14.3 ... (0 Replies)
Discussion started by: Shivaprasad BS
0 Replies

3. HP-UX

SCCS problem when copying files

I have created a SCCS directory with version 1.1. It has say A.txt (for simplicity) Now updated files are present in other directory. If I copy A.txt it wont be effected in SCCS. How do I make this A.text to be version 1.2?? Please help! (3 Replies)
Discussion started by: superprogrammer
3 Replies

4. UNIX for Dummies Questions & Answers

How to make sccs work

I am trying to use SCCS for project development . Can any one list out the basic setup nneded to be done for SCCS . I mean if I create a SCCS directory what all files to create on this . i don't have a root password of the system and I am not going to get one . I saw few post on this forum... (1 Reply)
Discussion started by: akrathi
1 Replies

5. UNIX for Advanced & Expert Users

rcs,sccs

I am not really sure whether i am posting this question in the right forum.....Can someone tell me why I should go for a rational Clearcase version controller when I can use the version controllers 'rcs' or 'sccs' available in UNIX. I want to know the advantage of Rational over these two. Also, I... (2 Replies)
Discussion started by: Abhishek Ghose
2 Replies

6. Solaris

Sccs

Hi Can i know what are the default Source code control system used by hp-ux 9.x,10.x and Solaris9 Regards Charles C. (1 Reply)
Discussion started by: charlcy
1 Replies

7. HP-UX

Sccs

Hi Can i know what are the default Source code control system used by hp-ux 9.x,10.x and Solaris9 Regards Charles C. (0 Replies)
Discussion started by: charlcy
0 Replies

8. UNIX for Dummies Questions & Answers

Help With Sccs.

Hi , I am currently using Source Code Control System (SCCS) to keep track of my documents. There are several User that update the document. As we all know that after editing it prompts for the comment. But even if somebody just hits return it accepts it. I would like that after the... (1 Reply)
Discussion started by: rooh
1 Replies

9. UNIX for Dummies Questions & Answers

SCCS (Source Code)

Hello, I'm wondering if anyone out there have experience using the SCCS source code in Unix? If so, can you recommend a good (user friendly) SCCS book for beginner users. Thanks! (3 Replies)
Discussion started by: Mary
3 Replies

10. Shell Programming and Scripting

Problem with SCCS

I am having some problem while creating a new sccs file. During initial creation of the file the SCCS is not storing the file in actual format with the result that the SCCS file is different from my original file. Any way to avoid this?? Nitin (1 Reply)
Discussion started by: nitinmalik
1 Replies
Login or Register to Ask a Question