[PATCH] clone/pull: abort on reserved filenames on Windows (2nd update)
Paul Moore
p.f.moore at gmail.com
Fri Jun 13 08:54:29 CDT 2008
On 13/06/2008, Adrian Buehlmann <adrian at cadifra.com> wrote:
> --- a/mercurial/util.py Thu Jun 12 07:38:15 2008 -0500
> +++ b/mercurial/util.py Fri Jun 13 11:50:46 2008 +0200
> @@ -936,10 +936,23 @@
> def lookup_reg(key, name=None, scope=None):
> return None
>
> +_reserved_windows_filenames = '''CON PRN AUX NUL
> + COM1 COM2 COM3 COM4 COM5 COM6 COM7 COM8 COM9
> + LPT1 LPT2 LPT3 LPT4 LPT5 LPT6 LPT7 LPT8 LPT9'''.split()
> +def win_unsupported_path(p):
You should also be able to put an override for unsupported_path in
util_win32.py - this is read after the generic definition, and will
override it.
Sorry I can't be more specific at the moment, I don't have sources to
check against.
Paul.
More information about the Mercurial-devel
mailing list