# HG changeset patch # User Mads Kiilerich # Date 2013-07-19 12:20:11 # Node ID 3828b3e09462132d205db72bffa4bc7922d3b96f # Parent 1b2f9d36953e6ed384a044c1e73cb3a1aa072004 convert: remove unused and incorrect default handling for revmapfile destc is not a string and can thus not be os.path.join'ed. Convert would crash if we ended up there ... but we wouldn't because both the sinks (hg and subversion) sinks implement .revmapfile and "never" throws exceptions. diff --git a/hgext/convert/convcmd.py b/hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py +++ b/hgext/convert/convcmd.py @@ -516,10 +516,7 @@ def convert(ui, src, dest=None, revmapfi destc.setfilemapmode(True) if not revmapfile: - try: - revmapfile = destc.revmapfile() - except Exception: - revmapfile = os.path.join(destc, "map") + revmapfile = destc.revmapfile() c = converter(ui, srcc, destc, revmapfile, opts) c.convert(sortmode)