From 6d8b4dbb11416fe3143c20160a5ed3362a204dcb Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Sat, 2 Apr 2016 14:59:47 +0200 Subject: [PATCH] Warn if opening a mapping file fails --- hg-fast-export.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hg-fast-export.py b/hg-fast-export.py index 4811cde..ffc6573 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -296,6 +296,7 @@ def export_tags(ui,repo,old_marks,mapping_cache,count,authors,tagsmap): def load_mapping(name, filename): cache={} if not os.path.exists(filename): + sys.stderr.write('Could not open mapping file [%s]\n' % (filename)) return cache f=open(filename,'r') l=0 -- 2.11.4.GIT