Skip to main content

Description

Python script to create a changelog from a SVN repository log. It has a couple of switches to modify the output:

  • Show/hide author
  • Show/hide revision number
  • Show/hide time
  • Prefix everything with a character
  • Change order: old to new, or new to old
  • Specify ranges for dates or revisions
  • Group by date, date and revisions or date and show everything inline

See below for output examples.

Usage

Run svnlog.py path_to_repo_or_file alone or with options below:

--show-author or -a
to show author
--show-rev or -r
to show revision number
--show-time or -t
to show time
--prefix
to prefix with a char
--reverse
to reverse the order (new to old)
--date date1:date2
show one day only (date1) or a range using :date2 or leaving empty to include today. Dates must be in the YYYY-MM-DD format.
--revision rev1:rev2
show one revision (rev1) or a range using :rev2 or leaving empty to include HEAD revision.
--group
to group by date.
--subgroup
to group by date and revisions.
--inline
to group by date and revivion, and the rest of data inline.

Download

svnlog 1.0
Must have a SVN CLI in your path

Python

Examples

Default:

 
2013-11-25:
   changed arguments (better handling)
   fix: output path with one file
   fix: finding <h1>

2013-11-19:
   fixed: now files are saved according to source dir tree
   + option to save files in one depth dir

2013-11-19:
   + relative links for book

Grouped, showing revision numbers and author:

 
2013-12-02 (r133 r132 r131 r130) penguin:
    fix description
    code cleanup
    code cleanup
    + --revision option (to specify revision number)
    Some code fixing

Subgrouping with revision, showing author:

 
2013-12-02
    r133 fix description
    ------- penguin

    r132 code cleanup
    ------- penguin

    r131 code cleanup
    ------- penguin

    r130 + --revision option (to specify revision number)
    r130 Some code fixing
    ------- penguin

Inline:

 
2013-12-02
    r133 fix description (penguin)

    r132 code cleanup (penguin)

    r131 code cleanup (penguin)

    r130 + --revision option (to specify revision number) (penguin)
    r130 Some code fixing (penguin)

Changelog

Version 1.0

  • First release