Question on direct (non-file) CVS access

Murray Altheim <[email protected]> Thu, 07 Oct 2004 20:05:44 +0100
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Organization Knowledge Media Institute
Message-ID <[email protected]>
Hi,

Pardon me if this is either a dumb question or one asked before,
but I searched the archives and was unable to locate an answer.

I've been playing with JavaCVS for a few days now and just joined
the mailing list. I'm trying to implement CVS support in a Java
UI application that uses the Apache Xindice database to store XML
files. I'd like to be able to behind-the-scenes provide CVS support
for modifications to files in the XML DB repository, which has a
1 level deep (Documents stored in Collections) structure.

Question is: is there a way to support version control for the
database without writing files out to disk? In trying to work
through JavaCVS, my approach has been to create a mirror set of
directories for the DB Collections, then as the user adds new
Documents (generally, XML/DOM Documents), each of these is then
serialized to a File within its appropriate directory, and the
CVS actions are performing on the serialized file. What I'd like
to do is avoid writing Files and just work directly with CVS,
such that an add would basically be:

    serialized content  -->  CVS

without the intervening writing to File.

Conversely, is there way to import files from CVS directly into
the application without having CVS write them as Files and then
importing them?

Is there a way to do this kind of thing with JavaCVS?

Thanks very much!

Murray

......................................................................
Murray Altheim                    http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK               .

   The Rise of Pseudo Fascism -- David Neiwert
   Part 1: The Morphing of the Conservative Movement
     http://dneiwert.blogspot.com/2004_09_19_dneiwert_archive.html#109028353137888956
   Part 2: The Architecture of Fascism
     http://dneiwert.blogspot.com/2004_09_26_dneiwert_archive.html#109563628314780505
   Part 3: The Pseudo-Fascist Campaign
     http://dneiwert.blogspot.com/2004_10_03_dneiwert_archive.html#109596147171278590