summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrej <frej.drejhammar@gmail.com>2012-05-20 10:31:40 -0700
committerfrej <frej.drejhammar@gmail.com>2012-05-20 10:31:40 -0700
commitd311f7fbc7f4e68d41ffa16ba9d9430fa4b63b4d (patch)
tree1b7f9970b73da36128579baf712db00f95d442d1
parentb2f6d28722b04c51d21a26f3aebec8c3e5aae72e (diff)
parent8f6adfd07c5df3ae790cc0fcfe0fdda529fd70a1 (diff)
downloadhg-fast-export-d311f7fbc7f4e68d41ffa16ba9d9430fa4b63b4d.tar.gz
Merge pull request #4 from aried3r/master
Fixed a bug related to sanitizing branch names.
-rwxr-xr-xhg-fast-export.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hg-fast-export.py b/hg-fast-export.py
index 2da0289..49b2add 100755
--- a/hg-fast-export.py
+++ b/hg-fast-export.py
@@ -140,7 +140,7 @@ def sanitize_name(name,what="branch"):
n=name
p=re.compile('([[ ~^:?*]|\.\.)')
n=p.sub('_', n)
- if n[-1] == '/': n=n[:-1]+'_'
+ if n[-1] in ('/', '.'): n=n[:-1]+'_'
n='/'.join(map(dot,n.split('/')))
p=re.compile('_+')
n=p.sub('_', n)