checking for - and converting - backslashes
authorEric Ritchey <eric@eandjdesign.com>
Thu, 13 Mar 2014 21:32:10 +0000 (13 14:32 -0700)
committerEric Ritchey <eric@eandjdesign.com>
Thu, 13 Mar 2014 21:32:10 +0000 (13 14:32 -0700)
hg-fast-export.py

index 59d225f..cd2a6a2 100755 (executable)
@@ -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('/')))