# HG changeset patch # User Martin Geisler # Date 1340205080 -7200 # Node ID a4b368f0b3f0fa7a50e0569961ba98f0e4635081 # Parent 9c50a8f94f94319dd3cd219762b2688456dc89ae Explain that diff applies min/max diff --git a/query-languages.tex b/query-languages.tex --- 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