--- a/mercurial/patch.py Sun Sep 17 12:20:35 2017 +0900
+++ b/mercurial/patch.py Sun Sep 17 12:23:16 2017 +0900
@@ -1490,7 +1490,7 @@
... 5
... d
... +lastline"""
- >>> hunks = parsepatch(rawpatch)
+ >>> hunks = parsepatch([rawpatch])
>>> hunkscomingfromfilterpatch = []
>>> for h in hunks:
... hunkscomingfromfilterpatch.append(h)
@@ -1501,7 +1501,7 @@
>>> fp = util.stringio()
>>> for c in reversedhunks:
... c.write(fp)
- >>> fp.seek(0)
+ >>> fp.seek(0) or None
>>> reversedpatch = fp.read()
>>> print(pycompat.sysstr(reversedpatch))
diff --git a/folder1/g b/folder1/g