Hi Joerg!
> I have a deep file structure under SVN control. Now I want to create a
> file named e.g. <revisionInfo.txt> in the root. The content of that
> file should only be svn keywords like $Revision$, $Author$, $URL$, ....
>
> Then I want <revisionInfo.txt> updated on every commit even if that
> particular file has not been changed.
>
> Background:
> The Content of that structure will be deployed on serveral Server.
> These Server are not allowed to get its own svn Client. Due to that,
> there is no easy way to find out, what the current Version of the
> working copy is (or to write this Infos into a <deployment.log>).
>
> Any ideas or suggestions?
IMHO there is no need to store this file in the repository.
If the servers you deploy the files to do not have their own SVN client,
I would make creation of the file part of the deployment process, i.e.
you do something like "svn export to/temporary/location && create_revsionInfo.sh && copy_to_all_servers.sh".
Do you have good reason to record more than (the trivially available)
* repository
* path inside the repository
* repo revision
* maybe export timestamp and exporting person
for the deployment in the revisionInfo.txt file?
Then a custom script that
walks the subversion file tree and collects all the information into your
version file should be easy with python, os.walk and some python svn binding
(or calling the command line tools).
Mit freundlichen Grüßen
Dr. Hartmut Niemann
Siemens AG
Infrastructure & Cities Sector
Rail Systems Division
Locomotives and Components
IC RL LOC EN CCI 1
Werner-von-Siemens-Str. 67
91052 Erlangen, Deutschland
Tel: +49 9131 7-34264
mailto:hartmut.niemann_at_siemens.com
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3085396
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-07-18 14:10:43 CEST