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

Re: Extracting a subset of the repository

From: Lele Gaifax <lele_at_nautilus.homeip.net>
Date: 2004-03-22 15:07:10 CET

>>>>> "Vincent" == Vincent Lefevre <vincent+svn@vinc17.org> writes:

    Vincent> On 2004-03-22 10:13:42 +0100, Xavier Cazin wrote:
>> I'm interested in creating a working copy out of just files
>> that have changed during the last commit. The goal is to run
>> some validation processes only on files revision that have not
>> been validated so far. Could someone suggest a good command for
>> that?

    Vincent> If there is no specific command, you can probably get the
    Vincent> changed files with "svn info -R" and grep, then checkout
    Vincent> these files.

Alternatively, you can use the bindings and do whatever you want,
although they do not usually come with a nice OO wrapper. If I may
suggest Python, here_ you can find a script that, triggered by the
post_commit hook, keeps up-to-date a working copy and, if any of the
committed files happens to be a *.rst (reStructuredText) one, produce
a corresponding .html in the same directory. Don't be scared by the
italian prologue :). I think you will find particular useful the
Repository and ChangeSet classes that basically wraps what you need to
do the validation. Look at the OutputDirectory.update method for the
machinery needed to implement "svn up".

hth,
ciao, lele.

.. _here: http://docit.bice.dyndns.org/static/www/src/rstpc.py

-- 
nickname: Lele Gaifax	| Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas	| comincerò ad aver paura di chi mi copia.
email: lele@seldati.it	|		-- Fortunato Depero, 1929.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 22 15:08:39 2004

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

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