From: Eric Ritchey Date: Thu, 13 Mar 2014 21:32:10 +0000 (-0700) Subject: checking for - and converting - backslashes X-Git-Tag: v160415~25^2 X-Git-Url: https://repo.or.cz/w/fast-export.git/commitdiff_plain/7b4729ddc8ebc247f549ad5fd52ab8c48d889c3d checking for - and converting - backslashes --- 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('/')))