Login Register Actian.com  

Actian Community Wiki

Navigation
Learn About
Developing With
Ingres Talk
Information
Toolbox

Python/Projects/CHANGELOG Generation

From Ingres Community Wiki

Jump to: navigation, search

This project is to develop a way to generate the CHANGELOG supplied with releases of the Python driver from the commit messages in SVN.

Estimated work effort:1 week

General Plan: Use a tool like svn2log to fetch the first line of the commit message. It's probable that there will be commit messages which do not provide meaningful text, hence the 1 week allocated to the project to handle these edge cases.

Status

A new script, generate_changelog.py, has been committed in to SVN at rev 3963. In order to use this script you need to install svn2log.

Usage:
generate_changelog.py [OPTIONS]
For a given repository create a CHANGELOG for each tag contained within the tag
directory

Options:
  --svn2log-dir=DIR            Location of the svn2log scripts. svn2log is
                               available from http://www.core.com.pl/svn2log/
                               defaults to '/usr/local/bin'
  --repository=SVN_REPOSITORY  URL of the SVN repositorya with the trailing '/'.
                               Defaults to 'http://code.ingres.com/ingres/'
  --trunk=TRUNK                Location relative to the repository where the
                               main/trunk code is kept. Defaults to 'main/'
  --tags=TAGS                  Location relative to the repository where the
                               tags are kept. Defaults to 'tags/'
  --include-head               Include changes from the last tag and 
                               HEAD revision
  --output=CHANGELOG           Set the output file name. Defaults to CHANGELOG.
                               Use '-' to sent the output to STDOUT
  --quiet                      Don't output messages about the current tag being
                               processed

Example usage:

python generate_changelog.py \
 --repository=http://code.ingres.com/ingres/drivers/python/ \
 --include-head \
 --svn2log-dir=$HOME/downloads/svn2log/


Project Profile

Admins Grant Croker Chris Clark
Sponsor Chris Clark
Developers Grant Croker Chris Clark
Development Status Discussion
Intended Audience Developers
License GNU General Public License v2.0
Operating System(s) 32-bit MS Windows (NT/2000/XP/Vista), 64-bit MS Windows (Vista, 2008 Server), Solaris, Linux, HP-UX, IBM AIX
Programming Language(s) Shell scripting (bash/bourne shell)
Topic(s) Ingres, Python
Registered 1-Dec-2010
Personal tools
© 2011 Actian Corporation. All Rights Reserved