[PATCH 3 of 3] introduce filenamelog repository layout
Adrian Buehlmann
adrian at cadifra.com
Thu Jul 17 10:37:37 CDT 2008
On 17.07.2008 16:23, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1216299443 -7200
> # Node ID bf5a3cc3036fa42cf02d4dd2a6c18fe04b21c7fe
> # Parent d29d8f832d09a8570a25a68c964baf8572454b75
> introduce filenamelog repository layout
[...]
> diff --git a/mercurial/filelog.py b/mercurial/filelog.py
> --- a/mercurial/filelog.py
> +++ b/mercurial/filelog.py
[...]
> @@ -111,6 +111,39 @@
>
> encodefilename, decodefilename = _buildencodefun()
>
> +_windows_reserved_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 auxencode(path):
> + res = []
> + for n in path.split('/'):
> + if n:
> + base = n.split('.')[0]
> + if base and (base in _windows_reserved_filenames):
> + # encode third letter ('aux' -> 'au~78')'''
TODO: remove ^^^
More information about the Mercurial-devel
mailing list