equal
deleted
inserted
replaced
1 # Read the output of a "svn log --xml" command on stdin, parse it and |
1 # Read the output of a "svn log --xml" command on stdin, parse it and |
2 # print a subset of attributes common to all svn versions tested by |
2 # print a subset of attributes common to all svn versions tested by |
3 # hg. |
3 # hg. |
4 import xml.dom.minidom, sys |
4 from __future__ import absolute_import |
|
5 import sys |
|
6 import xml.dom.minidom |
5 |
7 |
6 def xmltext(e): |
8 def xmltext(e): |
7 return ''.join(c.data for c |
9 return ''.join(c.data for c |
8 in e.childNodes |
10 in e.childNodes |
9 if c.nodeType == c.TEXT_NODE) |
11 if c.nodeType == c.TEXT_NODE) |