[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 00:45:22 CEST

On Tuesday, October 8, 2002, at 06:06 PM, Karl Fogel wrote:

> Noel Yap <yap_noel@yahoo.com> writes:
>> Since I'm still extremely new to subversion and I
>> haven't yet used most of the commands, the following
>> may be a dumb question.
>>
>> The reason one may want to retrieve easily the
>> previous revision is to be able to create easily a
>> change set (eg just diff the current revision against
>> the previous one on the same branch). If "svn log" is
>> anything like "cvs log", it would spit out much more
>> information than just the previous revision number.
>> Does "svn log" act like "cvs log" in this manner? If
>> so, is there a simpler command to retrieve just the
>> previous revision number?
>
> All you have to do is get the last_changed_rev via 'svn status', then
> do
>
> svn diff -r<N-1>:<N>

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

svn st http://svn.foo.com/repos/trunk/blah

errors out because svn st only works on a working copy path.

it seems like one should be able to do this without checking stuff
out...

-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 00:46:03 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.