- Mar 18, 2003
- 5,513
- 0
- 0
Ok, here's the scenario:
<preamble>
I have a cvs checkout that I want multiple people to use (same checkout, not just the same repository). I want them each to be able to commit using their own cvs account. I know this is not ideal, but these are non-technical people and I the idea was to have them all work on the same set of files without worrying about deploying them (it's a website).
The problem is that cvs keeps a cvsroot for the entire checkout, stored in each CVS\Root file. This cvsroot includes my user name and now cvs won't let anyone commit without logging in as me. If you know of an easy way to switch cvsroots I'll take that but otherwise I have to do in a little more manually.
</preamble>
<challenge>
I need a script that will traverse a folder structure, find all the CVS\Root files (which consist of a single line like so : pserver:user.name@servername:/usr/local/cvsroot) and change the user.name to a different user.name. You can use anything that comes with an xp pro install or basic unix utilities (unxutils.sourceforge.net) or something else that is easy to install.
I will personally be writing an ant/java solution but I'd like to see if anyone comes up with something smoother (and I'm sure you can
).
</challenge>
Edit: damn, I should remember that you can't post
server: on any sort of chat program...
<preamble>
I have a cvs checkout that I want multiple people to use (same checkout, not just the same repository). I want them each to be able to commit using their own cvs account. I know this is not ideal, but these are non-technical people and I the idea was to have them all work on the same set of files without worrying about deploying them (it's a website).
The problem is that cvs keeps a cvsroot for the entire checkout, stored in each CVS\Root file. This cvsroot includes my user name and now cvs won't let anyone commit without logging in as me. If you know of an easy way to switch cvsroots I'll take that but otherwise I have to do in a little more manually.
</preamble>
<challenge>
I need a script that will traverse a folder structure, find all the CVS\Root files (which consist of a single line like so : pserver:user.name@servername:/usr/local/cvsroot) and change the user.name to a different user.name. You can use anything that comes with an xp pro install or basic unix utilities (unxutils.sourceforge.net) or something else that is easy to install.
I will personally be writing an ant/java solution but I'd like to see if anyone comes up with something smoother (and I'm sure you can
</challenge>
Edit: damn, I should remember that you can't post
