Page 1 of 1

Can Subversion play nicely with CVS? svn:externals

Posted: Wed Jul 18, 2007 4:55 am
by Chris Corbyn
I'm wondering what the best way to include a third party CVS project as part of my subversion project is? If the project used svn I could easily use svn:externals to keep a bleeding edge copy of the third party project in my code base, but is there something similar I can do with CVS repositories?

My project uses subversion, but I'd like to include an external repository which uses CVS :)

I guess it's not too painful to just checkout the CVS project with all the .cvs stuff in it and then cvs up every so often.

Posted: Wed Jul 18, 2007 11:42 pm
by Benjamin
That is an interesting question. Isn't there a way to add some sort of triggers to SVN that can run commands? With that you might be able to write a shell script to accomplish what your after.

Posted: Thu Jul 19, 2007 12:39 am
by jmut
http://svnbook.red-bean.com/nightly/en/index.html

Key words:
Repository hooks - start-commit , pre-commit , post-commit

To ignore some cvs dir stuff.

http://svnbook.red-bean.com/nightly/en/ ... gnore.html

Some trick could be forged out of those I think

Posted: Thu Jul 19, 2007 7:22 am
by Ambush Commander
Hooks are repository-side, so it wouldn't work out: we're interested in checking things out on the client side, not adding to the repository the files in the CVS.

As far as I can tell, `svn up` does not allow hooks to be attached to it. You'll need to create a special batch script that first runs `svn up`, then looks for a custom property named 'cvs:externals' and performs the necessary CVS checkouts/updates.