diff hgext/convert/hg.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 68e0a55eee6e
children fef209e65757
line wrap: on
line diff
--- a/hgext/convert/hg.py	Tue Jul 14 20:24:16 2009 +0200
+++ b/hgext/convert/hg.py	Mon Jul 13 09:50:26 2009 +0900
@@ -183,7 +183,7 @@
             tagparent = nullid
 
         try:
-            oldlines = sorted(parentctx['.hgtags'].data().splitlines(1))
+            oldlines = sorted(parentctx['.hgtags'].data().splitlines(True))
         except:
             oldlines = []