Article:
 |
|
Running Arbitrary Scripts Under CVS
|
| Subject: |
|
Using python script with verifymsg |
| Date: |
|
2003-08-04 03:21:22 |
| From: |
|
anonymous2
|
|
|
|
I'm using python script to check log files.
It's supposed to ask whether user wants to write log again (if log is found incomplete).
How can I add such interactivity ?
All I get is:
Traceback (most recent call last):
File "/home_local/samiviit/CVS/script/environ_test.py", line 18, in ?
rerun = input('Haluatko tayttaa lokin uudelleen y/n? ')
EOFError: EOF when reading a line
|
Showing messages 1 through 1 of 1.
-
Using python script with verifymsg
2003-08-04 15:00:58
anonymous2
[View]
You may find that verifymsg is more useful to you when checking whether the user has written a proper log file entry. If you combine that with the 'ReReadLogAfterVerify' option in the CVSROOT/config file, your script can change the log message that CVS stores.
If there is simply not enough information in the log file, you can refuse to allow the commit to proceed.