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

RE: Problem with subclipse & tags??

From: Alexander Kitaev <alex_at_tmate.org>
Date: 2005-03-14 20:18:49 CET

Hello,

JavaSVN doesn't support "file" protocol, so what I just suggested will not
work for you if you're using "file" protocol to access repository. However,
adding code that traces renames before getting file contents, took me around
7 minutes, so I think Subclipse may also easily workaround Subversion
limitation if there are any.

The algorithm is to check whether file exists at the desired revision before
getting file contents and if not, trace file renames from the HEAD to the
desired revision with the "log" operation, then use "original" name. But, as
Subclipse already got "log" for the file, it probably should be able to
detect "real" file name even before additional "log" request, and it will be
more reliable. The first way probably will not work if file already deleted
in "head", but when talking about Subclipse log/compare operations only it
is not the case most of the times.

Alexander

> -----Original Message-----
> From: Richard Meade [mailto:richard.meade@shenick.com]
> Sent: Monday, March 14, 2005 8:16 PM
> To: users@subclipse.tigris.org
> Subject: Re: Problem with subclipse & tags??
>
>
> On Mon, 14 Mar 2005 13:40:40 -0500, Mark Phippard
> <MarkP@softlanding.com>
> wrote:
> >
> > That is a Subversion limitation that has been resolved in trunk and
> > will be available when Subversion 1.2 comes out.
> >
> > Basically svn cat -r XYZ does not work against a URL unless the
> > revision actually exists in that specific URL. In your
> case, since it
> > would be running against the tags URL the file does not exist.
> >
>
> Thanks for the quick response!
> That's great news if it is fixed in 1.2.
> However, just to make sure I understand correctly,
> this seems to work from the svn command line for
> file:/// URL (which is what I am using in subclipse)
> - although I did think that I had seen it from both
> Tortoise & RapidSVN also, but now I can't reproduce it
> for them so maybe I am going crazy...! :-)
>
>
> C:\tmp\sboxs\testy\Tag_4>svn diff -r 2:9
> file:///tmp/test-general/repos/test-mod/tags/Tag_4/file-4.txt
> Index: file-4.txt
> ===================================================================
> --- file-4.txt (.../trunk/file-4.txt) (revision 2)
> +++ file-4.txt (.../tags/Tag_4/file-4.txt) (revision 9)
> @@ -1 +1 @@
> -text-1
> +text-4
>
> C:\tmp\sboxs\testy\Tag_4>svn diff -r 2:9 file-4.txt
> Index: file-4.txt
> ===================================================================
> --- file-4.txt (.../trunk/file-4.txt) (revision 2)
> +++ file-4.txt (.../tags/Tag_4/file-4.txt) (revision 9)
> @@ -1 +1 @@
> -text-1
> +text-4
>
>
> Thanks again,
> Richard.
>
> --
> Richard Meade
> Shenick Network Systems
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: users-help@subclipse.tigris.org
>
>
Received on Tue Mar 15 06:18:49 2005

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

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