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

Re: svn diff -r WORKING:HEAD

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: 2007-03-19 22:29:16 CET

Malcolm Rowe wrote:
> On Mon, Mar 19, 2007 at 01:26:38PM -0700, Kyle McKay wrote:
>> How does one get the equivalent of svn diff -r working:head output?
>>
>>
>> And there doesn't seem to be any way to generate that. That seems to
>> be a bug to me.
>>
>> One obvious way to fix it is to add this sequence:
>>
>> else if (strcasecmp(word, "working") == 0)
>> {
>> revision->kind = svn_opt_revision_working;
>> }
>>
>> to the revision_from_word function located in libsvn_subr/opt.c file
>> which then permits "svn diff -r WORKING:HEAD" to produce the desired
>> output. Of course that also means that all other commands would
>> start accepting "WORKING" as a revision. That may not be a bad
>> thing, but it's unclear to me what other ramifications it will have.
>>
>> Would it be possible to get an issue opened for this so that it can
>> be tracked?
>>
>
> It's already there: issue 2683, with substantially the same patch.
>
> Note that WORKING:<something> diffs are likely to be a little buggy at
> the moment, at least partly because they don't have any test coverage.
>
> What do people think about adding in support for the WORKING keyword and
> seeing what shakes loose?

+1, as long as we add test coverage as well.

This is also related to issue 2544, which is a request to have 'svn
blame' work against the working copy. There's a patch adding WORKING
keyword support (among other things) attached to that issue.

-Hyrum

Received on Mon Mar 19 22:29:39 2007

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