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

Re: Retrieve the full URL of a file given the revision number

From: Felix Gilcher <felix.gilcher_at_bitextender.com>
Date: Sun, 25 Jan 2009 10:32:22 +0100

I don't really understand what you're trying to do. A revision number
in itself has no meaning - it's a number. I have like ten repositories
here and they all have a revision "42". The number has only a meaning
if I combine it with a repository url - only if i specify "revision 42
of the repository at 'http://svn.agavi.org'" the number has a meaning.
And then it still does not describe a file but a changeset which may
contain multiple files. Which files are affected (and their full path
in the repository) can be retrieved by "svn log -r42 -v http://svn.agavi.org
". As you can see, there were three files affected by the changeset
(you can run the command, the repo is public readonly).

hope that helps

felix

On Jan 25, 2009, at 5:30 AM, Jay Jesus Amorin wrote:

> No, probably not that. I want an svn command that when i run given
> the revision number will return a URL of the file/files of that
> revision in the repository.
>
> Help please.
>
> Thanks,
>
>
> Jay
>
> On Sun, Jan 25, 2009 at 3:40 AM, Matthew Pounsett
> <matt_at_conundrum.com> wrote:
>
> On 24-Jan-2009, at 14:32 , Jay Jesus Amorin wrote:
>
> Hi,
>
> Is there a way to retrieve the full url of a file given the revision
> number in svn.
> The result would be something like this file:///path/to/the/file/in/the/repository
> or https://path/to/the/file/in/the/repository.
>
> Is this what you mean?
>
> % pwd
> ~/devel/svn-test/trunk
>
> % svn info Makefile
> Path: Makefile
> Name: Makefile
> URL: https://svn.host.domain/svn-test/trunk/Makefile
> Repository Root: https://svn.host.domain/svn-test
> Repository UUID: 37fdcd9f-a7e5-0310-80cd-f4a4424f7216
> Revision: 83
> Node Kind: file
> Schedule: normal
> Last Changed Author: mattp
> Last Changed Rev: 58
> Last Changed Date: 2007-09-17 12:51:06 -0400 (Mon, 17 Sep 2007)
> Text Last Updated: 2008-06-23 15:01:18 -0400 (Mon, 23 Jun 2008)
> Checksum: 6fa5e9f25804d486abdf53e7a351de38
>
>
>

--
Felix Gilcher
Bitextender GmbH
Paul-Heyse-Str. 6
D-80336 München
T: +49 89 57 08 15 16
F: +49 89 57 08 15 17
M: +49 172 840 88 28
felix.gilcher_at_bitextender.com
http://bitextender.com/
Amtsgericht München, HRB 174280
Geschäftsführer: David Zülke, Florian Clever
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1049167
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

  • application/pkcs7-signature attachment: smime.p7s
Received on 2009-01-25 10:33:25 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.