Ticket #1998 (closed task: fixed)

Opened 2 years ago

Last modified 1 year ago

SVN svn:keywords maintenance script

Reported by: warmerdam Assigned to: mloskot
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords: svn
Cc:

Description

Currently folks need to update the svn:keywords property for each new file manually. I would like a script running nightly to take care of this for the whole GDAL tree (are there files that need to be excluded?)

Also, perhaps there are svn:ignore or other keywords that could be automatically maintained?

Please look into this. Running on download.osgeo.org (similar to nightly snapshot scripts) would likely be best.

Attachments

svnkeywords.sh (1.4 kB) - added by mloskot on 07/25/08 18:06:08.
The script purpose is to reset svn:keywords property for files identified as using keywords.

Change History

07/25/08 12:37:29 changed by mloskot

  • status changed from new to assigned.

07/25/08 12:43:11 changed by mloskot

Frank,

You are suggesting that

Running on download.osgeo.org...would likely be best

This is OK, but I don't know where GDAL SVN repository is located there.

07/25/08 13:07:33 changed by mloskot

Frank,

Sorry for confusing. Clearly, I need to do svn checkout/update, propset keywords and commit this changes back. So, I can do it using local copy but not touching files in repo directly. OK, I will use download.osgeo.org for that.

07/25/08 15:48:59 changed by mloskot

After some discussion on security issues related to committing from cron job, we have came to the conclusion that the simplest option is:

I'd be all right with us keeping a script to fixup the keywords in ~/gdal and folks can run it periodically, with mloskot tasked to try and do so 1-2 times per week. -- Frank

I'm preparing a script that everyone in the team can run frequently on her local copy of GDAL SVN to fix svn:keywords property.

07/25/08 18:06:08 changed by mloskot

  • attachment svnkeywords.sh added.

The script purpose is to reset svn:keywords property for files identified as using keywords.

07/25/08 18:08:48 changed by mloskot

  • status changed from assigned to closed.
  • resolution set to fixed.

Frank,

I've atteched the svnkeywords.sh script that does the requested job. I tested it quite intensively and works for me. It scans a source tree and identifies what keywords are used in files and activates svn:keywords property with collection of keywords being used per file.

I consider this ticket as fixed, so closing.

Do you like the idea about adding the svnkeywords.sh script to GDAL SVN ?

07/25/08 18:42:59 changed by warmerdam

Mateusz, yes, please add the script in the gdal root directory in trunk.

07/25/08 19:13:15 changed by mloskot

Done in trunk (r15034)