]> granicus.if.org Git - neomutt/commitdiff
Use hg-commit to perform commits that also update the ChangeLog.
authorBrendan Cully <brendan@kublai.com>
Sat, 3 Mar 2007 08:35:07 +0000 (00:35 -0800)
committerBrendan Cully <brendan@kublai.com>
Sat, 3 Mar 2007 08:35:07 +0000 (00:35 -0800)
ChangeLog
hg-changelog-map [new file with mode: 0644]
hg-commit [new file with mode: 0755]

index 040fdb18f0943cf473f1c103b824a4fd454b5438..c6d0726bcf468dc54ef8658eee91dea268563d92 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,33 @@
+2007-03-03 00:34 -0800  Brendan Cully  <brendan@kublai.com>  (03596c38dd53)
+
+       * hg-commit: Use hg-commit to perform commits that also update the
+       ChangeLog.
+
+2007-03-02 21:17 -0800  Brendan Cully  <brendan@kublai.com>  (472e100053ed)
+
+       * .hgignore: Ignore more built files
+
+2007-03-02 11:09 -0800  Brendan Cully  <brendan@kublai.com>  (256c86830a36)
+
+       * .hgignore: Create .hgignore file
+
+2007-03-02 10:29 +0100  Thomas Roessler  <roessler@does-not-exist.org>  (e040b8aba1c4)
+
+       * configure.in: Make --enable-ssl without pop or imap a mere warning.
+
+2007-03-02 01:25 +0000  Petr Pisar  <petr.pisar@atlas.cz>  (f1c800817281)
+
+       * po/cs.po: Updated Czech translation (now in UTF-8).
+
+2007-03-01 06:05 +0000  Brendan Cully  <brendan@kublai.com>  (d0ff524fa461)
+
+       * init.h: Remove $file_charset SYN - it never appeared in an official
+       release.
+
+2007-02-28 17:48 +0000  Brendan Cully  <brendan@kublai.com>  (083d6afe844c)
+
+       * ChangeLog: # changelog commit
+
 2007-02-28 17:47:13  Brendan Cully  <brendan@kublai.com>  (brendan)
 
        * imap/command.c, imap/imap.c, imap/imap_private.h: Add
diff --git a/hg-changelog-map b/hg-changelog-map
new file mode 100644 (file)
index 0000000..27bdc7a
--- /dev/null
@@ -0,0 +1,5 @@
+header = '{date|isodate}  {author|person}  <{author|email}>  ({node|short})\n\n'
+changeset = '\t* {files|stringify|fill68|tabindent|strip}\n\n'
+file = '{file}, '
+last_file = '{file}: {desc}\n\t'
+no_files = '{desc}'
diff --git a/hg-commit b/hg-commit
new file mode 100755 (executable)
index 0000000..be86a33
--- /dev/null
+++ b/hg-commit
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+hg commit "$@"
+
+lrev=$(hg log --limit 1 --template '{rev}' ChangeLog)
+trev=$(hg tip --template '{rev'})
+if [ $lrev = $trev ]; then exit 0; fi
+
+declare -a nopts
+
+while [ $# -gt 0 ]
+do
+  case "$1" in
+    -m|-l) shift ;;
+    -*) nopts[${#nopts[*]}]="$1" ;;
+    # Include ChangeLog if given any explicit file names
+    *) nopts[${#nopts[*]}]="$1"; cl=ChangeLog ;;
+  esac
+  shift
+done
+
+clog=$(hg tip --template '{desc}')
+
+{
+  hg log --style=./hg-changelog-map -r tip:$lrev
+  hg cat ChangeLog
+} > ChangeLog
+
+hg rollback
+hg commit -m "$clog" "${nopts[@]}" $cl