# HG changeset patch # User Stefan Rusek # Date 2009-02-11 20:47:57 # Node ID 3b8f2750efcfa548849f7ac6001e9724d2c65f57 # Parent 607de5bd3578737a018663c77c2a70184ba5aebb Handle when the slicemap option is an empty string In the cmdtable for the convert extension, the default value for splicefile is empty string, while mapfile (the class that reads splicemaps) expects either a real path or None. This patch changes mapfile to expect a real path or logical false (False, None, empty string, etc.) diff --git a/hgext/convert/common.py b/hgext/convert/common.py --- a/hgext/convert/common.py +++ b/hgext/convert/common.py @@ -325,7 +325,7 @@ class mapfile(dict): self._read() def _read(self): - if self.path is None: + if not self.path: return try: fp = open(self.path, 'r')