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

Re: SVN scripting

From: David Weintraub <qazwart_at_gmail.com>
Date: 2005-07-18 16:56:24 CEST

You can just get a listing of the changed files by doing this:

    $ svn diff -r $start:$end $url | grep "^Index: "

Or to remove the Index at the front of the line, use "awk"

    $ svn diff -r $start:$end $url | awk -F: '/^Index: / {print $2}'

You could also try substituting your own diff command to see what you
get. Maybe just "echo" or "print"? You'll still get the "Index: "
lines, but you can eliminate all of the textual differences that way
too.

I was thinking that maybe the output of the "update" command could be
helpful. For example, you checkout revision 10, then do an update to
revision 25 and see what the update command prints out.

On 7/17/05, Calvin <szguoxz@hotmail.com> wrote:
> I am new to SVN, got a question to script SVN.
>
> I need a list of files that has been changed between 2 revisions, say 3:10.
>
> I kindof like the svn diff to produce a list of files, which should be
> easier to parse using nant or something. But svn diff produce a list files
> hard to parse, and with content change to it.
>
> I am sure there should be such a command somewhere, who has it? :-)
>
> Thanks,
>
> Calvin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

-- 
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 18 16:59:05 2005

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.