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

Re: FEATURE: "svn diff -r20:21 file" fails on file added in r21

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-04-22 05:32:53 CEST

"David D. Kilzer" <ddkilzer@kilzer.net> writes:
> Karl Fogel <kfogel@red-bean.com> wrote:
>> "David D. Kilzer" <ddkilzer@kilzer.net> writes:
>> > I think it should be possible to run the following command on a file added
>> > in r21 and get an "added file" diff:
>> > svn diff -r20:21 wc/path/file
>>
>> Better to discuss the feature here first, usually. Should it also
>> show the added file diff for
>>
>> -r19:21
>> -r18:21
>> -r17:21
>>
>> ... etc? I agree the current behavior is in some ways non-optimal,
>> I'm just not sure what the best way to solve it is: the obvious
>> solutions might lead to worse inconsistencies.
>
> Yes. In fact, I tried -r0:21 (since svn outputs "revision 0" when it does
> generate the added-file diff), but that didn't work either.
>
> I suppose that would mean that if you used -r21:N then a removed-file diff
> would be generated (where "N" is a revision less than the created revision).

I'm even more in favor of your suggestion now that I realize that even
"svn diff -cREVX FILE_ADDED_IN_REVX" doesn't work. For example:

  svn diff -c24653 subversion/include/private/svn_client_mergeinfo_private.h

So... do you feel like writing a patch? :-)

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 22 05:33:00 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.