[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn configuration

From: Josh Lauricha <laurichj_at_bioinfo.ucr.edu>
Date: 2004-12-18 08:03:34 CET

The cluster I manage uses Debian's FAI to install them. One of their
cool little utilities is fcopy. This allows one directory structure to
be used to store the configuration for many machines. Each machine has a
list of classes and which file is taken out of the directory tree is
based on which on the classes. For instance if the classes are: FOO,
BAR, BAZ and the directory tree is:
    /fileone/
        /FOO
        /DEFAULT
    /filetwo/
        /BAR
    /filethree/
        /ZZZ

then /fileone/FOO will be copied as /fileone, /filetwo/BAR will be
copied as /filetwo and /filethree wont exist since no classes match.

This works really nicely for installing machines that are slightly
different, but can't really be used to manage them. I'd like to make a
svn-based version of this utility. Basically, I'd need to put a step in
the middle of the initialize, commit and update, however I can't quite
figure out how to do this.

Right now, I can use svn_client_cat to pull them out of the repository,
but since there's no working copy I can't easily update only those that
need it, or commit changes. And using svn+ssh needs the password for
every access.

It looks like I'll need to basically rewrite the client libs for this
structure, which is what I expected. To do this it looks like: on init I
create the admin area then update; and on update and commit I would use
a special svn_delta_editor_t to munge the path names. I can tell if its
a "special" directory by a property (svncfg:type), at which point I
would need to cancel or ignore the pushes of non-appropriate files from
the server.

After all that, if your still with me... I should get a working copy
that just consists of the applicable config files for that machine?

Further, updates are done by the ra_lib->do_update and commits are done
with svn_wc_transmit_text_deltas correct?

-- 
------------------------------------------------------
| Josh Lauricha            | Ford, you're turning    |
| laurichj@bioinfo.ucr.edu | into a penguin. Stop    |
| Bioinformatics, UCR      | it                      |
|----------------------------------------------------|
| OpenPG:                                            |
|  4E7D 0FC0 DB6C E91D 4D7B C7F3 9BE9 8740 E4DC 6184 |
|----------------------------------------------------|
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Dec 18 08:04:38 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.