import os, xml.dom.minidom, md5 def checkdir(arg, path, files): if not path.endswith(".svn"): return # avoid further traversal files[:] = [] entries = xml.dom.minidom.parse(os.path.join(path, "entries")) for e in entries.getElementsByTagName("entry"): if e.getAttribute("kind") != "file": continue name = e.getAttribute("name")+".svn-base" digest = md5.md5() digest.update(open(os.path.join(path, "text-base", name)).read()) if digest.hexdigest() != e.getAttribute("checksum"): print "Checksum difference in", path, name os.path.walk(".", checkdir, None)

AltStyle によって変換されたページ (->オリジナル) /