##// END OF EJS Templates
help: explain that revsets can be used where 1 or 2 revs are wanted...
Martin von Zweigbergk -
r30771:c2cbc1b0 default
parent child Browse files
Show More
@@ -29,6 +29,12 b' working directory is checked out, it is '
29 uncommitted merge is in progress, "." is the revision of the first
29 uncommitted merge is in progress, "." is the revision of the first
30 parent.
30 parent.
31
31
32 Finally, commands that expect a single revision (like ``hg update``) also
33 accept revsets (see below for details). When given a revset, they use the
34 last revision of the revset. A few commands accept two single revisions
35 (like ``hg diff``). When given a revset, they use the first and the last
36 revisions of the revset.
37
32 Specifying multiple revisions
38 Specifying multiple revisions
33 =============================
39 =============================
34
40
@@ -188,3 +194,13 b' Some sample queries:'
188 release::
194 release::
189
195
190 hg log -r "(keyword(bug) or keyword(issue)) and not ancestors(tag())"
196 hg log -r "(keyword(bug) or keyword(issue)) and not ancestors(tag())"
197
198 - Update to commit that bookmark @ is pointing too, without activating the
199 bookmark (this works because the last revision of the revset is used)::
200
201 hg update :@
202
203 - Show diff between tags 1.3 and 1.5 (this works because the first and the
204 last revisions of the revset are used)::
205
206 hg diff -r 1.3::1.5
@@ -731,14 +731,14 b' Test help topic with same name as extens'
731 $ echo "multirevs = multirevs.py" >> $HGRCPATH
731 $ echo "multirevs = multirevs.py" >> $HGRCPATH
732
732
733 $ hg help multirevs | tail
733 $ hg help multirevs | tail
734 bookmark (this works because the last revision of the revset is used):
734
735
735 - Changesets committed in May 2008, sorted by user:
736 hg update :@
736
737
737 hg log -r "sort(date('May 2008'), user)"
738 - Show diff between tags 1.3 and 1.5 (this works because the first and the
739 last revisions of the revset are used):
738
740
739 - Changesets mentioning "bug" or "issue" that are not in a tagged release:
741 hg diff -r 1.3::1.5
740
741 hg log -r "(keyword(bug) or keyword(issue)) and not ancestors(tag())"
742
742
743 use 'hg help -c multirevs' to see help for the multirevs command
743 use 'hg help -c multirevs' to see help for the multirevs command
744
744
General Comments 0
You need to be logged in to leave comments. Login now