Das sieht doch hübsch aus:
https://github.com/joh/xmldiffs
Ich habe in einer Beispiel-XML-Datei einfach mal einen Block verschoben(also keine logische Änderung) und einen einfachen Wert geändert.
Normaler diff:
Code:
--- /etc/benno/benno.2.xml 2017-04-20 16:52:08.000000000 +0200
+++ /etc/benno/benno.3.xml 2017-04-20 16:55:21.000000000 +0200
@@ -75,16 +75,7 @@
</configuredcontainers>
<configuredcontainers>
<simplecontainer>
- <monthlyfsbox>
- <fshexbennobox>
- <monthlyfsjournal/>
- <directory>/srv/benno/archives/my.archiveserver.com/acmehealthandbeautygmbh/repo</directory>
- <subdirs>3</subdirs>
- <dirlength>2</dirlength>
- <compression>gzip</compression>
- </fshexbennobox>
- </monthlyfsbox>
- <identifier>ACME Beauty GmbH</identifier>
+ <identifier>ACME Nails and Beauty GmbH</identifier>
<conditions>
<or>
<domain sender="true" recipient="true" from="true" to="true" cc="true">acme.de</domain>
@@ -107,6 +98,15 @@
<luceneindex version="LUCENE_35">
<directory>/srv/benno/archives/my.archiveserver.com/acmehealthandbeautygmbh/index</directory>
</luceneindex>
+ <monthlyfsbox>
+ <fshexbennobox>
+ <monthlyfsjournal/>
+ <directory>/srv/benno/archives/my.archiveserver.com/acmehealthandbeautygmbh/repo</directory>
+ <subdirs>3</subdirs>
+ <dirlength>2</dirlength>
+ <compression>gzip</compression>
+ </fshexbennobox>
+ </monthlyfsbox>
</simplecontainer>
</configuredcontainers>
</containerarchive>
xmldiffs-Ausgabe:
Code:
./xmldiffs.py /etc/benno/benno.2.xml /etc/benno/benno.3.xml
--- /etc/benno/benno.2.xml
+++ /etc/benno/benno.3.xml
@@ -139,7 +139,7 @@
</or>
</conditions>
<identifier>
- ACME Beauty GmbH
+ ACME Nails and Beauty GmbH
</identifier>
<luceneindex version="LUCENE_35">
<directory>
Lesezeichen