| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Husky Git repo? |
Hello RJ!
26 Jan 14 03:50, RJ Clay wrote to Gerrit Kuehn:
GK>> I have it working with Husky now, but it was not that easy because
GK>> cvsps turned out to be incompatible with the way Husky is plit into
GK>> cvs modules.
RC> One reason I hadn't gotten to it yet mysesf... Did you end up with
RC> one repo
RC> with multiple branches, or multiple repos?
I went for multiple repos, having one repo per module.
GK>> I had to do some scripting to get around this.
RC> And is that publically available somewhere? SF? or Github,
RC> perhaps?
No, I just scribbled together some lines for me here. But I'm happy to
share this in case anybody else might be interested. You need to have git
with cvs support (cvsps), obviously.
My cvs checkout resides in ~/husky. I used this to get the module names to import:
---
zsh/2 393 % cat import.sh
#!/usr/local/bin/zsh
export CVS_RSH=ssh
for d in `ls -d ~/husky/[a-z]*`
do
mod=`basename $d`
echo start working on $mod
git cvsimport -C $mod -p "-x" -v -r cvs -k -d
:ext:gerritkuehn{at}husky.cvs.sourceforge.net:/cvsroot/husky $mod
pushd $mod
git config cvsimport.module $mod
git config cvsimport.r cvs
git config cvsimport.d
:ext:gerritkuehn{at}husky.cvs.sourceforge.net:/cvsroot/husky
popd
echo finished working on $mod
done
---
You have to adopt this to your local filesystem structure and the correct
-d option for you, of course.
Importing the whole stuff took ages, something like 12h on my system, I
think. However, once it is there, updating is faster and easier:
---
zsh/2 394 % cat update.sh
#!/usr/local/bin/zsh
export CVS_RSH=ssh
for d in *
do
mod=`basename $d`
if [ -d $mod ]
then
echo start updating $mod
pushd $mod
git cvsimport
popd
echo finished updating $mod
fi
done
---
I did not look into pushing back changes from the git repo to the cvs so
far, but I think it should be possible.
Regards,
Gerrit
--- Msged/BSD 6.2.0
* Origin: And still they come and go (2:240/12)SEEN-BY: 3/0 633/267 280 640/384 712/0 550 848 @PATH: 240/12 1120 280/5003 464 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.