[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 HEAD:HEAD-1 URL

From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: 2007-10-09 13:30:28 CEST

>
 
 
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
 
-----Original Message-----
 

> From: Justin Johnson [mailto:justinjohnson@gmail.com]
> Sent: 09 October 2007 12:28
> To: users@subversion.tigris.org
> Subject: svn diff -r HEAD:HEAD-1 URL
>
> 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
>

Have you tried svn diff -c-HEAD? I know that -cHEAD is the same as
-rHEAD-1:HEAD and if you have a negative revision, e.g. -c-150, is the
same as -r150:149, but I havne't tried if -c-HEAD actually works.

---------------------------------------------------------------------
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:30:51 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.