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

svn diff -r HEAD:HEAD-1 URL

From: Justin Johnson <justinjohnson_at_gmail.com>
Date: 2007-10-09 13:28:00 CEST

Hello,

I would like to perform a diff from HEAD to HEAD-1 against a URL (i.e.
without a working copy), but HEAD-1 is invalid syntax.

C:\>svn diff -r HEAD:HEAD-1 http://svn.collab.net/repos/svn/
svn: Syntax error in revision argument 'HEAD:HEAD-1'

The 'svn help diff' output lists some special keywords, but none of
them seem to be what I want since they are dependent on having a
working copy.

  A revision argument can be one of:
     NUMBER revision number
     '{' DATE '}' revision at start of the date
     'HEAD' latest in repository
     'BASE' base rev of item's working copy
     'COMMITTED' last commit at or before BASE
     'PREV' revision just before COMMITTED

Is there a way to do this without running multiple commands to extract
the revision number for HEAD and subtract 1 for HEAD-1?

Thanks,
Justin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 9 13:28:21 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.