#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)
Change History (8)
comment:1 by , 16 years ago
Status: | new → assigned |
---|
comment:2 by , 16 years ago
comment:3 by , 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 , 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 , 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 , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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 , 16 years ago
Mateusz, yes, please add the script in the gdal root directory in trunk.
Frank,
You are suggesting that
This is OK, but I don't know where GDAL SVN repository is located there.