--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/relpipe-data/examples-in-xmltable-tr-sql-mercurial-hg.xml Wed Jul 31 16:01:34 2019 +0200
@@ -0,0 +1,33 @@
+<stránka
+ xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
+ xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro">
+
+ <nadpis>Reading Mercurial history using XMLTable and SQL</nadpis>
+ <perex>filtering the commit log from hg VCS</perex>
+ <m:pořadí-příkladu>02900</m:pořadí-příkladu>
+
+ <text xmlns="http://www.w3.org/1999/xhtml">
+
+ <p>
+ The <a href="https://www.mercurial-scm.org/">Mercurial</a> version control system
+ can provide the repository commit log in a machine readable format – XML.
+ We will transform this XML to relations using the <code>relpipe-in-xmltable</code>
+ and then filter records using the SQL language in the <code>relpipe-tr-sql</code> tool.
+ Everything on-the-fly, in a single shell pipeline. Of course, we can cache intermediate products in a file if needed.
+ </p>
+
+ <m:pre jazyk="bash" src="examples/mercurial-hg-xmltable-sql.sh"/>
+
+ <p>This script will generate several lovely relations:</p>
+
+ <m:pre jazyk="text" src="examples/mercurial-hg-xmltable-sql.txt"/>
+
+ <p>
+ Using different output filter than <code>relpipe-out-tabular</code>,
+ we can serialize the relational output into other formats (XML, CSV, Recfile, ODS, ASN.1 BER etc.),
+ display them in a GUI or execute some shell command for each record.
+ </p>
+
+ </text>
+
+</stránka>