convert: deal with empty splicemap path (issue3311) stable
authorMatt Mackall <mpm@selenic.com>
Fri, 16 Mar 2012 17:42:21 -0500
branchstable
changeset 16265 7887b976650a
parent 16264 0628290d98df
child 16270 2338ab19b236
convert: deal with empty splicemap path (issue3311)
hgext/convert/common.py
--- 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')