diff hgext/convert/common.py @ 16265:7887b976650a stable

convert: deal with empty splicemap path (issue3311)
author Matt Mackall <mpm@selenic.com>
date Fri, 16 Mar 2012 17:42:21 -0500
parents 9479c28a22bf
children e34106fa0dc3
line wrap: on
line diff
--- a/hgext/convert/common.py	Thu Mar 15 23:02:31 2012 +0000
+++ b/hgext/convert/common.py	Fri Mar 16 17:42:21 2012 -0500
@@ -418,6 +418,8 @@
 
 def parsesplicemap(path):
     """Parse a splicemap, return a child/parents dictionary."""
+    if not path:
+        return {}
     m = {}
     try:
         fp = open(path, 'r')