You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jay Jesus Amorin <ja...@gmail.com> on 2009/01/24 19:32:08 UTC
Retrieve the full URL of a file given the revision number
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.
Thanks.
Jay
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1047388
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Retrieve the full URL of a file given the revision number
Posted by Bert Huijben <rh...@sharpsvn.net>.
svn info <file> -r <revision>
Will give you the url of <file> in <revision> (following renames and copies,
etc).
# svn info CONTRIBUTERS.txt
=== In my workingcopy ===
# svn info CONTRIBUTERS.txt
Path: CONTRIBUTERS.txt
Name: CONTRIBUTERS.txt
URL: http://ankhsvn.open.collab.net/svn/ankhsvn/trunk/src/CONTRIBUTERS.txt
Repository Root: http://ankhsvn.open.collab.net/svn/ankhsvn
Repository UUID: ecf7f2a6-7b29-9143-b1c6-df2d17ec8657
Revision: 6038
Node Kind: file
Schedule: normal
Last Changed Author: rhuijben
Last Changed Rev: 5800
Last Changed Date: 2009-01-01 00:53:36 +0100 (do, 01 jan 2009)
Text Last Updated: 2009-01-05 14:38:53 +0100 (ma, 05 jan 2009)
Checksum: 82252ffc9b930ce004312edaab30a6ae
=== In revision 2000 ===
# svn info CONTRIBUTERS.txt -r 2000
Path: CONTRIBUTERS
Name: CONTRIBUTERS
URL: http://ankhsvn.open.collab.net/svn/ankhsvn/trunk/src/CONTRIBUTERS
Repository Root: http://ankhsvn.open.collab.net/svn/ankhsvn
Repository UUID: ecf7f2a6-7b29-9143-b1c6-df2d17ec8657
Revision: 2000
Node Kind: file
Last Changed Author: Arild
Last Changed Rev: 1735
Last Changed Date: 2004-10-04 19:23:14 +0200 (ma, 04 okt 2004)
As you can see the file CONTRIBUTERS.txt was originally called CONTRIBUTERS.
(You can also use the url to a file instead of a local working copy path).
But in many cases the real question is: why do you need the url at a
specific point in time?
Almost every subversion command allows specifying peg revisions:
Eg.
svn info file@RR -r SS
Retrieves information on the file that was known as file in revision RR, as
it was in revision SS. Normally you only need the url at some specific
poiont when you are performing url calculations yourself.
Thanks,
Bert
From: Jay Jesus Amorin [mailto:jay.amorin@gmail.com]
Sent: zaterdag 24 januari 2009 20:32
To: users@subversion.tigris.org
Subject: Retrieve the full URL of a file given the revision number
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.
Thanks.
Jay
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1054265
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Retrieve the full URL of a file given the revision number
Posted by Toby Thain <to...@telegraphics.com.au>.
On 24-Jan-09, at 11:30 PM, 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.
You can do a recursive ls (–R) at any revision (–r NN).
see svn help ls
--Toby
>
>
> Help please.
>
> Thanks,
>
>
> Jay
>
> On Sun, Jan 25, 2009 at 3:40 AM, Matthew Pounsett
> <ma...@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
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1050330
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Retrieve the full URL of a file given the revision number
Posted by Simon Lucy <si...@objective2k.com>.
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.
Hmmm I think there's a slight and common misunderstanding of what the
revision means. Its true that if you commit a change to a file you
commit it and get a revision and $Rev$ will have the revision it changed
on, but that revision at the time its created is then the revision of
the tree. There is no url as such which is different. To get the tree
at a particular revision number then svn co url@revision will checkout
the tree.
To discover what files were affected by a revision then svn log
--revision (revision) -q -v
S
>
> Thanks,
>
>
> Jay
>
> On Sun, Jan 25, 2009 at 3:40 AM, Matthew Pounsett <matt@conundrum.com
> <ma...@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
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1054841
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Retrieve the full URL of a file given the revision number
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 24, 2009, at 22:30, 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.
Well a revision represents the repository as a whole. Do you mean the
list of files and directories changed by a particular revision? If
so, then you want "svn diff --summarize -c REV" where REV is the
revision.
If that's not what you mean, perhaps you could show us the output you
want to receive, and then perhaps we can tell you the svn command
that will help you get that output.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1048899
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Retrieve the full URL of a file given the revision number
Posted by Felix Gilcher <fe...@bitextender.com>.
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
> <ma...@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@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@subversion.tigris.org].
Re: Retrieve the full URL of a file given the revision number
Posted by Jay Jesus Amorin <ja...@gmail.com>.
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 <ma...@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
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1048438
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Retrieve the full URL of a file given the revision number
Posted by Matthew Pounsett <ma...@conundrum.com>.
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
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1047393
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].