[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: <kfogel_at_collab.net>
Date: 2004-08-18 14:36:55 CEST

"Nathan Dauchy" <ndauchy@hpti.com> writes:
> 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!

I believe this idea has been discussed before as "svn diff -q"
functionality. But I don't see any enhancement issue filed for it, so
Nathan if you want to put your writeup in an issue, that would be
great.

To do this right would require some server changes. I don't see
anything obviously incompatible about it, though. Only new clients
could request it; only new servers would be able to send the new kind
of diff. Older servers would send the old kind, and the client could
in that case filter out the unwanted information itself. Kind of
annoying that we'd have to implement it two ways, but it wouldn't be
the first time that's happened.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 18 16:14:09 2004

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.