From: Eric Ritchey Date: Thu, 13 Mar 2014 21:32:10 +0000 (-0700) Subject: checking for - and converting - backslashes X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=7b4729ddc8ebc247f549ad5fd52ab8c48d889c3d;p=python%2Ffast-export.git 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('/')))