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