[PATCH] splicemap should be an optional parameter to convert
stefan at rusek.org
stefan at rusek.org
Wed Feb 11 20:48:10 UTC 2009
# HG changeset patch
# User Stefan Rusek <stefan at rusek.org>
# Date 1234385277 -3600
# Node ID 1e8ee766d64746778b5cce5694414a98e1fea369
# Parent 998fc8f62539ee26601d526803d6da2476129411
splicemap should be an optional parameter to convert
I found this while trying to convert HG -> HG. If I specified a splicemap then
it would succeed, but without a splicemap it would crash with an unhelpful
message.
diff --git a/hgext/convert/convcmd.py b/hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py
+++ b/hgext/convert/convcmd.py
@@ -88,7 +88,8 @@
self.readauthormap(opts.get('authors'))
self.authorfile = self.dest.authorfile()
- self.splicemap = mapfile(ui, opts.get('splicemap'))
+ if opts.get('splicemap'):
+ self.splicemap = mapfile(ui, opts.get('splicemap'))
def walktree(self, heads):
'''Return a mapping that identifies the uncommitted parents of every
More information about the Mercurial-devel
mailing list