From 7b4729ddc8ebc247f549ad5fd52ab8c48d889c3d Mon Sep 17 00:00:00 2001 From: Eric Ritchey Date: Thu, 13 Mar 2014 14:32:10 -0700 Subject: [PATCH] checking for - and converting - backslashes --- hg-fast-export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg-fast-export.py b/hg-fast-export.py index 59d225f..cd2a6a2 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -145,7 +145,7 @@ def sanitize_name(name,what="branch"): return name n=name - p=re.compile('([[ ~^:?*]|\.\.)') + p=re.compile('([[ ~^:?\\\\*]|\.\.)') n=p.sub('_', n) if n[-1] in ('/', '.'): n=n[:-1]+'_' n='/'.join(map(dot,n.split('/'))) -- 2.11.4.GIT