Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1998 closed task (fixed)

SVN svn:keywords maintenance script

Reported by: warmerdam Owned by: Mateusz Łoskot
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 (1)

svnkeywords.sh (1.4 KB ) - added by Mateusz Łoskot 16 years ago.
The script purpose is to reset svn:keywords property for files identified as using keywords.

Download all attachments as: .zip

Change History (8)

comment:1 by Mateusz Łoskot, 16 years ago

Status: newassigned

comment:2 by Mateusz Łoskot, 16 years ago

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.

comment:3 by Mateusz Łoskot, 16 years ago

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.

comment:4 by Mateusz Łoskot, 16 years ago

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.

by Mateusz Łoskot, 16 years ago

Attachment: svnkeywords.sh added

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

comment:5 by Mateusz Łoskot, 16 years ago

Resolution: fixed
Status: assignedclosed

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 ?

comment:6 by warmerdam, 16 years ago

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

comment:7 by Mateusz Łoskot, 16 years ago

Done in trunk (r15034)

Note: See TracTickets for help on using tickets.