[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: Xavier Cazin <xavier_at_editions-oreilly.fr>
Date: 2004-03-22 17:47:45 CET

Very nice. I didn't realize the API was so rich! For now, I think my
problem is simple enough that I'd rather investigate command line pipes
based on "svn log -r <last-rev> <URL> -v" :-)

On 22 Mar 2004, lele@nautilus.homeip.net wrote:
>>>>>> "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

Éditions O'Reilly           <URL:http://www.oreilly.fr/>
18 rue Séguier
75006 PARIS                     Fax :  +33 1 40 51 52 31
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 22 17:48:36 2004

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