relpipe-data/examples-in-xmltable-tr-sql-mercurial-hg.xml
author František Kučera <franta-hg@frantovo.cz>
Wed, 31 Jul 2019 16:01:34 +0200
branchv_0
changeset 264 d39cfc926f95
permissions -rw-r--r--
XMLTable, SQL, v0.13

<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>