diff mercurial/patch.py @ 6520:ba0b2dacc623

fix import with -p0
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 12 Apr 2008 22:41:07 -0400
parents 65029a3aafc2
children c2c4fa9af016 bbd89c9e6012
line wrap: on
line diff
--- 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: