1w6

Commit

Info

Änderung:        514:b6c0f7048b73
Nutzer:          Arne Babenhauserheide <bab@draketo.de>
Datum:           Sat Sep 03 11:07:16 2011 +0200
Zusammenfassung: parse commits directly as HTML.

 parselog.sh |  8 +++++---
 1 Dateien verändert, 5 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-)

--- a/parselog.sh	2012-04-15 11:51:46.714763377 +0200
+++ b/parselog.sh	2012-04-15 11:51:46.718096746 +0200
@@ -27,8 +27,10 @@ hg log --template "*<div style='float: r
mkdir -p commits
for i in $(hg log --template "{node} "); do
    if ! [ -e commits/$i.txt ]; then
        cat commits/templates/file_head.html > commits/$i.html
        echo "<h1>Commit</h1><pre style='white-space: pre-wrap'>" > commits/$i.txt >> commits/$i.html
        hg export $i >> commits/$i.txt commits/$i.html
        echo "</pre>" >> commits/$i.txt commits/$i.html
        cat commits/templates/file_foot.html >> commits/$i.html
    fi
done

Diff

diff --git a/parselog.sh b/parselog.sh
--- a/parselog.sh
+++ b/parselog.sh
@@ -27,8 +27,10 @@ hg log --template "*<div style='float: r
 mkdir -p commits
 for i in $(hg log --template "{node} "); do
     if ! [ -e commits/$i.txt ]; then
-        echo "<h1>Commit</h1><pre style='white-space: pre-wrap'>" > commits/$i.txt
-        hg export $i >> commits/$i.txt
-        echo "</pre>" >> commits/$i.txt
+        cat commits/templates/file_head.html > commits/$i.html
+        echo "<h1>Commit</h1><pre style='white-space: pre-wrap'>" >> commits/$i.html
+        hg export $i >> commits/$i.html
+        echo "</pre>" >> commits/$i.html
+        cat commits/templates/file_foot.html >> commits/$i.html
     fi
 done

Full export

# HG changeset patch
# User Arne Babenhauserheide <bab@draketo.de>
# Date 1315040836 -7200
# Node ID b6c0f7048b73075172650ba8ebdf963c4a48ecea
# Parent  d85d7c000f46467b47172f9ba2171bcc234886b4
parse commits directly as HTML.

diff --git a/parselog.sh b/parselog.sh
--- a/parselog.sh
+++ b/parselog.sh
@@ -27,8 +27,10 @@ hg log --template "*<div style='float: r
 mkdir -p commits
 for i in $(hg log --template "{node} "); do
     if ! [ -e commits/$i.txt ]; then
-        echo "<h1>Commit</h1><pre style='white-space: pre-wrap'>" > commits/$i.txt
-        hg export $i >> commits/$i.txt
-        echo "</pre>" >> commits/$i.txt
+        cat commits/templates/file_head.html > commits/$i.html
+        echo "<h1>Commit</h1><pre style='white-space: pre-wrap'>" >> commits/$i.html
+        hg export $i >> commits/$i.html
+        echo "</pre>" >> commits/$i.html
+        cat commits/templates/file_foot.html >> commits/$i.html
     fi
 done

Alle Änderungen


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