Mercurial > hg
diff contrib/darcs2hg.py @ 3673:eb0b4a2d70a9
white space and line break cleanups
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 17 Nov 2006 08:06:54 +0100 |
parents | d13e4ffaa79d |
children | b62a59fa9d26 |
line wrap: on
line diff
--- a/contrib/darcs2hg.py Thu Nov 16 08:52:55 2006 +0100 +++ b/contrib/darcs2hg.py Fri Nov 17 08:06:54 2006 +0100 @@ -74,8 +74,8 @@ changes = cmd("darcs changes --reverse --xml-output", darcsRepo) doc = xml_dom.parseString(changes) for patch_node in doc.childNodes[0].childNodes: - name = filter(lambda n:n.nodeName == "name", patch_node.childNodes) - comm = filter(lambda n:n.nodeName == "comment", patch_node.childNodes) + name = filter(lambda n: n.nodeName == "name", patch_node.childNodes) + comm = filter(lambda n: n.nodeName == "comment", patch_node.childNodes) if not name:continue else: name = name[0].childNodes[0].data if not comm: comm = "" @@ -87,7 +87,7 @@ def darcs_tip(darcs_repo): changes = cmd("darcs changes",darcs_repo,silent=True) - changes = filter(lambda l:l.strip().startswith("* "), changes.split("\n")) + changes = filter(lambda l: l.strip().startswith("* "), changes.split("\n")) return len(changes) def darcs_pull(hg_repo, darcs_repo, chash):