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.)
--- a/hgext/convert/common.py Sun Feb 08 13:46:04 2009 +0100
+++ b/hgext/convert/common.py Wed Feb 11 21:47:57 2009 +0100
@@ -325,7 +325,7 @@
self._read()
def _read(self):
- if self.path is None:
+ if not self.path:
return
try:
fp = open(self.path, 'r')