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

Re: Subversion Keywords Substitution Question

From: Dave Huang <khym_at_azeotrope.org>
Date: Mon, 23 Jan 2012 11:57:21 -0600

On Jan 23, 2012, at 11:41 AM, Simon Large wrote:

> On 23 January 2012 17:07, Rajesh Shah <rshah_at_affiniongroup.com> wrote:
>> We are using subversion keywords in our source code as below:
>> -- $URL$
>> -- $Rev$
>> -- $Date$
>> -- $Author$
>>
>> When checkout the file using Tortoise SVN, I see keyword substitution happening correctly.
>>
>> But when I access the same files directly using a Browser like Firefox(http) I don't see the substitution happening. Is this expected behavior ?
>
> You would need to ask this question on the ViewVC mailing list, which
> is what handles the online viewing through a web browser.

Or maybe he's referring to accessing the SVN repo via http? E.g., http://svn.apache.org/repos/asf/subversion/trunk/README

If I remember correctly, SVN keywords are stored unexpanded in the repository, and are expanded by the client during checkout and update. So yes, it is expected behavior for the keywords to be unexpanded if you get them directly from the repo (note the "$LastChangedDate$" in the README mentioned above).

That said, ViewVC doesn't seem to expand keywords either.

-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym_at_azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 36 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2910581
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-01-23 18:58:11 CET

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