mercurial/patch.py
changeset 6531 c2c4fa9af016
parent 6470 ac0bcd951c2c
parent 6520 ba0b2dacc623
child 6532 833be17000b6
--- 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: