# HG changeset patch # User Matt Mackall # Date 2012-03-16 22:42:21 # Node ID 7887b976650ac839734e0b858650b8f86910d2b1 # Parent 0628290d98dfbbe59d16751486340c0591e7c8d2 convert: deal with empty splicemap path (issue3311) diff --git a/hgext/convert/common.py b/hgext/convert/common.py --- a/hgext/convert/common.py +++ b/hgext/convert/common.py @@ -418,6 +418,8 @@ class mapfile(dict): def parsesplicemap(path): """Parse a splicemap, return a child/parents dictionary.""" + if not path: + return {} m = {} try: fp = open(path, 'r')