Fixed python2.3 incompatibility (rsplit) in cvs code of convert extension
authorThomas Arendsen Hein <thomas@intevation.de>
Wed, 06 Jun 2007 20:17:03 +0200
changeset 4515 86a66cce9566
parent 4514 ec889780f28b
child 4516 96d8a56d4ef9
Fixed python2.3 incompatibility (rsplit) in cvs code of convert extension
hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	Fri May 25 08:12:33 2007 +0200
+++ b/hgext/convert/__init__.py	Wed Jun 06 20:17:03 2007 +0200
@@ -182,7 +182,9 @@
                         self.changeset[id] = c
                         self.files[id] = files
                     else:
-                        file,rev = l[1:-2].rsplit(':',1)
+                        colon = l.rfind(':')
+                        file = l[1:colon]
+                        rev = l[colon+1:-2]
                         rev = rev.split("->")[1]
                         files[file] = rev