Cross Forests
/
projects
/
python
/
fast-export.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2491e8
)
checking for - and converting - backslashes
author
Eric Ritchey
<eric@eandjdesign.com>
Thu, 13 Mar 2014 21:32:10 +0000
(14:32 -0700)
committer
Eric Ritchey
<eric@eandjdesign.com>
Thu, 13 Mar 2014 21:32:10 +0000
(14:32 -0700)
hg-fast-export.py
patch
|
blob
|
history
diff --git
a/hg-fast-export.py
b/hg-fast-export.py
index
59d225f
..
cd2a6a2
100755
(executable)
--- 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('/')))