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

WC parsing entries file with perl, where is entries fileformat?

From: Sylvain Viart <sylvain.viart_at_easyrencontre.com>
Date: 2007-09-13 11:46:38 CEST

Hi,

I've developed some script which was looking in the .svn/entries file.

But the format as changed from XML to native file format.

I would like to find the max revision in the wc structure.

before I was using, the following bash script function

find_last_modified_rev() {
    perl -n -e 'BEGIN { $max = 0; } if(/revision="(\d+)"/) { if($max <
$1) { $max = $1; } } END { print "$max\n"; }' \
        $(find . -name entries)
}

how should I do now?
I'm trying to port my script in perl, but what should I use to parse the
entries file?

I've see perl binding but I don't know which function I should use to
open and parse the entries file.

Could someone just gives me some pointer (URL) hint, please.

Regards,
Sylvain.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 13 11:43:15 2007

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.