Show More
@@ -90,13 +90,14 b' class pathauditor:' | |||||
90 | _(b"path contains illegal component: %s") % path |
|
90 | _(b"path contains illegal component: %s") % path | |
91 | ) |
|
91 | ) | |
92 | # Windows shortname aliases |
|
92 | # Windows shortname aliases | |
93 |
f |
|
93 | if b"~" in path: | |
94 |
|
|
94 | for p in parts: | |
95 |
|
|
95 | if b"~" in p: | |
96 | if last.isdigit() and first.upper() in [b"HG", b"HG8B6C"]: |
|
96 | first, last = p.split(b"~", 1) | |
97 | raise error.InputError( |
|
97 | if last.isdigit() and first.upper() in [b"HG", b"HG8B6C"]: | |
98 | _(b"path contains illegal component: %s") % path |
|
98 | raise error.InputError( | |
99 | ) |
|
99 | _(b"path contains illegal component: %s") % path | |
|
100 | ) | |||
100 | if b'.hg' in _lowerclean(path): |
|
101 | if b'.hg' in _lowerclean(path): | |
101 | lparts = [_lowerclean(p) for p in parts] |
|
102 | lparts = [_lowerclean(p) for p in parts] | |
102 | for p in b'.hg', b'.hg.': |
|
103 | for p in b'.hg', b'.hg.': |
General Comments 0
You need to be logged in to leave comments.
Login now