Mercurial > hg > mercurial-talk
changeset 343:a4b368f0b3f0
Explain that diff applies min/max
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Wed, 20 Jun 2012 17:11:20 +0200 |
parents | 9c50a8f94f94 |
children | 0fac0c3cf747 |
files | query-languages.tex |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/query-languages.tex +++ b/query-languages.tex @@ -277,11 +277,21 @@ % \end{itemize} %\end{frame} -\begin{frame}{Final Touches on Your Query} +\begin{frame}[fragile]{Final Touches on Your Query} Trimming, cutting, manipulating the set: \begin{itemize}[<+->] \item \cmd{max(set)}, \cmd{min(set)}: the changeset with minimum/maximum revision number in the set + + Commands that need two revisions apply this as needed: +\begin{lstlisting} +$ hg diff -r "not public()" +\end{lstlisting} +behaves like +\begin{lstlisting} +$ hg diff -r "min(not public())" -r "max(not public())" +\end{lstlisting} + \item \cmd{reverse(set)}: the ``set'' is ordered; this reverses it \item \cmd{limit(set, n)}, \cmd{last(set, n)}: the first/last $n$ changesets