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

Re: Checking out a specific revision

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2006-02-09 22:31:01 CET

On 2/9/06, Res Pons <pons32@hotmail.com> wrote:
> In my current working folder which contains all the head revisions, I'm
> trying to look at an old file and diff it with head. I don't wish to roll
> back the changes yet and know how to do that. What I would like to do is to
> retrieve a specific revision into my working folder first. I already
> renamed the current head revision to .old. Then I like to visually diff
> them. Why this round about way? Cuz exectuing the following command is not
> visually pleasing nor do I understand it:
>
> C:\>svn diff -r 24097 build.xml ==> this works but the output is so messy
> looking; all those +'s, -'s and @@ signs... I'd rather windiff it or look
> at them in some visual editor

Since you're on Windows, why not use TortoiseSVN, whose built-in diff
program will let you view diffs on any 2 revisions?

The output of svn diff is pretty easy to understand if you know what
to look for - lines prefixed with + are added, those prefixed with -
were removed, the lines with @@ at either end indicate the beginning
of the next diff "chunk"

> C:\>svn co -r 24097 build.xml ==> this doesn't work, why? It'll spew the
> checkout help screen at me.

You can't check out a single file, and you need to specify a full URL.

This may work:
svn co url://repos_full_url .\HEAD
svn co url://repos_full_url@24097 .\24907

Then difference the HEAD and 24907 directories

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 9 22:33:09 2006

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.