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

RE: Diff tag against trunk head

From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: Tue, 23 Nov 2010 15:57:05 +0000

>

Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03

-----Original Message-----

> From: Kevin Connor Arpe [mailto:kevinarpe_at_gmail.com]
> Sent: 23 November 2010 15:39
> To: users_at_subversion.apache.org
> Subject: Diff tag against trunk head
>
> Hello,
>
> I am using the latest (stable) version on both Linux and WinSlows.
>
> For one of my repositories, I created a daily tag of a diary.
>
> Example:
> /project/trunk/important_stuff
> /project/tags/2010-11-20/important_stuff
> /project/tags/2010-11-21/important_stuff
> /project/tags/2010-11-22/important_stuff
> etc.
>
> Each morning I svn copy "important_stuff" (HEAD revision) to
> the tags area and commit.
>
> In theory, this will be used to easily find what changed day-over-day.
> Of course all of this is possible poking through svn logs,
> but I want to make this easier.
>
> My question: What is the SVN command to diff a file in a
> tagged set vs trunk head?
>
> Fantasy command:
> svn diff -r"tag:2010-11-21" -rHEAD
> /project/trunk/important_stuff/details.txt
>
> or...
>
> svn diff -r"trunk:HEAD"
> /project/tags/2010-11-21/important_stuff/details.txt
>
> I tried many different svn diff commands. No luck. I also
> did some heavy Google/StackOverflow searching. No luck.
>
> Is there a simple way to do this?
> Right now I am using regular GNU diff, but this requires
> everyone to download the tags to their box locally.
>
> Ideally, this could be done via the trunk or tag URL only.

According to the help you can use this format of the svn diff
svn diff OLD-URL[@OLDREV] NEW-URL[@NEWREV]

So

svn diff http://url.to.repo/project/tags/2010-11-21/important_stuff/details.txt http://url.to.repo/project/trunk/important_stuff/details.txt

Try it

Giulio
Received on 2010-11-23 16:57:46 CET

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.