Ticket #1998 (closed task: fixed)

Opened 4 years ago

Last modified 4 years ago

SVN svn:keywords maintenance script

Reported by: warmerdam Owned by: 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 Download (1.4 KB) - added by mloskot 4 years ago.
The script purpose is to reset svn:keywords property for files identified as using keywords.

Change History

Changed 4 years ago by mloskot

  • status changed from new to assigned

Changed 4 years ago 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.

Changed 4 years ago 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.

Changed 4 years ago 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.

Changed 4 years ago by mloskot

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

Changed 4 years ago 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 ?

Changed 4 years ago by warmerdam

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

Changed 4 years ago by mloskot

Done in trunk (r15034)

Note: See TracTickets for help on using tickets.