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

Re: Adding changeset-like functionality to subversion

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2002-10-09 01:50:47 CEST

On Tuesday, October 8, 2002, at 07:40 PM, Ben Collins-Sussman wrote:

> Garrett Rooney <rooneg@electricjellyfish.net> writes:
>
>> it's certainly easy to do that if one has a working copy, but does
>> anyone know of a way to do it without one?
>>
>> svn diff -r1000:PREV http://svn.foo.com/repos/trunk/blah
>>
>> errors out because you can't call svn_client__get_revision_number on a
>> URL, and
>
> Right. Read the second use case in 'svn help diff':
>
> svn diff http://svn.collab.net/repos/svn/trunk/README@1 \
> http://svn.collab.net/repos/svn/trunk/README@3000
>
> ...works just fine, no working copy required.
>
> Also, I don't know what's wrong with your svn, but the first use-case
> works perfectly for me as well. No working copy needed:
>
> svn diff -r1:3000 http://svn.collab.net/repos/svn/trunk/README

the problem is that i was using HEAD and PREV, not explicit numbers,
which do require a working copy. now if i know what version number
HEAD is (or what revision the change to this file occured in), i can
get the diff by diffing between that and N-1, bu what if i don't know
the revision number? there's no easy way to say 'diff from HEAD to
PREV' without a working copy.

-garrett

-- 
garrett rooney                    Remember, any design flaw you're
rooneg@electricjellyfish.net      sufficiently snide about becomes
http://electricjellyfish.net/     a feature.       -- Dan Sugalski
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 9 01:51:30 2002

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.