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

Re: functional equivalent to "cvs rdiff -s"?

From: Nathan Dauchy <ndauchy_at_hpti.com>
Date: 2004-08-17 18:18:45 CEST

Max Bowsher wrote:
> Nathan Dauchy wrote:
>
>>Is there any capability in Subversion like the CVS command "cvs rdiff
>>-s", which summarizes the difference between two revisions in the
>>repository, listing all the filenames that have changed?
>>
>>I searched the mailing list archive and found that someone asked this
>>question a while ago, but apparently got no reply:
>>http://www.contactor.se/~dast/svnusers/archive-2004-03/1372.shtml
>>
>>If there isn't already a workaround to do this, can it be considered for
>>inclusion in the next svn release, since there are at least two of us
>>who would find it useful? :)
>
>
> The workaround would be to post-process "svn log" output.
>

Thanks Max, that gets me part way there. To get the list of files that
would be diffed by:
        $ svn diff -r 2580:HEAD
I can run:
        $ svn log -v -r 2580:HEAD | grep -E "^ "

However, for a more complex diff, like between two tags:
        $ svn diff -r HEAD:HEAD --old file:///SVN/tags/ver1/foo --new
          file:///SVN/tags/ver2/foo
then how do I use "svn log", which only supports a single URL?

It looks like for now I will just use something like this:
        $ svn diff -r HEAD:HEAD --old file:///SVN/tags/ver1/foo --new
          file:///SVN/tags/ver2/foo | grep -E "^Index:"
which isn't terribly efficient and doesn't tell me whether the file was
added, removed, or modified. But, it should be enough for my immediate
needs.

> If you'd like to see a new feature, write up a description of how you would
> want it to behave (i.e. exactly what level of detail you would expect), and
> post here.
>

I'll try to do that some time soon. In the meantime if anyone else has
input into this feature, please chime in!

Thanks,
Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 17 18:20:31 2004

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