Mercurial > hg
comparison hgext/convert/__init__.py @ 4515:86a66cce9566
Fixed python2.3 incompatibility (rsplit) in cvs code of convert extension
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 06 Jun 2007 20:17:03 +0200 |
parents | ac2fe196ac9b |
children | 96d8a56d4ef9 |
comparison
equal
deleted
inserted
replaced
4514:ec889780f28b | 4515:86a66cce9566 |
---|---|
180 c = commit(author=author, date=date, parents=p, | 180 c = commit(author=author, date=date, parents=p, |
181 desc=log, branch=branch) | 181 desc=log, branch=branch) |
182 self.changeset[id] = c | 182 self.changeset[id] = c |
183 self.files[id] = files | 183 self.files[id] = files |
184 else: | 184 else: |
185 file,rev = l[1:-2].rsplit(':',1) | 185 colon = l.rfind(':') |
186 file = l[1:colon] | |
187 rev = l[colon+1:-2] | |
186 rev = rev.split("->")[1] | 188 rev = rev.split("->")[1] |
187 files[file] = rev | 189 files[file] = rev |
188 | 190 |
189 self.heads = self.lastbranch.values() | 191 self.heads = self.lastbranch.values() |
190 finally: | 192 finally: |