diff mercurial/context.py @ 9136:31177742f54a

for calls expecting bool args, pass bool instead of int str.splitlines and email.message.as_string both expect a bool argument defaulting at False: replace f(1) by f(True) and f(0) by f()
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Mon, 13 Jul 2009 09:50:26 +0900
parents bbc78cb1bf15
children f57640bf10d4
line wrap: on
line diff
--- a/mercurial/context.py	Tue Jul 14 20:24:16 2009 +0200
+++ b/mercurial/context.py	Mon Jul 13 09:50:26 2009 +0900
@@ -443,7 +443,7 @@
                         del hist[p]
             hist[f] = curr
 
-        return zip(hist[f][0], hist[f][1].splitlines(1))
+        return zip(hist[f][0], hist[f][1].splitlines(True))
 
     def ancestor(self, fc2):
         """