[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: Andy Peters <devel_at_latke.net>
Date: 2005-07-18 21:08:42 CEST

David Weintraub wrote:

> 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? :-)
> 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.

He's running Windows, so unless he's downloaded and installed either
Cygwin or the Unixutils, your excellent suggestions aren't much help to him!


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 18 21:10:36 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.