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_at_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_at_conundrum.com
> <mailto: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
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1054841
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-26 15:29:05 CET