1w6

Commit

Info

Änderung:        731:5699f151cb07
Nutzer:          Arne Babenhauserheide <bab@draketo.de>
Datum:           Sun Apr 15 10:57:44 2012 +0200
Zusammenfassung: parselog now colors the diffs.

 parselog.sh |  7 ++++++-
 1 Dateien verändert, 6 Zeilen hinzugefügt(+), 1 Zeilen entfernt(-)

--- a/parselog.sh	2012-04-15 11:46:06.104483273 +0200
+++ b/parselog.sh	2012-04-15 11:46:06.107816642 +0200
@@ -34,9 +34,14 @@ for i in $(hg log --template "{node} ");
    if ! [ -e static/commits/$i.html ]; then
        cat static/commits/templates/file_head.html > static/commits/$i.html
        echo "<h1>Commit</h1><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
        hg export log --color true --patch --stat -r $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
        echo "</pre>" >> static/commits/$i.html
        echo "<p><a href='index.html'>Alle Änderungen</a></p>" >> static/commits/$i.html
        cat static/commits/templates/file_foot.html >> static/commits/$i.html
    fi
done

Diff

diff --git a/parselog.sh b/parselog.sh
--- a/parselog.sh
+++ b/parselog.sh
@@ -34,9 +34,14 @@ for i in $(hg log --template "{node} ");
     if ! [ -e static/commits/$i.html ]; then
         cat static/commits/templates/file_head.html > static/commits/$i.html
         echo "<h1>Commit</h1><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
-        hg export $i >> static/commits/$i.html
+        hg log --color true --patch --stat -r $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
         echo "</pre>" >> static/commits/$i.html
         echo "<p><a href='index.html'>Alle Änderungen</a></p>" >> static/commits/$i.html
         cat static/commits/templates/file_foot.html >> static/commits/$i.html
     fi
 done
+
+
+
+
+

Full export

# HG changeset patch
# User Arne Babenhauserheide <bab@draketo.de>
# Date 1334480264 -7200
# Node ID 5699f151cb07bd2f080649099ae75b294b4a6e94
# Parent  a61fa46717501fdef757d52db1a78fe13b634e44
parselog now colors the diffs.

diff --git a/parselog.sh b/parselog.sh
--- a/parselog.sh
+++ b/parselog.sh
@@ -34,9 +34,14 @@ for i in $(hg log --template "{node} ");
     if ! [ -e static/commits/$i.html ]; then
         cat static/commits/templates/file_head.html > static/commits/$i.html
         echo "<h1>Commit</h1><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
-        hg export $i >> static/commits/$i.html
+        hg log --color true --patch --stat -r $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
         echo "</pre>" >> static/commits/$i.html
         echo "<p><a href='index.html'>Alle Änderungen</a></p>" >> static/commits/$i.html
         cat static/commits/templates/file_foot.html >> static/commits/$i.html
     fi
 done
+
+
+
+
+

Alle Änderungen


Created with pyMarkdown Minisite
using the layout from the pybrary and 1w6-sleek.