Mercurial > hg
view contrib/wix/locale.wxs @ 37775:03d7f885d5f2
revsetlang: do not pass in non-bytes to parse()
Since parse() isn't a simple function, we shouldn't expect it would raise
TypeError or ValueError for invalid inputs. Before, TypeError was raised
at 'if pos != len(spec)', which was quite late to report an error.
This patch also makes tokenize() detect invalid object before converting
it to a py3-safe bytes.
Spotted while adding the 'revset(...)' hack to _parsewith().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 17 Apr 2018 21:59:58 +0900 |
parents | 14e8fef9158d |
children |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <?include defines.wxi ?> <?define hglocales = da;de;el;fr;it;ja;pt_BR;ro;ru;sv;zh_CN;zh_TW ?> <Fragment> <ComponentGroup Id="localeFolder"> <?foreach LOC in $(var.hglocales) ?> <ComponentRef Id="hg.locale.$(var.LOC)"/> <?endforeach?> </ComponentGroup> </Fragment> <Fragment> <DirectoryRef Id="INSTALLDIR"> <Directory Id="localedir" Name="locale" FileSource="$(var.SourceDir)"> <?foreach LOC in $(var.hglocales) ?> <Directory Id="hg.locale.$(var.LOC)" Name="$(var.LOC)"> <Directory Id="hg.locale.$(var.LOC).LC_MESSAGES" Name="LC_MESSAGES"> <Component Id="hg.locale.$(var.LOC)" Guid="*" Win64='$(var.IsX64)'> <File Id="hg.mo.$(var.LOC)" Name="hg.mo" KeyPath="yes" /> </Component> </Directory> </Directory> <?endforeach?> </Directory> </DirectoryRef> </Fragment> </Wix>