"Fossies" - the Fresh Open Source Software Archive

Member "redis-7.0.5/utils/releasetools/changelog.tcl" (21 Sep 2022, 1195 Bytes) of package /linux/misc/redis-7.0.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Tcl/Tk source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.


    1 #!/usr/bin/env tclsh
    2 
    3 if {[llength $::argv] != 2 && [llength $::argv] != 3} {
    4     puts "Usage: $::argv0 <branch> <version> \[<num-commits>\]"
    5     exit 1
    6 }
    7 
    8 set branch [lindex $::argv 0]
    9 set ver [lindex $::argv 1]
   10 if {[llength $::argv] == 3} {
   11     set count [lindex ::$argv 2]
   12 } else {
   13     set count 100
   14 }
   15 
   16 set template {
   17 ================================================================================
   18 Redis %ver%     Released %date%
   19 ================================================================================
   20 
   21 Upgrade urgency <URGENCY>: <DESCRIPTION>
   22 }
   23 
   24 set template [string trim $template]
   25 append template "\n\n"
   26 set date [clock format [clock seconds]]
   27 set template [string map [list %ver% $ver %date% $date] $template]
   28 
   29 append template [exec git log $branch~$count..$branch "--format=format:%an in commit %h:%n %s" --shortstat]
   30 
   31 #Older, more verbose version.
   32 #
   33 #append template [exec git log $branch~30..$branch "--format=format:+-------------------------------------------------------------------------------%n| %s%n| By %an, %ai%n+--------------------------------------------------------------------------------%nhttps://github.com/redis/redis/commit/%H%n%n%b" --stat]
   34 
   35 puts $template