--- a/mercurial/patch.py Sat Apr 12 20:51:26 2008 +0200
+++ b/mercurial/patch.py Sat Apr 12 23:05:51 2008 -0400
@@ -789,7 +789,7 @@
pathlen = len(path)
i = 0
if count == 0:
- return path.rstrip()
+ return '', path.rstrip()
while count > 0:
i = path.find('/', i)
if i == -1: