Mercurial > hg
changeset 19889:3828b3e09462
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.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 19 Jul 2013 14:20:11 +0200 |
parents | 1b2f9d36953e |
children | 9057855d8749 |
files | hgext/convert/convcmd.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/convcmd.py Mon Sep 30 18:27:42 2013 -0700 +++ b/hgext/convert/convcmd.py Fri Jul 19 14:20:11 2013 +0200 @@ -516,10 +516,7 @@ 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)