[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 PREV:COMMITTED <file>

From: Sir Woody Hackswell <woody_at_hackswell.com>
Date: 2003-10-22 18:33:03 CEST

Well, this also begs the question, why do we have code in multiple places to
define HEAD, PREV, and COMMITTED? If they WERE in one set of common
routines, this case wouldn't obviously be happening. :)

Something like svn_convert_alias_to_revision(...) No matter what svn
function you are calling, HEAD is HEAD, and PREV is PREV, and COMMITTED is
COMMITED, no? Different for each file/dir, yes, but not for each command
type.

This would also prepare the way for issue 1213 of PREV, PREV2, PREV3, etc.

-Richard Balint

On 22 Oct 2003, Ben Collins-Sussman wrote:

> Sir Woody Hackswell <sir.woody@hackswell.com> writes:
>
> > This works:
> > > svn log -r PREV:COMMITTED Makefile.in
> > ------------------------------------------------------------------------
> > rev 7384: bliss | 2003-10-11 11:16:00 -0400 (Sat, 11 Oct 2003) | 4 lines
> > <<SNIP>>
> >
> > So why doesn't this work?:
> > > svn diff -r PREV:COMMITTED Makefile.in
> > subversion/libsvn_client/diff.c:1376: (apr_err=200004)
> > svn: Incorrect parameters given
> > svn: Sorry, svn_client_diff was called in a way that is not yet supported.
> > subversion/libsvn_client/diff.c:1749: (apr_err=200004)
> > svn: do_diff: COMMITTED nomenclature not supported
>
> There was a complex thread a few weeks back, led by Julian Foad. I
> can't remember the rationale here. I admit that it's kind of odd. I
> mean, any command that has a wc-item as a target should be able to
> talk about PREV and COMMITTED.
>
> If this is a deliberate decision, we better change the example in the
> book. The first 'example' in this section won't even run:
>
> http://svnbook.red-bean.com/html-chunk/ch03s03.html#svn-ch-3-sect-3.2
>
> !

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 22 18:37:30 2003

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.