Mercurial > hg > mercurial-talk
diff query-languages.tex @ 348:7cef6fdd87b1
The decodes predicate became encoding
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Wed, 20 Jun 2012 17:19:45 +0200 (2012-06-20) |
parents | 33e70647b112 |
children | 0e202b3baaeb |
line wrap: on
line diff
--- a/query-languages.tex +++ b/query-languages.tex @@ -449,12 +449,12 @@ $ hg add "set:unknown() and not binary()" \end{lstlisting} - \item \cmd{decodes()}: check if file can be decoded with the given + \item \cmd{encoding(enc)}: check if file can be decoded with the given character set, such as UTF-8, UTF-16, \dots Lets you find mistakes: \begin{lstlisting} -$ hg status --all "set:glob('**.py') and not decodes('UTF-8')" +$ hg status --all "set:glob('**.py') and not encoding('UTF-8')" C src/foo.py \end{lstlisting}