Can Subversion play nicely with CVS? svn:externals

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Can Subversion play nicely with CVS? svn:externals

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post 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
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
Post Reply