[PATCH 2 of 3] revsets: add descriptions for sample queries in the help

Brodie Rao brodie at bitheap.org
Sat Oct 9 12:01:08 CDT 2010


# HG changeset patch
# User Brodie Rao <brodie at bitheap.org>
# Date 1286643282 18000
# Node ID cbdfd6488f5f7ea98cbdc2301716ce1118192add
# Parent  7de9033167f35abe01eed2220cb616ad1a9a744f
revsets: add descriptions for sample queries in the help

diff --git a/mercurial/help/revsets.txt b/mercurial/help/revsets.txt
--- a/mercurial/help/revsets.txt
+++ b/mercurial/help/revsets.txt
@@ -168,10 +168,26 @@ Command line equivalents for :hg:`log`::
   -P x  ->  !::x
   -l x  ->  limit(expr, x)
 
-Some sample queries::
+Some sample queries:
 
-  hg log -r 'branch(default)'
-  hg log -r 'branch(default) and 1.5:: and not merge()'
-  hg log -r '1.3::1.5 and keyword(bug) and file("hgext/*")'
-  hg log -r 'sort(date("May 2008"), user)'
-  hg log -r '(keyword(bug) or keyword(issue)) and not ancestors(tagged())'
+- Changesets on the default branch::
+
+    hg log -r 'branch(default)'
+
+- Changesets on the default branch since tag 1.5 (excluding merges)::
+
+    hg log -r 'branch(default) and 1.5:: and not merge()'
+
+- Changesets between tags 1.3 and 1.5 mentioning "bug" that affect
+  hgext/*::
+
+    hg log -r '1.3::1.5 and keyword(bug) and file("hgext/*")'
+
+- Changesets in committed May 2008, sorted by user::
+
+    hg log -r 'sort(date("May 2008"), user)'
+
+- Changesets mentioning "bug" or "issue" that are not in a tagged
+  release::
+
+    hg log -r '(keyword(bug) or keyword(issue)) and not ancestors(tagged())'


More information about the Mercurial-devel mailing list