[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: Les Mikesell <lesmikesell_at_gmail.com>
Date: Tue, 23 Nov 2010 10:26:33 -0600

On 11/23/2010 9:39 AM, Kevin Connor Arpe wrote:
> 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.

Errr, you do know that you can use a date specifier in curly braces as a
revision don't you? See the 'Revision Dates' section of the
documentation for the recognized formats. You don't really need a tag
just for that purpose - but be sure you understand that if you omit the
timestamp you get the beginning of the day, not the end.

> My question: What is the SVN command to diff a file in a tagged set vs
> trunk head?

As others have mentioned you can diff 2 urls - and if you have trouble
with the syntax you can add --old= and --new= specifiers. But normally
if you are interested in the code, you'll have a checked out copy of the
trunk already that you can update to get the head revision, then just
'svn diff -r {YYYY-MM-DD}'
to diff against the start of a previous day.

   Les Mikesell
Received on 2010-11-23 17:27:15 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.