tests/svnxml.py
changeset 28947 812eb3b7dc43
parent 16512 c58bdecdb800
child 40216 c17d73bf6a4d
equal deleted inserted replaced
28946:b12bda49c3e3 28947:812eb3b7dc43
     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)