[Python-checkins] pymigr: Fix split.py
antoine.pitrou
python-checkins at python.org
Thu Feb 24 02:08:50 CET 2011
antoine.pitrou pushed cd1527a081be to pymigr:
http://hg.python.org/pymigr/rev/cd1527a081be
changeset: 89:cd1527a081be
parent: 87:ff58f39081e3
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Feb 23 19:05:28 2011 +0100
summary:
Fix split.py
files:
split.py
diff --git a/split.py b/split.py
--- a/split.py
+++ b/split.py
@@ -16,7 +16,10 @@
for n in repo.heads():
ctx = repo[n]
- path = ctx.extra()['convert_revision'].split('/', 1)[1]
+ convert_revision = ctx.extra().get('convert_revision')
+ if not convert_revision:
+ continue
+ path = convert_revision.split('/', 1)[1]
path = path.rsplit('@', 1)[0]
tags = ctx.tags()
--
Repository URL: http://hg.python.org/pymigr
More information about the Python-checkins
mailing list