[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: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-10-09 00:06:07 CEST

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>

---------------------------------------------------------------------
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:33:20 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.