CVS working now, but why?
Gerson Kurz
gerson.kurz at t-online.de
Mon Nov 12 14:25:53 CST 2001
Ove Kaaven wrote:
> This probably means that you *still* have that broken cvs tree, *still*
> need to change CVS/Root in all subdirectories, and *still* needs to
> complain to Andi...
Many thanks, you were absolutely right! I've written a small python script
that changes all CVS/Root files, and now cvs login/update works as
intended.
For those who care, here is the script (tested with Andi's CVS archive).
You can change the last line to point to a cvs server of your choice.
----------- changelog.py ----------------
#!/usr/bin/python
import os, sys
from stat import *
def replace_cvs_root(dir,content):
for f in os.listdir(dir):
pathname = os.path.join(dir, f)
mode = os.stat(pathname)[ST_MODE]
if S_ISDIR(mode):
replace_cvs_root(pathname,content)
elif S_ISREG(mode):
if pathname[-8:] == "CVS/Root":
print pathname
file = open(pathname,'w')
file.write(content)
file.close()
replace_cvs_root(".",":pserver:cvs at rhlx01.fht-esslingen.de:/home/wine")
More information about the wine-users
mailing list