1w6

Commit

Info

Änderung:        734:a881911ca593
Nutzer:          Arne Babenhauserheide <bab@draketo.de>
Datum:           Sun Apr 15 11:39:21 2012 +0200
Zusammenfassung: split the commit output into info (log + wdiff) diff and export.

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

--- a/parselog.sh	2012-04-15 11:46:02.111107593 +0200
+++ b/parselog.sh	2012-04-15 11:46:02.111107593 +0200
@@ -33,11 +33,13 @@ cat static/commits/templates/file_foot.h
for i in $(hg log --template "{node} "); do
    if ! [ -e static/commits/$i.html ]; then
        cat static/commits/templates/file_head.html > static/commits/$i.html
        echo "<h1>Commit</h1><pre "<h1>Commit</h1><h2>Info</h2><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
        hg log --color true --stat -r $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
        hg wdiff --color true -c $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
		echo "</pre><h2>Diff</h2><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
        hg diff --color true -c $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
		echo "</pre><h2>Full export</h2><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
        hg export $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

Diff

diff --git a/parselog.sh b/parselog.sh
--- a/parselog.sh
+++ b/parselog.sh
@@ -33,11 +33,13 @@ cat static/commits/templates/file_foot.h
 for i in $(hg log --template "{node} "); do
     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
+        echo "<h1>Commit</h1><h2>Info</h2><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
         hg log --color true --stat -r $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
         hg wdiff --color true -c $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
-		echo >> static/commits/$i.html
+		echo "</pre><h2>Diff</h2><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
         hg diff --color true -c $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
+		echo "</pre><h2>Full export</h2><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
+        hg export $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

Full export

# HG changeset patch
# User Arne Babenhauserheide <bab@draketo.de>
# Date 1334482761 -7200
# Node ID a881911ca593464a38fc3f08a178b86d2e6fb32a
# Parent  e00965489c09713279b15719616bc1b884620e45
split the commit output into info (log + wdiff) diff and export.

diff --git a/parselog.sh b/parselog.sh
--- a/parselog.sh
+++ b/parselog.sh
@@ -33,11 +33,13 @@ cat static/commits/templates/file_foot.h
 for i in $(hg log --template "{node} "); do
     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
+        echo "<h1>Commit</h1><h2>Info</h2><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
         hg log --color true --stat -r $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
         hg wdiff --color true -c $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
-		echo >> static/commits/$i.html
+		echo "</pre><h2>Diff</h2><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
         hg diff --color true -c $i | ansifilter --html --fragment -e utf-8 >> static/commits/$i.html
+		echo "</pre><h2>Full export</h2><pre style='white-space: pre-wrap'>" >> static/commits/$i.html
+        hg export $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

Alle Änderungen


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