changeset 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 0628290d98df
children 2338ab19b236
files hgext/convert/common.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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')