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

Re: Q: Changeset between two revisions

From: David Weintraub <qazwart_at_gmail.com>
Date: Mon, 8 Feb 2010 14:00:40 -0500

On Sun, Feb 7, 2010 at 10:09 PM, Manickavel, Senthil
<senthil.manickavel_at_philips.com> wrote:
> Hi Daniel,
>        This command just gives the list of files changes. My requirements is to collect the
> files changes list and collect the listed files in both the revisions. Do u have any idea
> to do this?

Once you get a list of files, you can pass that list through a while
loop and process each file:

svn diff --summarize -r$FROM_REV:$TO_REV $URL_BASE | while read junk file_url
do
    file=${file_url#$URL_BASE/} #URL REMOVED
    dir=$(dirname $file)
    [ -d "$dir" ] || mkdir -p $dir
    svn cat $file_url 3&>$file
done

-- 
David Weintraub
qazwart_at_gmail.com
Received on 2010-02-08 20:01:16 CET

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.