Ryan Schmidt-42 wrote:
> Keywords are only expanded in the client, not in the server. So to
> implement custom keywords, you would probably need to have a script
> which the client would run to compute the value of your new keyword
> so it could be expanded. However Subversion has no client-side script-
> running mechanism, and the Subversion developers have strong security-
> related motivations for not providing client-side script-running
OK they are expanded on the client, but the value extracted by the client
side is stored on the server side, am I wrong?
For example the version of a file is not calculated by the client, it is
stored somehow on the server, and the client only access the value of this
In my mind, the extension mechanism consisted in having external programs
(plugins, extension, ...) that store additional values/keywords on the
server. Then client will not calculate anything, they will only ask the
value to the server.
I really don't know the internal of subversion, it was just some guess &
Let's take an example, in my file I want something like this:
I need to generate a different ObjectAppVersion each time I commit a file.
The generation can be quite complex depending on the branch and other
parameters, so I cannot use the standard Rev keyword.
I would have liked to use some plugin/extension to handle this on the server
Otherwise, I need to put in place, like I was saying in the previous thread,
some double commit mechanism with an automatic modification before the
Ryan Schmidt-42 wrote:
> Let's take your example of $prop:copyright$ -- if you want the
> copyright to appear in the contents of the file, why not just put it
> into the contents of the file instead of putting it into a property
> of the file and then trying to include it via some new mechanism?
I agree that can be done in another way. But this introduce that I need to
do it in my build/deliver process.
For exemple, for the copyright I can use in my headers some markup like
#COPYRIGHT# and then when I deliver my application I introduce a string
replacement with some copyright value.
Ok, this can be done like this but it should also have been handle by SVN
that has already such a mechanism with the keyword expansion.
View this message in context: http://www.nabble.com/-PROPOSAL--Expansion-keywords-properties-enhancement-tp19408635p19430940.html
Sent from the Subversion Users mailing list archive at Nabble.com.
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-11 11:20:52 CEST