mercurial/patch.py
changeset 6520 ba0b2dacc623
parent 6467 65029a3aafc2
child 6531 c2c4fa9af016
child 6791 bbd89c9e6012
--- a/mercurial/patch.py	Sat Apr 12 21:08:03 2008 +0200
+++ b/mercurial/patch.py	Sat Apr 12 22:41:07 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: