author | Gregory Szorc <gregory.szorc@gmail.com> |
Mon, 22 Aug 2016 20:17:36 -0700 | |
changeset 29829 | dae97049345b |
parent 29780 | 531e85eec23c |
child 29905 | 371c2a39eead |
permissions | -rw-r--r-- |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1 |
$ HGENCODING=utf-8 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2 |
$ export HGENCODING |
24940
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
3 |
$ cat > testrevset.py << EOF |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
4 |
> import mercurial.revset |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
5 |
> |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
6 |
> baseset = mercurial.revset.baseset |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
7 |
> |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
8 |
> def r3232(repo, subset, x): |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
9 |
> """"simple revset that return [3,2,3,2] |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
10 |
> |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
11 |
> revisions duplicated on purpose. |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
12 |
> """ |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
13 |
> if 3 not in subset: |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
14 |
> if 2 in subset: |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
15 |
> return baseset([2,2]) |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
16 |
> return baseset() |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
17 |
> return baseset([3,3,2,2]) |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
18 |
> |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
19 |
> mercurial.revset.symbols['r3232'] = r3232 |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
20 |
> EOF |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
21 |
$ cat >> $HGRCPATH << EOF |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
22 |
> [extensions] |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
23 |
> testrevset=$TESTTMP/testrevset.py |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
24 |
> EOF |
11409
7a6ac83a15b0
revset: add some tests
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
diff
changeset
|
25 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
26 |
$ try() { |
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
27 |
> hg debugrevspec --debug "$@" |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
28 |
> } |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
29 |
|
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
30 |
$ log() { |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
31 |
> hg log --template '{rev}\n' -r "$1" |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
32 |
> } |
11419 | 33 |
|
29390
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
34 |
extension to build '_intlist()' and '_hexlist()', which is necessary because |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
35 |
these predicates use '\0' as a separator: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
36 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
37 |
$ cat <<EOF > debugrevlistspec.py |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
38 |
> from __future__ import absolute_import |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
39 |
> from mercurial import ( |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
40 |
> cmdutil, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
41 |
> node as nodemod, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
42 |
> revset, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
43 |
> ) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
44 |
> cmdtable = {} |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
45 |
> command = cmdutil.command(cmdtable) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
46 |
> @command('debugrevlistspec', |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
47 |
> [('', 'optimize', None, 'print parsed tree after optimizing'), |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
48 |
> ('', 'bin', None, 'unhexlify arguments')]) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
49 |
> def debugrevlistspec(ui, repo, fmt, *args, **opts): |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
50 |
> if opts['bin']: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
51 |
> args = map(nodemod.bin, args) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
52 |
> expr = revset.formatspec(fmt, list(args)) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
53 |
> if ui.verbose: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
54 |
> tree = revset.parse(expr, lookup=repo.__contains__) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
55 |
> ui.note(revset.prettyformat(tree), "\n") |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
56 |
> if opts["optimize"]: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
57 |
> opttree = revset.optimize(tree) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
58 |
> ui.note("* optimized:\n", revset.prettyformat(opttree), "\n") |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
59 |
> func = revset.match(ui, expr, repo) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
60 |
> revs = func(repo) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
61 |
> if ui.verbose: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
62 |
> ui.note("* set:\n", revset.prettyformatset(revs), "\n") |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
63 |
> for c in revs: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
64 |
> ui.write("%s\n" % c) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
65 |
> EOF |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
66 |
$ cat <<EOF >> $HGRCPATH |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
67 |
> [extensions] |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
68 |
> debugrevlistspec = $TESTTMP/debugrevlistspec.py |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
69 |
> EOF |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
70 |
$ trylist() { |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
71 |
> hg debugrevlistspec --debug "$@" |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
72 |
> } |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
73 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
74 |
$ hg init repo |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
75 |
$ cd repo |
11419 | 76 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
77 |
$ echo a > a |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
78 |
$ hg branch a |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
79 |
marked working directory as branch a |
15615 | 80 |
(branches are permanent and global, did you want a bookmark?) |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
81 |
$ hg ci -Aqm0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
82 |
|
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
83 |
$ echo b > b |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
84 |
$ hg branch b |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
85 |
marked working directory as branch b |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
86 |
$ hg ci -Aqm1 |
11409
7a6ac83a15b0
revset: add some tests
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
diff
changeset
|
87 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
88 |
$ rm a |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
89 |
$ hg branch a-b-c- |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
90 |
marked working directory as branch a-b-c- |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
91 |
$ hg ci -Aqm2 -u Bob |
11419 | 92 |
|
16661
de4b42daf396
revset: add function for matching extra data (issue2767)
Henrik Stuart <hg@hstuart.dk>
parents:
16640
diff
changeset
|
93 |
$ hg log -r "extra('branch', 'a-b-c-')" --template '{rev}\n' |
de4b42daf396
revset: add function for matching extra data (issue2767)
Henrik Stuart <hg@hstuart.dk>
parents:
16640
diff
changeset
|
94 |
2 |
de4b42daf396
revset: add function for matching extra data (issue2767)
Henrik Stuart <hg@hstuart.dk>
parents:
16640
diff
changeset
|
95 |
$ hg log -r "extra('branch')" --template '{rev}\n' |
de4b42daf396
revset: add function for matching extra data (issue2767)
Henrik Stuart <hg@hstuart.dk>
parents:
16640
diff
changeset
|
96 |
0 |
de4b42daf396
revset: add function for matching extra data (issue2767)
Henrik Stuart <hg@hstuart.dk>
parents:
16640
diff
changeset
|
97 |
1 |
de4b42daf396
revset: add function for matching extra data (issue2767)
Henrik Stuart <hg@hstuart.dk>
parents:
16640
diff
changeset
|
98 |
2 |
16824
f3b8c82a559c
revset: add pattern matching to 'extra' revset expression
Simon King <simon@simonking.org.uk>
parents:
16823
diff
changeset
|
99 |
$ hg log -r "extra('branch', 're:a')" --template '{rev} {branch}\n' |
f3b8c82a559c
revset: add pattern matching to 'extra' revset expression
Simon King <simon@simonking.org.uk>
parents:
16823
diff
changeset
|
100 |
0 a |
f3b8c82a559c
revset: add pattern matching to 'extra' revset expression
Simon King <simon@simonking.org.uk>
parents:
16823
diff
changeset
|
101 |
2 a-b-c- |
16661
de4b42daf396
revset: add function for matching extra data (issue2767)
Henrik Stuart <hg@hstuart.dk>
parents:
16640
diff
changeset
|
102 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
103 |
$ hg co 1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
104 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
105 |
$ hg branch +a+b+c+ |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
106 |
marked working directory as branch +a+b+c+ |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
107 |
$ hg ci -Aqm3 |
11419 | 108 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
109 |
$ hg co 2 # interleave |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
110 |
0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
111 |
$ echo bb > b |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
112 |
$ hg branch -- -a-b-c- |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
113 |
marked working directory as branch -a-b-c- |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
114 |
$ hg ci -Aqm4 -d "May 12 2005" |
11419 | 115 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
116 |
$ hg co 3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
117 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
16851
c739227b5eea
test-revset: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
16824
diff
changeset
|
118 |
$ hg branch !a/b/c/ |
c739227b5eea
test-revset: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
16824
diff
changeset
|
119 |
marked working directory as branch !a/b/c/ |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
120 |
$ hg ci -Aqm"5 bug" |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
121 |
|
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
122 |
$ hg merge 4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
123 |
1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
124 |
(branch merge, don't forget to commit) |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
125 |
$ hg branch _a_b_c_ |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
126 |
marked working directory as branch _a_b_c_ |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
127 |
$ hg ci -Aqm"6 issue619" |
11419 | 128 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
129 |
$ hg branch .a.b.c. |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
130 |
marked working directory as branch .a.b.c. |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
131 |
$ hg ci -Aqm7 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
132 |
|
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
133 |
$ hg branch all |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
134 |
marked working directory as branch all |
11419 | 135 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
136 |
$ hg co 4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
137 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
138 |
$ hg branch é |
12942
05fffd665170
tests: use (esc) for all non-ASCII test output
Mads Kiilerich <mads@kiilerich.com>
parents:
12786
diff
changeset
|
139 |
marked working directory as branch \xc3\xa9 (esc) |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
140 |
$ hg ci -Aqm9 |
11419 | 141 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
142 |
$ hg tag -r6 1.0 |
24904
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
143 |
$ hg bookmark -r6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
11419 | 144 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
145 |
$ hg clone --quiet -U -r 7 . ../remote1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
146 |
$ hg clone --quiet -U -r 8 . ../remote2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
147 |
$ echo "[paths]" >> .hg/hgrc |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
148 |
$ echo "default = ../remote1" >> .hg/hgrc |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
149 |
|
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
150 |
trivial |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
151 |
|
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
152 |
$ try 0:1 |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
153 |
(range |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
154 |
('symbol', '0') |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
155 |
('symbol', '1')) |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
156 |
* set: |
24459
7d369fae098e
revset: optimize "x & fullreposet" case
Yuya Nishihara <yuya@tcha.org>
parents:
24458
diff
changeset
|
157 |
<spanset+ 0:1> |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
158 |
0 |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
159 |
1 |
25819
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
160 |
$ try --optimize : |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
161 |
(rangeall |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
162 |
None) |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
163 |
* optimized: |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
164 |
(range |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
165 |
('string', '0') |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
166 |
('string', 'tip')) |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
167 |
* set: |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
168 |
<spanset+ 0:9> |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
169 |
0 |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
170 |
1 |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
171 |
2 |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
172 |
3 |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
173 |
4 |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
174 |
5 |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
175 |
6 |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
176 |
7 |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
177 |
8 |
be29d26e2949
revset: parse nullary ":" operator as "0:tip"
Yuya Nishihara <yuya@tcha.org>
parents:
25766
diff
changeset
|
178 |
9 |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
179 |
$ try 3::6 |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
180 |
(dagrange |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
181 |
('symbol', '3') |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
182 |
('symbol', '6')) |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
183 |
* set: |
26061
be8a4e0800d8
reachableroots: use baseset lazy sorting
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26020
diff
changeset
|
184 |
<baseset+ [3, 5, 6]> |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
185 |
3 |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
186 |
5 |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
187 |
6 |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
188 |
$ try '0|1|2' |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
189 |
(or |
25309
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
190 |
('symbol', '0') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
191 |
('symbol', '1') |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
192 |
('symbol', '2')) |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
193 |
* set: |
25343
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
194 |
<baseset [0, 1, 2]> |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
195 |
0 |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
196 |
1 |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
197 |
2 |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
198 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
199 |
names that should work without quoting |
11419 | 200 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
201 |
$ try a |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
202 |
('symbol', 'a') |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
203 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
204 |
<baseset [0]> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
205 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
206 |
$ try b-a |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
207 |
(minus |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
208 |
('symbol', 'b') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
209 |
('symbol', 'a')) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
210 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
211 |
<filteredset |
28423
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
212 |
<baseset [1]>, |
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
213 |
<not |
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
214 |
<baseset [0]>>> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
215 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
216 |
$ try _a_b_c_ |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
217 |
('symbol', '_a_b_c_') |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
218 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
219 |
<baseset [6]> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
220 |
6 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
221 |
$ try _a_b_c_-a |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
222 |
(minus |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
223 |
('symbol', '_a_b_c_') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
224 |
('symbol', 'a')) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
225 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
226 |
<filteredset |
28423
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
227 |
<baseset [6]>, |
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
228 |
<not |
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
229 |
<baseset [0]>>> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
230 |
6 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
231 |
$ try .a.b.c. |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
232 |
('symbol', '.a.b.c.') |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
233 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
234 |
<baseset [7]> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
235 |
7 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
236 |
$ try .a.b.c.-a |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
237 |
(minus |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
238 |
('symbol', '.a.b.c.') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
239 |
('symbol', 'a')) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
240 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
241 |
<filteredset |
28423
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
242 |
<baseset [7]>, |
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
243 |
<not |
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
244 |
<baseset [0]>>> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
245 |
7 |
25901
0203c50a589f
debugrevspec: pass lookup function to visualize fallback mechanism
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
246 |
|
0203c50a589f
debugrevspec: pass lookup function to visualize fallback mechanism
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
247 |
names that should be caught by fallback mechanism |
0203c50a589f
debugrevspec: pass lookup function to visualize fallback mechanism
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
248 |
|
0203c50a589f
debugrevspec: pass lookup function to visualize fallback mechanism
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
249 |
$ try -- '-a-b-c-' |
25902
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
250 |
('symbol', '-a-b-c-') |
25901
0203c50a589f
debugrevspec: pass lookup function to visualize fallback mechanism
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
251 |
* set: |
0203c50a589f
debugrevspec: pass lookup function to visualize fallback mechanism
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
252 |
<baseset [4]> |
0203c50a589f
debugrevspec: pass lookup function to visualize fallback mechanism
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
253 |
4 |
0203c50a589f
debugrevspec: pass lookup function to visualize fallback mechanism
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
254 |
$ log -a-b-c- |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
255 |
4 |
25902
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
256 |
$ try '+a+b+c+' |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
257 |
('symbol', '+a+b+c+') |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
258 |
* set: |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
259 |
<baseset [3]> |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
260 |
3 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
261 |
$ try '+a+b+c+:' |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
262 |
(rangepost |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
263 |
('symbol', '+a+b+c+')) |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
264 |
* set: |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
265 |
<spanset+ 3:9> |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
266 |
3 |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
267 |
4 |
25902
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
268 |
5 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
269 |
6 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
270 |
7 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
271 |
8 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
272 |
9 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
273 |
$ try ':+a+b+c+' |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
274 |
(rangepre |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
275 |
('symbol', '+a+b+c+')) |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
276 |
* set: |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
277 |
<spanset+ 0:3> |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
278 |
0 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
279 |
1 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
280 |
2 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
281 |
3 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
282 |
$ try -- '-a-b-c-:+a+b+c+' |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
283 |
(range |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
284 |
('symbol', '-a-b-c-') |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
285 |
('symbol', '+a+b+c+')) |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
286 |
* set: |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
287 |
<spanset- 3:4> |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
288 |
4 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
289 |
3 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
290 |
$ log '-a-b-c-:+a+b+c+' |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
291 |
4 |
5214cbdc37e5
revset: port parsing rule of old-style ranges from scmutil.revrange()
Yuya Nishihara <yuya@tcha.org>
parents:
25901
diff
changeset
|
292 |
3 |
20781
8ecfa225bd16
revrange: pass repo to revset parser
Matt Mackall <mpm@selenic.com>
parents:
20736
diff
changeset
|
293 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
294 |
$ try -- -a-b-c--a # complains |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
295 |
(minus |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
296 |
(minus |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
297 |
(minus |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
298 |
(negate |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
299 |
('symbol', 'a')) |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
300 |
('symbol', 'b')) |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
301 |
('symbol', 'c')) |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
302 |
(negate |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
303 |
('symbol', 'a'))) |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
304 |
abort: unknown revision '-a'! |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12105
diff
changeset
|
305 |
[255] |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
306 |
$ try é |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
307 |
('symbol', '\xc3\xa9') |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
308 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
309 |
<baseset [9]> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
310 |
9 |
11419 | 311 |
|
20781
8ecfa225bd16
revrange: pass repo to revset parser
Matt Mackall <mpm@selenic.com>
parents:
20736
diff
changeset
|
312 |
no quoting needed |
8ecfa225bd16
revrange: pass repo to revset parser
Matt Mackall <mpm@selenic.com>
parents:
20736
diff
changeset
|
313 |
|
8ecfa225bd16
revrange: pass repo to revset parser
Matt Mackall <mpm@selenic.com>
parents:
20736
diff
changeset
|
314 |
$ log ::a-b-c- |
8ecfa225bd16
revrange: pass repo to revset parser
Matt Mackall <mpm@selenic.com>
parents:
20736
diff
changeset
|
315 |
0 |
8ecfa225bd16
revrange: pass repo to revset parser
Matt Mackall <mpm@selenic.com>
parents:
20736
diff
changeset
|
316 |
1 |
8ecfa225bd16
revrange: pass repo to revset parser
Matt Mackall <mpm@selenic.com>
parents:
20736
diff
changeset
|
317 |
2 |
8ecfa225bd16
revrange: pass repo to revset parser
Matt Mackall <mpm@selenic.com>
parents:
20736
diff
changeset
|
318 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
319 |
quoting needed |
11419 | 320 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
321 |
$ try '"-a-b-c-"-a' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
322 |
(minus |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
323 |
('string', '-a-b-c-') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
324 |
('symbol', 'a')) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
325 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
326 |
<filteredset |
28423
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
327 |
<baseset [4]>, |
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
328 |
<not |
0d79d91ba7e3
revset: add extra data to filteredset for better inspection
Yuya Nishihara <yuya@tcha.org>
parents:
28394
diff
changeset
|
329 |
<baseset [0]>>> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
330 |
4 |
11882
b75dea24e296
revset: fix outgoing argument handling
Wagner Bruna <wbruna@softwareexpress.com.br>
parents:
11650
diff
changeset
|
331 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
332 |
$ log '1 or 2' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
333 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
334 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
335 |
$ log '1|2' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
336 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
337 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
338 |
$ log '1 and 2' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
339 |
$ log '1&2' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
340 |
$ try '1&2|3' # precedence - and is higher |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
341 |
(or |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
342 |
(and |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
343 |
('symbol', '1') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
344 |
('symbol', '2')) |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
345 |
('symbol', '3')) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
346 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
347 |
<addset |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
348 |
<baseset []>, |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
349 |
<baseset [3]>> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
350 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
351 |
$ try '1|2&3' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
352 |
(or |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
353 |
('symbol', '1') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
354 |
(and |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
355 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
356 |
('symbol', '3'))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
357 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
358 |
<addset |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
359 |
<baseset [1]>, |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
360 |
<baseset []>> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
361 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
362 |
$ try '1&2&3' # associativity |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
363 |
(and |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
364 |
(and |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
365 |
('symbol', '1') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
366 |
('symbol', '2')) |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
367 |
('symbol', '3')) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
368 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
369 |
<baseset []> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
370 |
$ try '1|(2|3)' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
371 |
(or |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
372 |
('symbol', '1') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
373 |
(group |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
374 |
(or |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
375 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
376 |
('symbol', '3')))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
377 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
378 |
<addset |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
379 |
<baseset [1]>, |
25343
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
380 |
<baseset [2, 3]>> |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
381 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
382 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
383 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
384 |
$ log '1.0' # tag |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
385 |
6 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
386 |
$ log 'a' # branch |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
387 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
388 |
$ log '2785f51ee' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
389 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
390 |
$ log 'date(2005)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
391 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
392 |
$ log 'date(this is a test)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
393 |
hg: parse error at 10: unexpected token: symbol |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12105
diff
changeset
|
394 |
[255] |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
395 |
$ log 'date()' |
12736
7e14e67e6622
revset: use 'requires' instead of 'wants' in error message
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
12716
diff
changeset
|
396 |
hg: parse error: date requires a string |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12105
diff
changeset
|
397 |
[255] |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
398 |
$ log 'date' |
24932
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
399 |
abort: unknown revision 'date'! |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12105
diff
changeset
|
400 |
[255] |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
401 |
$ log 'date(' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
402 |
hg: parse error at 5: not a prefix: end |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12105
diff
changeset
|
403 |
[255] |
26232
43f9976346e9
revset: handle error of string unescaping
Yuya Nishihara <yuya@tcha.org>
parents:
26061
diff
changeset
|
404 |
$ log 'date("\xy")' |
43f9976346e9
revset: handle error of string unescaping
Yuya Nishihara <yuya@tcha.org>
parents:
26061
diff
changeset
|
405 |
hg: parse error: invalid \x escape |
43f9976346e9
revset: handle error of string unescaping
Yuya Nishihara <yuya@tcha.org>
parents:
26061
diff
changeset
|
406 |
[255] |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
407 |
$ log 'date(tip)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
408 |
abort: invalid date: 'tip' |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12105
diff
changeset
|
409 |
[255] |
24932
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
410 |
$ log '0:date' |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
411 |
abort: unknown revision 'date'! |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
412 |
[255] |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
413 |
$ log '::"date"' |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
414 |
abort: unknown revision 'date'! |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12105
diff
changeset
|
415 |
[255] |
24932
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
416 |
$ hg book date -r 4 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
417 |
$ log '0:date' |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
418 |
0 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
419 |
1 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
420 |
2 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
421 |
3 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
422 |
4 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
423 |
$ log '::date' |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
424 |
0 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
425 |
1 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
426 |
2 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
427 |
4 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
428 |
$ log '::"date"' |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
429 |
0 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
430 |
1 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
431 |
2 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
432 |
4 |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
433 |
$ log 'date(2005) and 1::' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
434 |
4 |
24932
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
435 |
$ hg book -d date |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
436 |
|
29441
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
437 |
function name should be a symbol |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
438 |
|
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
439 |
$ log '"date"(2005)' |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
440 |
hg: parse error: not a symbol |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
441 |
[255] |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
442 |
|
25704
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
443 |
keyword arguments |
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
444 |
|
25706
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
445 |
$ log 'extra(branch, value=a)' |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
446 |
0 |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
447 |
|
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
448 |
$ log 'extra(branch, a, b)' |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
449 |
hg: parse error: extra takes at most 2 arguments |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
450 |
[255] |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
451 |
$ log 'extra(a, label=b)' |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
452 |
hg: parse error: extra got multiple values for keyword argument 'label' |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
453 |
[255] |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
454 |
$ log 'extra(label=branch, default)' |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
455 |
hg: parse error: extra got an invalid argument |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
456 |
[255] |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
457 |
$ log 'extra(branch, foo+bar=baz)' |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
458 |
hg: parse error: extra got an invalid argument |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
459 |
[255] |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
460 |
$ log 'extra(unknown=branch)' |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
461 |
hg: parse error: extra got an unexpected keyword argument 'unknown' |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
462 |
[255] |
b7f53c474e2c
revset: port extra() to support keyword arguments
Yuya Nishihara <yuya@tcha.org>
parents:
25704
diff
changeset
|
463 |
|
25704
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
464 |
$ try 'foo=bar|baz' |
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
465 |
(keyvalue |
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
466 |
('symbol', 'foo') |
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
467 |
(or |
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
468 |
('symbol', 'bar') |
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
469 |
('symbol', 'baz'))) |
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
470 |
hg: parse error: can't use a key-value pair in this context |
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
471 |
[255] |
70a2082f855a
revset: add parsing rule for key=value pair
Yuya Nishihara <yuya@tcha.org>
parents:
25632
diff
changeset
|
472 |
|
29766
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
473 |
right-hand side should be optimized recursively |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
474 |
|
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
475 |
$ try --optimize 'foo=(not public())' |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
476 |
(keyvalue |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
477 |
('symbol', 'foo') |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
478 |
(group |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
479 |
(not |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
480 |
(func |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
481 |
('symbol', 'public') |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
482 |
None)))) |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
483 |
* optimized: |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
484 |
(keyvalue |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
485 |
('symbol', 'foo') |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
486 |
(func |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
487 |
('symbol', '_notpublic') |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
488 |
None)) |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
489 |
hg: parse error: can't use a key-value pair in this context |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
490 |
[255] |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
491 |
|
24932
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
492 |
Test that symbols only get parsed as functions if there's an opening |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
493 |
parenthesis. |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
494 |
|
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
495 |
$ hg book only -r 9 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
496 |
$ log 'only(only)' # Outer "only" is a function, inner "only" is the bookmark |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
497 |
8 |
022282152632
revset: don't error out if tokens parse as existing symbols
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24904
diff
changeset
|
498 |
9 |
11419 | 499 |
|
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
500 |
infix/suffix resolution of ^ operator (issue2884): |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
501 |
|
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
502 |
x^:y means (x^):y |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
503 |
|
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
504 |
$ try '1^:2' |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
505 |
(range |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
506 |
(parentpost |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
507 |
('symbol', '1')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
508 |
('symbol', '2')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
509 |
* set: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
510 |
<spanset+ 0:2> |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
511 |
0 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
512 |
1 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
513 |
2 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
514 |
|
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
515 |
$ try '1^::2' |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
516 |
(dagrange |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
517 |
(parentpost |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
518 |
('symbol', '1')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
519 |
('symbol', '2')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
520 |
* set: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
521 |
<baseset+ [0, 1, 2]> |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
522 |
0 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
523 |
1 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
524 |
2 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
525 |
|
29770
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
526 |
$ try '9^:' |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
527 |
(rangepost |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
528 |
(parentpost |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
529 |
('symbol', '9'))) |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
530 |
* set: |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
531 |
<spanset+ 8:9> |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
532 |
8 |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
533 |
9 |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
534 |
|
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
535 |
x^:y should be resolved before omitting group operators |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
536 |
|
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
537 |
$ try '1^(:2)' |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
538 |
(parent |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
539 |
('symbol', '1') |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
540 |
(group |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
541 |
(rangepre |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
542 |
('symbol', '2')))) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
543 |
hg: parse error: ^ expects a number 0, 1, or 2 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
544 |
[255] |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
545 |
|
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
546 |
x^:y should be resolved recursively |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
547 |
|
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
548 |
$ try 'sort(1^:2)' |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
549 |
(func |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
550 |
('symbol', 'sort') |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
551 |
(range |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
552 |
(parentpost |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
553 |
('symbol', '1')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
554 |
('symbol', '2'))) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
555 |
* set: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
556 |
<spanset+ 0:2> |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
557 |
0 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
558 |
1 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
559 |
2 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
560 |
|
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
561 |
$ try '(3^:4)^:2' |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
562 |
(range |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
563 |
(parentpost |
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
564 |
(group |
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
565 |
(range |
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
566 |
(parentpost |
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
567 |
('symbol', '3')) |
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
568 |
('symbol', '4')))) |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
569 |
('symbol', '2')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
570 |
* set: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
571 |
<spanset+ 0:2> |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
572 |
0 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
573 |
1 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
574 |
2 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
575 |
|
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
576 |
$ try '(3^::4)^::2' |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
577 |
(dagrange |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
578 |
(parentpost |
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
579 |
(group |
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
580 |
(dagrange |
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
581 |
(parentpost |
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
582 |
('symbol', '3')) |
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
583 |
('symbol', '4')))) |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
584 |
('symbol', '2')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
585 |
* set: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
586 |
<baseset+ [0, 1, 2]> |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
587 |
0 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
588 |
1 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
589 |
2 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
590 |
|
29770
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
591 |
$ try '(9^:)^:' |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
592 |
(rangepost |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
593 |
(parentpost |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
594 |
(group |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
595 |
(rangepost |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
596 |
(parentpost |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
597 |
('symbol', '9')))))) |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
598 |
* set: |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
599 |
<spanset+ 4:9> |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
600 |
4 |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
601 |
5 |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
602 |
6 |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
603 |
7 |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
604 |
8 |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
605 |
9 |
9c51a5de76db
revset: also parse x^: as (x^):
Yuya Nishihara <yuya@tcha.org>
parents:
29769
diff
changeset
|
606 |
|
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
607 |
x^ in alias should also be resolved |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
608 |
|
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
609 |
$ try 'A' --config 'revsetalias.A=1^:2' |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
610 |
('symbol', 'A') |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
611 |
* expanded: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
612 |
(range |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
613 |
(parentpost |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
614 |
('symbol', '1')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
615 |
('symbol', '2')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
616 |
* set: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
617 |
<spanset+ 0:2> |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
618 |
0 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
619 |
1 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
620 |
2 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
621 |
|
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
622 |
$ try 'A:2' --config 'revsetalias.A=1^' |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
623 |
(range |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
624 |
('symbol', 'A') |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
625 |
('symbol', '2')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
626 |
* expanded: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
627 |
(range |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
628 |
(parentpost |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
629 |
('symbol', '1')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
630 |
('symbol', '2')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
631 |
* set: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
632 |
<spanset+ 0:2> |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
633 |
0 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
634 |
1 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
635 |
2 |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
636 |
|
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
637 |
but not beyond the boundary of alias expansion, because the resolution should |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
638 |
be made at the parsing stage |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
639 |
|
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
640 |
$ try '1^A' --config 'revsetalias.A=:2' |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
641 |
(parent |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
642 |
('symbol', '1') |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
643 |
('symbol', 'A')) |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
644 |
* expanded: |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
645 |
(parent |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
646 |
('symbol', '1') |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
647 |
(rangepre |
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
648 |
('symbol', '2'))) |
29769
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
649 |
hg: parse error: ^ expects a number 0, 1, or 2 |
abe4eecc3253
revset: resolve ambiguity of x^:y before alias expansion
Yuya Nishihara <yuya@tcha.org>
parents:
29768
diff
changeset
|
650 |
[255] |
29768
8e4841944e68
revset: add test for resolution of infix/suffix ambiguity of x^:y
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
651 |
|
18536
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
652 |
ancestor can accept 0 or more arguments |
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
653 |
|
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
654 |
$ log 'ancestor()' |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
655 |
$ log 'ancestor(1)' |
18536
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
656 |
1 |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
657 |
$ log 'ancestor(4,5)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
658 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
659 |
$ log 'ancestor(4,5) and 4' |
18536
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
660 |
$ log 'ancestor(0,0,1,3)' |
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
661 |
0 |
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
662 |
$ log 'ancestor(3,1,5,3,5,1)' |
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
663 |
1 |
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
664 |
$ log 'ancestor(0,1,3,5)' |
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
665 |
0 |
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
666 |
$ log 'ancestor(1,2,3,4,5)' |
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
667 |
1 |
24940
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
668 |
|
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
669 |
test ancestors |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
670 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
671 |
$ log 'ancestors(5)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
672 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
673 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
674 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
675 |
5 |
18536
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
676 |
$ log 'ancestor(ancestors(5))' |
ae645d4f084c
revset: change ancestor to accept 0 or more arguments (issue3750)
Paul Cavallaro <ptc@fb.com>
parents:
18473
diff
changeset
|
677 |
0 |
24940
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
678 |
$ log '::r3232()' |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
679 |
0 |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
680 |
1 |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
681 |
2 |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
682 |
3 |
6b54f749659b
revset: avoid returning duplicates when returning ancestors
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24932
diff
changeset
|
683 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
684 |
$ log 'author(bob)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
685 |
2 |
16823
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
686 |
$ log 'author("re:bob|test")' |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
687 |
0 |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
688 |
1 |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
689 |
2 |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
690 |
3 |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
691 |
4 |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
692 |
5 |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
693 |
6 |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
694 |
7 |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
695 |
8 |
b23bacb230c9
revset: add pattern matching to the 'user' revset expression
Simon King <simon@simonking.org.uk>
parents:
16821
diff
changeset
|
696 |
9 |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
697 |
$ log 'branch(é)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
698 |
8 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
699 |
9 |
16821
0946502fd3d5
revset: add pattern matching to 'branch' revset expression
Simon King <simon@simonking.org.uk>
parents:
16820
diff
changeset
|
700 |
$ log 'branch(a)' |
0946502fd3d5
revset: add pattern matching to 'branch' revset expression
Simon King <simon@simonking.org.uk>
parents:
16820
diff
changeset
|
701 |
0 |
0946502fd3d5
revset: add pattern matching to 'branch' revset expression
Simon King <simon@simonking.org.uk>
parents:
16820
diff
changeset
|
702 |
$ hg log -r 'branch("re:a")' --template '{rev} {branch}\n' |
0946502fd3d5
revset: add pattern matching to 'branch' revset expression
Simon King <simon@simonking.org.uk>
parents:
16820
diff
changeset
|
703 |
0 a |
0946502fd3d5
revset: add pattern matching to 'branch' revset expression
Simon King <simon@simonking.org.uk>
parents:
16820
diff
changeset
|
704 |
2 a-b-c- |
0946502fd3d5
revset: add pattern matching to 'branch' revset expression
Simon King <simon@simonking.org.uk>
parents:
16820
diff
changeset
|
705 |
3 +a+b+c+ |
0946502fd3d5
revset: add pattern matching to 'branch' revset expression
Simon King <simon@simonking.org.uk>
parents:
16820
diff
changeset
|
706 |
4 -a-b-c- |
16851
c739227b5eea
test-revset: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
16824
diff
changeset
|
707 |
5 !a/b/c/ |
16821
0946502fd3d5
revset: add pattern matching to 'branch' revset expression
Simon King <simon@simonking.org.uk>
parents:
16820
diff
changeset
|
708 |
6 _a_b_c_ |
0946502fd3d5
revset: add pattern matching to 'branch' revset expression
Simon King <simon@simonking.org.uk>
parents:
16820
diff
changeset
|
709 |
7 .a.b.c. |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
710 |
$ log 'children(ancestor(4,5))' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
711 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
712 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
713 |
$ log 'closed()' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
714 |
$ log 'contains(a)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
715 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
716 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
717 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
718 |
5 |
20286
760151697a4f
revset: make default kind of pattern for "contains()" rooted at cwd
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
19706
diff
changeset
|
719 |
$ log 'contains("../repo/a")' |
760151697a4f
revset: make default kind of pattern for "contains()" rooted at cwd
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
19706
diff
changeset
|
720 |
0 |
760151697a4f
revset: make default kind of pattern for "contains()" rooted at cwd
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
19706
diff
changeset
|
721 |
1 |
760151697a4f
revset: make default kind of pattern for "contains()" rooted at cwd
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
19706
diff
changeset
|
722 |
3 |
760151697a4f
revset: make default kind of pattern for "contains()" rooted at cwd
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
19706
diff
changeset
|
723 |
5 |
14650
93731b3efd0d
revset: add desc(string) to search in commit messages
Thomas Arendsen Hein <thomas@intevation.de>
parents:
14153
diff
changeset
|
724 |
$ log 'desc(B)' |
93731b3efd0d
revset: add desc(string) to search in commit messages
Thomas Arendsen Hein <thomas@intevation.de>
parents:
14153
diff
changeset
|
725 |
5 |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
726 |
$ log 'descendants(2 or 3)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
727 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
728 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
729 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
730 |
5 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
731 |
6 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
732 |
7 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
733 |
8 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
734 |
9 |
16411
4c2edcd84175
graphlog: correctly handle calls in subdirectories
Patrick Mezard <patrick@mezard.eu>
parents:
16218
diff
changeset
|
735 |
$ log 'file("b*")' |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
736 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
737 |
4 |
20288
b61ad01c4e73
revset: use "canonpath()" for "filelog()" pattern without explicit kind
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20286
diff
changeset
|
738 |
$ log 'filelog("b")' |
b61ad01c4e73
revset: use "canonpath()" for "filelog()" pattern without explicit kind
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20286
diff
changeset
|
739 |
1 |
b61ad01c4e73
revset: use "canonpath()" for "filelog()" pattern without explicit kind
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20286
diff
changeset
|
740 |
4 |
b61ad01c4e73
revset: use "canonpath()" for "filelog()" pattern without explicit kind
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20286
diff
changeset
|
741 |
$ log 'filelog("../repo/b")' |
b61ad01c4e73
revset: use "canonpath()" for "filelog()" pattern without explicit kind
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20286
diff
changeset
|
742 |
1 |
b61ad01c4e73
revset: use "canonpath()" for "filelog()" pattern without explicit kind
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20286
diff
changeset
|
743 |
4 |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
744 |
$ log 'follow()' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
745 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
746 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
747 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
748 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
749 |
8 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
750 |
9 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
751 |
$ log 'grep("issue\d+")' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
752 |
6 |
12321 | 753 |
$ try 'grep("(")' # invalid regular expression |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
754 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
755 |
('symbol', 'grep') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
756 |
('string', '(')) |
12321 | 757 |
hg: parse error: invalid match pattern: unbalanced parenthesis |
758 |
[255] |
|
12408
78a97859b90d
revset: support raw string literals
Brodie Rao <brodie@bitheap.org>
parents:
12321
diff
changeset
|
759 |
$ try 'grep("\bissue\d+")' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
760 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
761 |
('symbol', 'grep') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
762 |
('string', '\x08issue\\d+')) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
763 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
764 |
<filteredset |
28424
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
765 |
<fullreposet+ 0:9>, |
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
766 |
<grep '\x08issue\\d+'>> |
12408
78a97859b90d
revset: support raw string literals
Brodie Rao <brodie@bitheap.org>
parents:
12321
diff
changeset
|
767 |
$ try 'grep(r"\bissue\d+")' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
768 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
769 |
('symbol', 'grep') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
770 |
('string', '\\bissue\\d+')) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
771 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
772 |
<filteredset |
28424
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
773 |
<fullreposet+ 0:9>, |
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
774 |
<grep '\\bissue\\d+'>> |
12408
78a97859b90d
revset: support raw string literals
Brodie Rao <brodie@bitheap.org>
parents:
12321
diff
changeset
|
775 |
6 |
78a97859b90d
revset: support raw string literals
Brodie Rao <brodie@bitheap.org>
parents:
12321
diff
changeset
|
776 |
$ try 'grep(r"\")' |
78a97859b90d
revset: support raw string literals
Brodie Rao <brodie@bitheap.org>
parents:
12321
diff
changeset
|
777 |
hg: parse error at 7: unterminated string |
78a97859b90d
revset: support raw string literals
Brodie Rao <brodie@bitheap.org>
parents:
12321
diff
changeset
|
778 |
[255] |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
779 |
$ log 'head()' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
780 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
781 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
782 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
783 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
784 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
785 |
5 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
786 |
6 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
787 |
7 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
788 |
9 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
789 |
$ log 'heads(6::)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
790 |
7 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
791 |
$ log 'keyword(issue)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
792 |
6 |
19706
26ddce1a2a55
revset: fix wrong keyword() behaviour for strings with spaces
Alexander Plavin <alexander@plav.in>
parents:
18955
diff
changeset
|
793 |
$ log 'keyword("test a")' |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
794 |
$ log 'limit(head(), 1)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
795 |
0 |
26638
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
796 |
$ log 'limit(author("re:bob|test"), 3, 5)' |
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
797 |
5 |
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
798 |
6 |
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
799 |
7 |
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
800 |
$ log 'limit(author("re:bob|test"), offset=6)' |
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
801 |
6 |
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
802 |
$ log 'limit(author("re:bob|test"), offset=10)' |
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
803 |
$ log 'limit(all(), 1, -1)' |
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
804 |
hg: parse error: negative offset |
7afaf2566e25
revset: add optional offset argument to limit() predicate
Yuya Nishihara <yuya@tcha.org>
parents:
26537
diff
changeset
|
805 |
[255] |
16447
60c379da12aa
tests: add tests for matching keyword
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
16415
diff
changeset
|
806 |
$ log 'matching(6)' |
60c379da12aa
tests: add tests for matching keyword
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
16415
diff
changeset
|
807 |
6 |
60c379da12aa
tests: add tests for matching keyword
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
16415
diff
changeset
|
808 |
$ log 'matching(6:7, "phase parents user date branch summary files description substate")' |
60c379da12aa
tests: add tests for matching keyword
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
16415
diff
changeset
|
809 |
6 |
60c379da12aa
tests: add tests for matching keyword
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
16415
diff
changeset
|
810 |
7 |
20863
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
811 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
812 |
Testing min and max |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
813 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
814 |
max: simple |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
815 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
816 |
$ log 'max(contains(a))' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
817 |
5 |
20863
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
818 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
819 |
max: simple on unordered set) |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
820 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
821 |
$ log 'max((4+0+2+5+7) and contains(a))' |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
822 |
5 |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
823 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
824 |
max: no result |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
825 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
826 |
$ log 'max(contains(stringthatdoesnotappearanywhere))' |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
827 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
828 |
max: no result on unordered set |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
829 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
830 |
$ log 'max((4+0+2+5+7) and contains(stringthatdoesnotappearanywhere))' |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
831 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
832 |
min: simple |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
833 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
834 |
$ log 'min(contains(a))' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
835 |
0 |
20863
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
836 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
837 |
min: simple on unordered set |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
838 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
839 |
$ log 'min((4+0+2+5+7) and contains(a))' |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
840 |
0 |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
841 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
842 |
min: empty |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
843 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
844 |
$ log 'min(contains(stringthatdoesnotappearanywhere))' |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
845 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
846 |
min: empty on unordered set |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
847 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
848 |
$ log 'min((4+0+2+5+7) and contains(stringthatdoesnotappearanywhere))' |
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
849 |
|
876c17336b4e
revset: raise ValueError when calling min or max on empty smartset
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20862
diff
changeset
|
850 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
851 |
$ log 'merge()' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
852 |
6 |
17753
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
853 |
$ log 'branchpoint()' |
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
854 |
1 |
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
855 |
4 |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
856 |
$ log 'modifies(b)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
857 |
4 |
16521
592701c8eac6
revset: fix adds/modifies/removes and patterns (issue3403)
Patrick Mezard <patrick@mezard.eu>
parents:
16447
diff
changeset
|
858 |
$ log 'modifies("path:b")' |
592701c8eac6
revset: fix adds/modifies/removes and patterns (issue3403)
Patrick Mezard <patrick@mezard.eu>
parents:
16447
diff
changeset
|
859 |
4 |
592701c8eac6
revset: fix adds/modifies/removes and patterns (issue3403)
Patrick Mezard <patrick@mezard.eu>
parents:
16447
diff
changeset
|
860 |
$ log 'modifies("*")' |
592701c8eac6
revset: fix adds/modifies/removes and patterns (issue3403)
Patrick Mezard <patrick@mezard.eu>
parents:
16447
diff
changeset
|
861 |
4 |
592701c8eac6
revset: fix adds/modifies/removes and patterns (issue3403)
Patrick Mezard <patrick@mezard.eu>
parents:
16447
diff
changeset
|
862 |
6 |
592701c8eac6
revset: fix adds/modifies/removes and patterns (issue3403)
Patrick Mezard <patrick@mezard.eu>
parents:
16447
diff
changeset
|
863 |
$ log 'modifies("set:modified()")' |
592701c8eac6
revset: fix adds/modifies/removes and patterns (issue3403)
Patrick Mezard <patrick@mezard.eu>
parents:
16447
diff
changeset
|
864 |
4 |
12716
c7e619e30ba3
revset: add id() and rev() to allow explicitly referring to changes by hash or rev
Augie Fackler <durin42@gmail.com>
parents:
12715
diff
changeset
|
865 |
$ log 'id(5)' |
c7e619e30ba3
revset: add id() and rev() to allow explicitly referring to changes by hash or rev
Augie Fackler <durin42@gmail.com>
parents:
12715
diff
changeset
|
866 |
2 |
20613 | 867 |
$ log 'only(9)' |
868 |
8 |
|
869 |
9 |
|
870 |
$ log 'only(8)' |
|
871 |
8 |
|
872 |
$ log 'only(9, 5)' |
|
873 |
2 |
|
874 |
4 |
|
875 |
8 |
|
876 |
9 |
|
877 |
$ log 'only(7 + 9, 5 + 2)' |
|
878 |
4 |
|
879 |
6 |
|
880 |
7 |
|
881 |
8 |
|
882 |
9 |
|
21925
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
883 |
|
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
884 |
Test empty set input |
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
885 |
$ log 'only(p2())' |
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
886 |
$ log 'only(p1(), p2())' |
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
887 |
0 |
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
888 |
1 |
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
889 |
2 |
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
890 |
4 |
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
891 |
8 |
7142e04b438e
revset: avoid a ValueError when 'only()' is given an empty set
Matt Harbison <matt_harbison@yahoo.com>
parents:
21893
diff
changeset
|
892 |
9 |
23062
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
893 |
|
23765
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
894 |
Test '%' operator |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
895 |
|
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
896 |
$ log '9%' |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
897 |
8 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
898 |
9 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
899 |
$ log '9%5' |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
900 |
2 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
901 |
4 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
902 |
8 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
903 |
9 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
904 |
$ log '(7 + 9)%(5 + 2)' |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
905 |
4 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
906 |
6 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
907 |
7 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
908 |
8 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
909 |
9 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
910 |
|
25094
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
911 |
Test opreand of '%' is optimized recursively (issue4670) |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
912 |
|
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
913 |
$ try --optimize '8:9-8%' |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
914 |
(onlypost |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
915 |
(minus |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
916 |
(range |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
917 |
('symbol', '8') |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
918 |
('symbol', '9')) |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
919 |
('symbol', '8'))) |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
920 |
* optimized: |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
921 |
(func |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
922 |
('symbol', 'only') |
28217
d2ac8b57a75d
revset: use smartset minus operator
Durham Goode <durham@fb.com>
parents:
28015
diff
changeset
|
923 |
(difference |
25094
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
924 |
(range |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
925 |
('symbol', '8') |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
926 |
('symbol', '9')) |
28217
d2ac8b57a75d
revset: use smartset minus operator
Durham Goode <durham@fb.com>
parents:
28015
diff
changeset
|
927 |
('symbol', '8'))) |
25094
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
928 |
* set: |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
929 |
<baseset+ [8, 9]> |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
930 |
8 |
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
931 |
9 |
25105
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
932 |
$ try --optimize '(9)%(5)' |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
933 |
(only |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
934 |
(group |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
935 |
('symbol', '9')) |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
936 |
(group |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
937 |
('symbol', '5'))) |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
938 |
* optimized: |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
939 |
(func |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
940 |
('symbol', 'only') |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
941 |
(list |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
942 |
('symbol', '9') |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
943 |
('symbol', '5'))) |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
944 |
* set: |
28785
87b89dca669d
revset: stabilize repr of baseset initialized with a set
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
28690
diff
changeset
|
945 |
<baseset+ [2, 4, 8, 9]> |
25105
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
946 |
2 |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
947 |
4 |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
948 |
8 |
2f34746c27df
revset: remove unused 'only' from methods table
Yuya Nishihara <yuya@tcha.org>
parents:
25102
diff
changeset
|
949 |
9 |
25094
8b99e9a8db05
revset: map postfix '%' to only() to optimize operand recursively (issue4670)
Yuya Nishihara <yuya@tcha.org>
parents:
24904
diff
changeset
|
950 |
|
23765
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
951 |
Test the order of operations |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
952 |
|
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
953 |
$ log '7 + 9%5 + 2' |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
954 |
7 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
955 |
2 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
956 |
4 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
957 |
8 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
958 |
9 |
537a2669a113
revset: use '%' as an operator for 'only'
Sean Farley <sean.michael.farley@gmail.com>
parents:
23742
diff
changeset
|
959 |
|
23062
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
960 |
Test explicit numeric revision |
23954
310222feb9a8
revset: allow rev(-1) to indicate null revision (BC)
Yuya Nishihara <yuya@tcha.org>
parents:
23846
diff
changeset
|
961 |
$ log 'rev(-2)' |
23062
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
962 |
$ log 'rev(-1)' |
23954
310222feb9a8
revset: allow rev(-1) to indicate null revision (BC)
Yuya Nishihara <yuya@tcha.org>
parents:
23846
diff
changeset
|
963 |
-1 |
23062
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
964 |
$ log 'rev(0)' |
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
965 |
0 |
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
966 |
$ log 'rev(9)' |
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
967 |
9 |
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
968 |
$ log 'rev(10)' |
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
969 |
$ log 'rev(tip)' |
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
970 |
hg: parse error: rev expects a number |
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
971 |
[255] |
ba89f7b542c9
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)
Yuya Nishihara <yuya@tcha.org>
parents:
22861
diff
changeset
|
972 |
|
24904
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
973 |
Test hexadecimal revision |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
974 |
$ log 'id(2)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
975 |
abort: 00changelog.i@2: ambiguous identifier! |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
976 |
[255] |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
977 |
$ log 'id(23268)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
978 |
4 |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
979 |
$ log 'id(2785f51eece)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
980 |
0 |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
981 |
$ log 'id(d5d0dcbdc4d9ff5dbb2d336f32f0bb561c1a532c)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
982 |
8 |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
983 |
$ log 'id(d5d0dcbdc4a)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
984 |
$ log 'id(d5d0dcbdc4w)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
985 |
$ log 'id(d5d0dcbdc4d9ff5dbb2d336f32f0bb561c1a532d)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
986 |
$ log 'id(d5d0dcbdc4d9ff5dbb2d336f32f0bb561c1a532q)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
987 |
$ log 'id(1.0)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
988 |
$ log 'id(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)' |
b5c227f3e461
revset: id() called with 40-byte strings should give the same results as for short strings
Alexander Drozdov <al.drozdov@gmail.com>
parents:
24892
diff
changeset
|
989 |
|
23956
b1e026c25552
revset: fix ancestors(null) to include null revision (issue4512)
Yuya Nishihara <yuya@tcha.org>
parents:
23954
diff
changeset
|
990 |
Test null revision |
24204
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
991 |
$ log '(null)' |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
992 |
-1 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
993 |
$ log '(null:0)' |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
994 |
-1 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
995 |
0 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
996 |
$ log '(0:null)' |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
997 |
0 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
998 |
-1 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
999 |
$ log 'null::0' |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1000 |
-1 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1001 |
0 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1002 |
$ log 'null:tip - 0:' |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1003 |
-1 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1004 |
$ log 'null: and null::' | head -1 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1005 |
-1 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1006 |
$ log 'null: or 0:' | head -2 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1007 |
-1 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1008 |
0 |
23956
b1e026c25552
revset: fix ancestors(null) to include null revision (issue4512)
Yuya Nishihara <yuya@tcha.org>
parents:
23954
diff
changeset
|
1009 |
$ log 'ancestors(null)' |
b1e026c25552
revset: fix ancestors(null) to include null revision (issue4512)
Yuya Nishihara <yuya@tcha.org>
parents:
23954
diff
changeset
|
1010 |
-1 |
24204
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1011 |
$ log 'reverse(null:)' | tail -2 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1012 |
0 |
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1013 |
-1 |
25265
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
1014 |
BROKEN: should be '-1' |
24204
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1015 |
$ log 'first(null:)' |
25265
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
1016 |
BROKEN: should be '-1' |
24204
d2de20e1451f
revset: extend fullreposet to make "null" revision magically appears in set
Yuya Nishihara <yuya@tcha.org>
parents:
24202
diff
changeset
|
1017 |
$ log 'min(null:)' |
24202
2de9ee016425
revset: have all() filter out null revision
Yuya Nishihara <yuya@tcha.org>
parents:
24175
diff
changeset
|
1018 |
$ log 'tip:null and all()' | tail -2 |
2de9ee016425
revset: have all() filter out null revision
Yuya Nishihara <yuya@tcha.org>
parents:
24175
diff
changeset
|
1019 |
1 |
2de9ee016425
revset: have all() filter out null revision
Yuya Nishihara <yuya@tcha.org>
parents:
24175
diff
changeset
|
1020 |
0 |
23956
b1e026c25552
revset: fix ancestors(null) to include null revision (issue4512)
Yuya Nishihara <yuya@tcha.org>
parents:
23954
diff
changeset
|
1021 |
|
24419
0e41f110e69e
revset: add wdir() function to specify workingctx revision by command
Yuya Nishihara <yuya@tcha.org>
parents:
24222
diff
changeset
|
1022 |
Test working-directory revision |
0e41f110e69e
revset: add wdir() function to specify workingctx revision by command
Yuya Nishihara <yuya@tcha.org>
parents:
24222
diff
changeset
|
1023 |
$ hg debugrevspec 'wdir()' |
25765
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1024 |
2147483647 |
24419
0e41f110e69e
revset: add wdir() function to specify workingctx revision by command
Yuya Nishihara <yuya@tcha.org>
parents:
24222
diff
changeset
|
1025 |
$ hg debugrevspec 'tip or wdir()' |
0e41f110e69e
revset: add wdir() function to specify workingctx revision by command
Yuya Nishihara <yuya@tcha.org>
parents:
24222
diff
changeset
|
1026 |
9 |
25765
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1027 |
2147483647 |
24419
0e41f110e69e
revset: add wdir() function to specify workingctx revision by command
Yuya Nishihara <yuya@tcha.org>
parents:
24222
diff
changeset
|
1028 |
$ hg debugrevspec '0:tip and wdir()' |
25766
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1029 |
$ log '0:wdir()' | tail -3 |
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1030 |
8 |
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1031 |
9 |
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1032 |
2147483647 |
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1033 |
$ log 'wdir():0' | head -3 |
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1034 |
2147483647 |
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1035 |
9 |
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1036 |
8 |
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1037 |
$ log 'wdir():wdir()' |
d51dac68ec98
revset: work around x:y range where x or y is wdir()
Yuya Nishihara <yuya@tcha.org>
parents:
25765
diff
changeset
|
1038 |
2147483647 |
25765
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1039 |
$ log '(all() + wdir()) & min(. + wdir())' |
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1040 |
9 |
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1041 |
$ log '(all() + wdir()) & max(. + wdir())' |
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1042 |
2147483647 |
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1043 |
$ log '(all() + wdir()) & first(wdir() + .)' |
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1044 |
2147483647 |
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1045 |
$ log '(all() + wdir()) & last(. + wdir())' |
5e1b0739611c
revset: use integer representation of wdir() in revset
Yuya Nishihara <yuya@tcha.org>
parents:
25706
diff
changeset
|
1046 |
2147483647 |
24419
0e41f110e69e
revset: add wdir() function to specify workingctx revision by command
Yuya Nishihara <yuya@tcha.org>
parents:
24222
diff
changeset
|
1047 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1048 |
$ log 'outgoing()' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1049 |
8 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1050 |
9 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1051 |
$ log 'outgoing("../remote1")' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1052 |
8 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1053 |
9 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1054 |
$ log 'outgoing("../remote2")' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1055 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1056 |
5 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1057 |
6 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1058 |
7 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1059 |
9 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1060 |
$ log 'p1(merge())' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1061 |
5 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1062 |
$ log 'p2(merge())' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1063 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1064 |
$ log 'parents(merge())' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1065 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1066 |
5 |
17753
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
1067 |
$ log 'p1(branchpoint())' |
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
1068 |
0 |
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
1069 |
2 |
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
1070 |
$ log 'p2(branchpoint())' |
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
1071 |
$ log 'parents(branchpoint())' |
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
1072 |
0 |
69d5078d760d
revsets: add branchpoint() function
Ivan Andrus <darthandrus@gmail.com>
parents:
17100
diff
changeset
|
1073 |
2 |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1074 |
$ log 'removes(a)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1075 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1076 |
6 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1077 |
$ log 'roots(all())' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1078 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1079 |
$ log 'reverse(2 or 3 or 4 or 5)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1080 |
5 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1081 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1082 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1083 |
2 |
17100
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1084 |
$ log 'reverse(all())' |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1085 |
9 |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1086 |
8 |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1087 |
7 |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1088 |
6 |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1089 |
5 |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1090 |
4 |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1091 |
3 |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1092 |
2 |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1093 |
1 |
ee2370d866fc
revset: ensure we are reversing a list (issue3530)
Bryan O'Sullivan <bryano@fb.com>
parents:
16851
diff
changeset
|
1094 |
0 |
23826
c90d195320c5
revset: fix spanset.isascending() to honor sort() or reverse() request
Yuya Nishihara <yuya@tcha.org>
parents:
23062
diff
changeset
|
1095 |
$ log 'reverse(all()) & filelog(b)' |
c90d195320c5
revset: fix spanset.isascending() to honor sort() or reverse() request
Yuya Nishihara <yuya@tcha.org>
parents:
23062
diff
changeset
|
1096 |
4 |
c90d195320c5
revset: fix spanset.isascending() to honor sort() or reverse() request
Yuya Nishihara <yuya@tcha.org>
parents:
23062
diff
changeset
|
1097 |
1 |
12716
c7e619e30ba3
revset: add id() and rev() to allow explicitly referring to changes by hash or rev
Augie Fackler <durin42@gmail.com>
parents:
12715
diff
changeset
|
1098 |
$ log 'rev(5)' |
c7e619e30ba3
revset: add id() and rev() to allow explicitly referring to changes by hash or rev
Augie Fackler <durin42@gmail.com>
parents:
12715
diff
changeset
|
1099 |
5 |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1100 |
$ log 'sort(limit(reverse(all()), 3))' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1101 |
7 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1102 |
8 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1103 |
9 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1104 |
$ log 'sort(2 or 3 or 4 or 5, date)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1105 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1106 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1107 |
5 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1108 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1109 |
$ log 'tagged()' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
1110 |
6 |
12715
33820dccbea4
revset: rename tagged() to tag() and allow it to take an optional tag name
Augie Fackler <durin42@gmail.com>
parents:
12616
diff
changeset
|
1111 |
$ log 'tag()' |
33820dccbea4
revset: rename tagged() to tag() and allow it to take an optional tag name
Augie Fackler <durin42@gmail.com>
parents:
12616
diff
changeset
|
1112 |
6 |
33820dccbea4
revset: rename tagged() to tag() and allow it to take an optional tag name
Augie Fackler <durin42@gmail.com>
parents:
12616
diff
changeset
|
1113 |
$ log 'tag(1.0)' |
33820dccbea4
revset: rename tagged() to tag() and allow it to take an optional tag name
Augie Fackler <durin42@gmail.com>
parents:
12616
diff
changeset
|
1114 |
6 |
33820dccbea4
revset: rename tagged() to tag() and allow it to take an optional tag name
Augie Fackler <durin42@gmail.com>
parents:
12616
diff
changeset
|
1115 |
$ log 'tag(tip)' |
33820dccbea4
revset: rename tagged() to tag() and allow it to take an optional tag name
Augie Fackler <durin42@gmail.com>
parents:
12616
diff
changeset
|
1116 |
9 |
16820
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
1117 |
|
29139
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1118 |
Test order of revisions in compound expression |
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1119 |
---------------------------------------------- |
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1120 |
|
29390
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1121 |
The general rule is that only the outermost (= leftmost) predicate can |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1122 |
enforce its ordering requirement. The other predicates should take the |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1123 |
ordering defined by it. |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1124 |
|
29139
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1125 |
'A & B' should follow the order of 'A': |
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1126 |
|
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1127 |
$ log '2:0 & 0::2' |
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1128 |
2 |
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1129 |
1 |
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1130 |
0 |
64c1955a0461
revset: make dagrange preserve order of input set
Yuya Nishihara <yuya@tcha.org>
parents:
29059
diff
changeset
|
1131 |
|
29408
785cadec2091
revset: make head() honor order of subset
Martin von Zweigbergk <martinvonz@google.com>
parents:
29390
diff
changeset
|
1132 |
'head()' combines sets in right order: |
29390
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1133 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1134 |
$ log '2:0 & head()' |
29408
785cadec2091
revset: make head() honor order of subset
Martin von Zweigbergk <martinvonz@google.com>
parents:
29390
diff
changeset
|
1135 |
2 |
29390
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1136 |
1 |
29408
785cadec2091
revset: make head() honor order of subset
Martin von Zweigbergk <martinvonz@google.com>
parents:
29390
diff
changeset
|
1137 |
0 |
29390
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1138 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1139 |
'a + b', which is optimized to '_list(a b)', should take the ordering of |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1140 |
the left expression: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1141 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1142 |
$ try --optimize '2:0 & (0 + 1 + 2)' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1143 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1144 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1145 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1146 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1147 |
(group |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1148 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1149 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1150 |
('symbol', '1') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1151 |
('symbol', '2')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1152 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1153 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1154 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1155 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1156 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1157 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1158 |
('symbol', '_list') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1159 |
('string', '0\x001\x002'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1160 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1161 |
<baseset [0, 1, 2]> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1162 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1163 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1164 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1165 |
BROKEN: should be '2 1 0' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1166 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1167 |
'A + B' should take the ordering of the left expression: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1168 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1169 |
$ try --optimize '2:0 & (0:1 + 2)' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1170 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1171 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1172 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1173 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1174 |
(group |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1175 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1176 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1177 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1178 |
('symbol', '1')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1179 |
('symbol', '2')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1180 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1181 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1182 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1183 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1184 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1185 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1186 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1187 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1188 |
('symbol', '1')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1189 |
('symbol', '2'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1190 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1191 |
<addset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1192 |
<filteredset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1193 |
<spanset+ 0:1>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1194 |
<spanset- 0:2>>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1195 |
<baseset [2]>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1196 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1197 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1198 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1199 |
BROKEN: should be '2 1 0' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1200 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1201 |
'_intlist(a b)' should behave like 'a + b': |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1202 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1203 |
$ trylist --optimize '2:0 & %ld' 0 1 2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1204 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1205 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1206 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1207 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1208 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1209 |
('symbol', '_intlist') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1210 |
('string', '0\x001\x002'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1211 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1212 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1213 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1214 |
('symbol', '_intlist') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1215 |
('string', '0\x001\x002')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1216 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1217 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1218 |
('symbol', '0'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1219 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1220 |
<filteredset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1221 |
<spanset- 0:2>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1222 |
<baseset [0, 1, 2]>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1223 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1224 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1225 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1226 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1227 |
$ trylist --optimize '%ld & 2:0' 0 2 1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1228 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1229 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1230 |
('symbol', '_intlist') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1231 |
('string', '0\x002\x001')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1232 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1233 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1234 |
('symbol', '0'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1235 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1236 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1237 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1238 |
('symbol', '_intlist') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1239 |
('string', '0\x002\x001')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1240 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1241 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1242 |
('symbol', '0'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1243 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1244 |
<filteredset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1245 |
<spanset- 0:2>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1246 |
<baseset [0, 2, 1]>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1247 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1248 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1249 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1250 |
BROKEN: should be '0 2 1' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1251 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1252 |
'_hexlist(a b)' should behave like 'a + b': |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1253 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1254 |
$ trylist --optimize --bin '2:0 & %ln' `hg log -T '{node} ' -r0:2` |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1255 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1256 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1257 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1258 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1259 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1260 |
('symbol', '_hexlist') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1261 |
('string', '*'))) (glob) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1262 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1263 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1264 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1265 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1266 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1267 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1268 |
('symbol', '_hexlist') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1269 |
('string', '*'))) (glob) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1270 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1271 |
<baseset [0, 1, 2]> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1272 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1273 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1274 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1275 |
BROKEN: should be '2 1 0' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1276 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1277 |
$ trylist --optimize --bin '%ln & 2:0' `hg log -T '{node} ' -r0+2+1` |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1278 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1279 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1280 |
('symbol', '_hexlist') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1281 |
('string', '*')) (glob) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1282 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1283 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1284 |
('symbol', '0'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1285 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1286 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1287 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1288 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1289 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1290 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1291 |
('symbol', '_hexlist') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1292 |
('string', '*'))) (glob) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1293 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1294 |
<baseset [0, 2, 1]> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1295 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1296 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1297 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1298 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1299 |
'present()' should do nothing other than suppressing an error: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1300 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1301 |
$ try --optimize '2:0 & present(0 + 1 + 2)' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1302 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1303 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1304 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1305 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1306 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1307 |
('symbol', 'present') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1308 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1309 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1310 |
('symbol', '1') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1311 |
('symbol', '2')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1312 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1313 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1314 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1315 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1316 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1317 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1318 |
('symbol', 'present') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1319 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1320 |
('symbol', '_list') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1321 |
('string', '0\x001\x002')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1322 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1323 |
<baseset [0, 1, 2]> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1324 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1325 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1326 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1327 |
BROKEN: should be '2 1 0' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1328 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1329 |
'reverse()' should take effect only if it is the outermost expression: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1330 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1331 |
$ try --optimize '0:2 & reverse(all())' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1332 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1333 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1334 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1335 |
('symbol', '2')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1336 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1337 |
('symbol', 'reverse') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1338 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1339 |
('symbol', 'all') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1340 |
None))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1341 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1342 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1343 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1344 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1345 |
('symbol', '2')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1346 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1347 |
('symbol', 'reverse') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1348 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1349 |
('symbol', 'all') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1350 |
None))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1351 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1352 |
<filteredset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1353 |
<spanset- 0:2>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1354 |
<spanset+ 0:9>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1355 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1356 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1357 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1358 |
BROKEN: should be '0 1 2' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1359 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1360 |
'sort()' should take effect only if it is the outermost expression: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1361 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1362 |
$ try --optimize '0:2 & sort(all(), -rev)' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1363 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1364 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1365 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1366 |
('symbol', '2')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1367 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1368 |
('symbol', 'sort') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1369 |
(list |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1370 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1371 |
('symbol', 'all') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1372 |
None) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1373 |
(negate |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1374 |
('symbol', 'rev'))))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1375 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1376 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1377 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1378 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1379 |
('symbol', '2')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1380 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1381 |
('symbol', 'sort') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1382 |
(list |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1383 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1384 |
('symbol', 'all') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1385 |
None) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1386 |
('string', '-rev')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1387 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1388 |
<filteredset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1389 |
<spanset- 0:2>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1390 |
<spanset+ 0:9>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1391 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1392 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1393 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1394 |
BROKEN: should be '0 1 2' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1395 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1396 |
for 'A & f(B)', 'B' should not be affected by the order of 'A': |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1397 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1398 |
$ try --optimize '2:0 & first(1 + 0 + 2)' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1399 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1400 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1401 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1402 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1403 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1404 |
('symbol', 'first') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1405 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1406 |
('symbol', '1') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1407 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1408 |
('symbol', '2')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1409 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1410 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1411 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1412 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1413 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1414 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1415 |
('symbol', 'first') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1416 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1417 |
('symbol', '_list') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1418 |
('string', '1\x000\x002')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1419 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1420 |
<baseset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1421 |
<limit n=1, offset=0, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1422 |
<spanset- 0:2>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1423 |
<baseset [1, 0, 2]>>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1424 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1425 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1426 |
$ try --optimize '2:0 & not last(0 + 2 + 1)' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1427 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1428 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1429 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1430 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1431 |
(not |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1432 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1433 |
('symbol', 'last') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1434 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1435 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1436 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1437 |
('symbol', '1'))))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1438 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1439 |
(difference |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1440 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1441 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1442 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1443 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1444 |
('symbol', 'last') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1445 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1446 |
('symbol', '_list') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1447 |
('string', '0\x002\x001')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1448 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1449 |
<filteredset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1450 |
<spanset- 0:2>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1451 |
<not |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1452 |
<baseset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1453 |
<last n=1, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1454 |
<fullreposet+ 0:9>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1455 |
<baseset [1, 2, 0]>>>>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1456 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1457 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1458 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1459 |
for 'A & (op)(B)', 'B' should not be affected by the order of 'A': |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1460 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1461 |
$ try --optimize '2:0 & (1 + 0 + 2):(0 + 2 + 1)' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1462 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1463 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1464 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1465 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1466 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1467 |
(group |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1468 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1469 |
('symbol', '1') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1470 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1471 |
('symbol', '2'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1472 |
(group |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1473 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1474 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1475 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1476 |
('symbol', '1'))))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1477 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1478 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1479 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1480 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1481 |
('symbol', '0')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1482 |
(range |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1483 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1484 |
('symbol', '_list') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1485 |
('string', '1\x000\x002')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1486 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1487 |
('symbol', '_list') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1488 |
('string', '0\x002\x001')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1489 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1490 |
<filteredset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1491 |
<baseset [1]>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1492 |
<spanset- 0:2>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1493 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1494 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1495 |
'A & B' can be rewritten as 'B & A' by weight, but the ordering rule should |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1496 |
be determined before the optimization (i.e. 'B' should take the ordering of |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1497 |
'A'): |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1498 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1499 |
$ try --optimize 'contains("glob:*") & (2 + 0 + 1)' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1500 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1501 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1502 |
('symbol', 'contains') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1503 |
('string', 'glob:*')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1504 |
(group |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1505 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1506 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1507 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1508 |
('symbol', '1')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1509 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1510 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1511 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1512 |
('symbol', '_list') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1513 |
('string', '2\x000\x001')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1514 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1515 |
('symbol', 'contains') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1516 |
('string', 'glob:*'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1517 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1518 |
<filteredset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1519 |
<baseset [2, 0, 1]>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1520 |
<contains 'glob:*'>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1521 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1522 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1523 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1524 |
BROKEN: should be '0 1 2' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1525 |
|
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1526 |
$ try --optimize 'reverse(contains("glob:*")) & (0 + 2 + 1)' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1527 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1528 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1529 |
('symbol', 'reverse') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1530 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1531 |
('symbol', 'contains') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1532 |
('string', 'glob:*'))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1533 |
(group |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1534 |
(or |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1535 |
('symbol', '0') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1536 |
('symbol', '2') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1537 |
('symbol', '1')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1538 |
* optimized: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1539 |
(and |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1540 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1541 |
('symbol', '_list') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1542 |
('string', '0\x002\x001')) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1543 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1544 |
('symbol', 'reverse') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1545 |
(func |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1546 |
('symbol', 'contains') |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1547 |
('string', 'glob:*')))) |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1548 |
* set: |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1549 |
<filteredset |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1550 |
<baseset [1, 2, 0]>, |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1551 |
<contains 'glob:*'>> |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1552 |
1 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1553 |
2 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1554 |
0 |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1555 |
BROKEN: should be '2 1 0' |
9349b4073c11
test-revset: show how inconsistent the ordering of compound expressions is
Yuya Nishihara <yuya@tcha.org>
parents:
29362
diff
changeset
|
1556 |
|
20717
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1557 |
test sort revset |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1558 |
-------------------------------------------- |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1559 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1560 |
test when adding two unordered revsets |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1561 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1562 |
$ log 'sort(keyword(issue) or modifies(b))' |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1563 |
4 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1564 |
6 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1565 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1566 |
test when sorting a reversed collection in the same way it is |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1567 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1568 |
$ log 'sort(reverse(all()), -rev)' |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1569 |
9 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1570 |
8 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1571 |
7 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1572 |
6 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1573 |
5 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1574 |
4 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1575 |
3 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1576 |
2 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1577 |
1 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1578 |
0 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1579 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1580 |
test when sorting a reversed collection |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1581 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1582 |
$ log 'sort(reverse(all()), rev)' |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1583 |
0 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1584 |
1 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1585 |
2 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1586 |
3 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1587 |
4 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1588 |
5 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1589 |
6 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1590 |
7 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1591 |
8 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1592 |
9 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1593 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1594 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1595 |
test sorting two sorted collections in different orders |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1596 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1597 |
$ log 'sort(outgoing() or reverse(removes(a)), rev)' |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1598 |
2 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1599 |
6 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1600 |
8 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1601 |
9 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1602 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1603 |
test sorting two sorted collections in different orders backwards |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1604 |
|
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1605 |
$ log 'sort(outgoing() or reverse(removes(a)), -rev)' |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1606 |
9 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1607 |
8 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1608 |
6 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1609 |
2 |
da3124178fbb
tests: added tests to test sort revset
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20613
diff
changeset
|
1610 |
|
29362
ec75d77df9d7
revset: fix crash on empty sort key
Yuya Nishihara <yuya@tcha.org>
parents:
29348
diff
changeset
|
1611 |
test empty sort key which is noop |
ec75d77df9d7
revset: fix crash on empty sort key
Yuya Nishihara <yuya@tcha.org>
parents:
29348
diff
changeset
|
1612 |
|
ec75d77df9d7
revset: fix crash on empty sort key
Yuya Nishihara <yuya@tcha.org>
parents:
29348
diff
changeset
|
1613 |
$ log 'sort(0 + 2 + 1, "")' |
ec75d77df9d7
revset: fix crash on empty sort key
Yuya Nishihara <yuya@tcha.org>
parents:
29348
diff
changeset
|
1614 |
0 |
ec75d77df9d7
revset: fix crash on empty sort key
Yuya Nishihara <yuya@tcha.org>
parents:
29348
diff
changeset
|
1615 |
2 |
ec75d77df9d7
revset: fix crash on empty sort key
Yuya Nishihara <yuya@tcha.org>
parents:
29348
diff
changeset
|
1616 |
1 |
ec75d77df9d7
revset: fix crash on empty sort key
Yuya Nishihara <yuya@tcha.org>
parents:
29348
diff
changeset
|
1617 |
|
29264
22625884b15c
revset: factor out reverse flag of sort() key
Yuya Nishihara <yuya@tcha.org>
parents:
29139
diff
changeset
|
1618 |
test invalid sort keys |
22625884b15c
revset: factor out reverse flag of sort() key
Yuya Nishihara <yuya@tcha.org>
parents:
29139
diff
changeset
|
1619 |
|
22625884b15c
revset: factor out reverse flag of sort() key
Yuya Nishihara <yuya@tcha.org>
parents:
29139
diff
changeset
|
1620 |
$ log 'sort(all(), -invalid)' |
22625884b15c
revset: factor out reverse flag of sort() key
Yuya Nishihara <yuya@tcha.org>
parents:
29139
diff
changeset
|
1621 |
hg: parse error: unknown sort key '-invalid' |
22625884b15c
revset: factor out reverse flag of sort() key
Yuya Nishihara <yuya@tcha.org>
parents:
29139
diff
changeset
|
1622 |
[255] |
22625884b15c
revset: factor out reverse flag of sort() key
Yuya Nishihara <yuya@tcha.org>
parents:
29139
diff
changeset
|
1623 |
|
29001
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1624 |
$ cd .. |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1625 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1626 |
test sorting by multiple keys including variable-length strings |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1627 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1628 |
$ hg init sorting |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1629 |
$ cd sorting |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1630 |
$ cat <<EOF >> .hg/hgrc |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1631 |
> [ui] |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1632 |
> logtemplate = '{rev} {branch|p5}{desc|p5}{author|p5}{date|hgdate}\n' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1633 |
> [templatealias] |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1634 |
> p5(s) = pad(s, 5) |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1635 |
> EOF |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1636 |
$ hg branch -qf b12 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1637 |
$ hg ci -m m111 -u u112 -d '111 10800' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1638 |
$ hg branch -qf b11 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1639 |
$ hg ci -m m12 -u u111 -d '112 7200' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1640 |
$ hg branch -qf b111 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1641 |
$ hg ci -m m11 -u u12 -d '111 3600' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1642 |
$ hg branch -qf b112 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1643 |
$ hg ci -m m111 -u u11 -d '120 0' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1644 |
$ hg branch -qf b111 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1645 |
$ hg ci -m m112 -u u111 -d '110 14400' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1646 |
created new head |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1647 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1648 |
compare revisions (has fast path): |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1649 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1650 |
$ hg log -r 'sort(all(), rev)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1651 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1652 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1653 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1654 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1655 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1656 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1657 |
$ hg log -r 'sort(all(), -rev)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1658 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1659 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1660 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1661 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1662 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1663 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1664 |
compare variable-length strings (issue5218): |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1665 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1666 |
$ hg log -r 'sort(all(), branch)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1667 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1668 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1669 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1670 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1671 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1672 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1673 |
$ hg log -r 'sort(all(), -branch)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1674 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1675 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1676 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1677 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1678 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1679 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1680 |
$ hg log -r 'sort(all(), desc)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1681 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1682 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1683 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1684 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1685 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1686 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1687 |
$ hg log -r 'sort(all(), -desc)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1688 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1689 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1690 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1691 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1692 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1693 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1694 |
$ hg log -r 'sort(all(), user)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1695 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1696 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1697 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1698 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1699 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1700 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1701 |
$ hg log -r 'sort(all(), -user)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1702 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1703 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1704 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1705 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1706 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1707 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1708 |
compare dates (tz offset should have no effect): |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1709 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1710 |
$ hg log -r 'sort(all(), date)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1711 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1712 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1713 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1714 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1715 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1716 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1717 |
$ hg log -r 'sort(all(), -date)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1718 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1719 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1720 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1721 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1722 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1723 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1724 |
be aware that 'sort(x, -k)' is not exactly the same as 'reverse(sort(x, k))' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1725 |
because '-k' reverses the comparison, not the list itself: |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1726 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1727 |
$ hg log -r 'sort(0 + 2, date)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1728 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1729 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1730 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1731 |
$ hg log -r 'sort(0 + 2, -date)' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1732 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1733 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1734 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1735 |
$ hg log -r 'reverse(sort(0 + 2, date))' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1736 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1737 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1738 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1739 |
sort by multiple keys: |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1740 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1741 |
$ hg log -r 'sort(all(), "branch -rev")' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1742 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1743 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1744 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1745 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1746 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1747 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1748 |
$ hg log -r 'sort(all(), "-desc -date")' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1749 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1750 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1751 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1752 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1753 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1754 |
|
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1755 |
$ hg log -r 'sort(all(), "user -branch date rev")' |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1756 |
3 b112 m111 u11 120 0 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1757 |
4 b111 m112 u111 110 14400 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1758 |
1 b11 m12 u111 112 7200 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1759 |
0 b12 m111 u112 111 10800 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1760 |
2 b111 m11 u12 111 3600 |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1761 |
|
29348
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1762 |
toposort prioritises graph branches |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1763 |
|
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1764 |
$ hg up 2 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1765 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1766 |
$ touch a |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1767 |
$ hg addremove |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1768 |
adding a |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1769 |
$ hg ci -m 't1' -u 'tu' -d '130 0' |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1770 |
created new head |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1771 |
$ echo 'a' >> a |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1772 |
$ hg ci -m 't2' -u 'tu' -d '130 0' |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1773 |
$ hg book book1 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1774 |
$ hg up 4 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1775 |
0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1776 |
(leaving bookmark book1) |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1777 |
$ touch a |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1778 |
$ hg addremove |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1779 |
adding a |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1780 |
$ hg ci -m 't3' -u 'tu' -d '130 0' |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1781 |
|
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1782 |
$ hg log -r 'sort(all(), topo)' |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1783 |
7 b111 t3 tu 130 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1784 |
4 b111 m112 u111 110 14400 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1785 |
3 b112 m111 u11 120 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1786 |
6 b111 t2 tu 130 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1787 |
5 b111 t1 tu 130 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1788 |
2 b111 m11 u12 111 3600 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1789 |
1 b11 m12 u111 112 7200 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1790 |
0 b12 m111 u112 111 10800 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1791 |
|
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1792 |
$ hg log -r 'sort(all(), -topo)' |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1793 |
0 b12 m111 u112 111 10800 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1794 |
1 b11 m12 u111 112 7200 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1795 |
2 b111 m11 u12 111 3600 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1796 |
5 b111 t1 tu 130 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1797 |
6 b111 t2 tu 130 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1798 |
3 b112 m111 u11 120 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1799 |
4 b111 m112 u111 110 14400 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1800 |
7 b111 t3 tu 130 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1801 |
|
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1802 |
$ hg log -r 'sort(all(), topo, topo.firstbranch=book1)' |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1803 |
6 b111 t2 tu 130 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1804 |
5 b111 t1 tu 130 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1805 |
7 b111 t3 tu 130 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1806 |
4 b111 m112 u111 110 14400 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1807 |
3 b112 m111 u11 120 0 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1808 |
2 b111 m11 u12 111 3600 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1809 |
1 b11 m12 u111 112 7200 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1810 |
0 b12 m111 u112 111 10800 |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1811 |
|
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1812 |
topographical sorting can't be combined with other sort keys, and you can't |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1813 |
use the topo.firstbranch option when topo sort is not active: |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1814 |
|
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1815 |
$ hg log -r 'sort(all(), "topo user")' |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1816 |
hg: parse error: topo sort order cannot be combined with other sort keys |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1817 |
[255] |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1818 |
|
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1819 |
$ hg log -r 'sort(all(), user, topo.firstbranch=book1)' |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1820 |
hg: parse error: topo.firstbranch can only be used when using the topo sort key |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1821 |
[255] |
2188f170f5b6
revset: add new topographical sort
Martijn Pieters <mjpieters@fb.com>
parents:
29321
diff
changeset
|
1822 |
|
29766
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
1823 |
topo.firstbranch should accept any kind of expressions: |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
1824 |
|
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
1825 |
$ hg log -r 'sort(0, topo, topo.firstbranch=(book1))' |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
1826 |
0 b12 m111 u112 111 10800 |
5004ef47f437
revset: fix keyword arguments to go through optimization process
Yuya Nishihara <yuya@tcha.org>
parents:
29441
diff
changeset
|
1827 |
|
29001
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1828 |
$ cd .. |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1829 |
$ cd repo |
923fa9e06ea0
revset: make sort() do dumb multi-pass sorting for multiple keys (issue5218)
Yuya Nishihara <yuya@tcha.org>
parents:
28785
diff
changeset
|
1830 |
|
21024
7731a2281cf0
spelling: fixes from spell checker
Mads Kiilerich <madski@unity3d.com>
parents:
20894
diff
changeset
|
1831 |
test subtracting something from an addset |
20736
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1832 |
|
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1833 |
$ log '(outgoing() or removes(a)) - removes(a)' |
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1834 |
8 |
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1835 |
9 |
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1836 |
|
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1837 |
test intersecting something with an addset |
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1838 |
|
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1839 |
$ log 'parents(outgoing() or removes(a))' |
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1840 |
1 |
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1841 |
4 |
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1842 |
5 |
22712
093df3b77f27
revert: bring back usage of `subset & ps` in `parents`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22450
diff
changeset
|
1843 |
8 |
20736
b0203624ab20
revset: extend sorting tests
Lucas Moscovicz <lmoscovicz@fb.com>
parents:
20717
diff
changeset
|
1844 |
|
22861
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1845 |
test that `or` operation combines elements in the right order: |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1846 |
|
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1847 |
$ log '3:4 or 2:5' |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1848 |
3 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1849 |
4 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1850 |
2 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1851 |
5 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1852 |
$ log '3:4 or 5:2' |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1853 |
3 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1854 |
4 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1855 |
5 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1856 |
2 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1857 |
$ log 'sort(3:4 or 2:5)' |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1858 |
2 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1859 |
3 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1860 |
4 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1861 |
5 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1862 |
$ log 'sort(3:4 or 5:2)' |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1863 |
2 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1864 |
3 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1865 |
4 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1866 |
5 |
546fa6576815
revset: restore order of `or` operation as in Mercurial 2.9
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22712
diff
changeset
|
1867 |
|
25383
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1868 |
test that more than one `-r`s are combined in the right order and deduplicated: |
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1869 |
|
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1870 |
$ hg log -T '{rev}\n' -r 3 -r 3 -r 4 -r 5:2 -r 'ancestors(4)' |
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1871 |
3 |
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1872 |
4 |
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1873 |
5 |
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1874 |
2 |
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1875 |
0 |
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1876 |
1 |
5909ac39b86a
revrange: drop unnecessary deduplication of revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25344
diff
changeset
|
1877 |
|
25024
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1878 |
test that `or` operation skips duplicated revisions from right-hand side |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1879 |
|
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1880 |
$ try 'reverse(1::5) or ancestors(4)' |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1881 |
(or |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1882 |
(func |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1883 |
('symbol', 'reverse') |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1884 |
(dagrange |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1885 |
('symbol', '1') |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1886 |
('symbol', '5'))) |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1887 |
(func |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1888 |
('symbol', 'ancestors') |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1889 |
('symbol', '4'))) |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1890 |
* set: |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1891 |
<addset |
26061
be8a4e0800d8
reachableroots: use baseset lazy sorting
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26020
diff
changeset
|
1892 |
<baseset- [1, 3, 5]>, |
25129
40a2cf1c765b
revset: drop redundant filteredset from right-hand side set of "or" operation
Yuya Nishihara <yuya@tcha.org>
parents:
25105
diff
changeset
|
1893 |
<generatorset+>> |
25024
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1894 |
5 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1895 |
3 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1896 |
1 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1897 |
0 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1898 |
2 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1899 |
4 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1900 |
$ try 'sort(ancestors(4) or reverse(1::5))' |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1901 |
(func |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1902 |
('symbol', 'sort') |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1903 |
(or |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1904 |
(func |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1905 |
('symbol', 'ancestors') |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1906 |
('symbol', '4')) |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1907 |
(func |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1908 |
('symbol', 'reverse') |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1909 |
(dagrange |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1910 |
('symbol', '1') |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1911 |
('symbol', '5'))))) |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1912 |
* set: |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1913 |
<addset+ |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1914 |
<generatorset+>, |
26061
be8a4e0800d8
reachableroots: use baseset lazy sorting
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26020
diff
changeset
|
1915 |
<baseset- [1, 3, 5]>> |
25024
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1916 |
0 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1917 |
1 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1918 |
2 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1919 |
3 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1920 |
4 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1921 |
5 |
263bbed1833c
revset: test current behavior of addset class
Yuya Nishihara <yuya@tcha.org>
parents:
24940
diff
changeset
|
1922 |
|
25343
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1923 |
test optimization of trivial `or` operation |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1924 |
|
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1925 |
$ try --optimize '0|(1)|"2"|-2|tip|null' |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1926 |
(or |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1927 |
('symbol', '0') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1928 |
(group |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1929 |
('symbol', '1')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1930 |
('string', '2') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1931 |
(negate |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1932 |
('symbol', '2')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1933 |
('symbol', 'tip') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1934 |
('symbol', 'null')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1935 |
* optimized: |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1936 |
(func |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1937 |
('symbol', '_list') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1938 |
('string', '0\x001\x002\x00-2\x00tip\x00null')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1939 |
* set: |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1940 |
<baseset [0, 1, 2, 8, 9, -1]> |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1941 |
0 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1942 |
1 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1943 |
2 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1944 |
8 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1945 |
9 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1946 |
-1 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1947 |
|
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1948 |
$ try --optimize '0|1|2:3' |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1949 |
(or |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1950 |
('symbol', '0') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1951 |
('symbol', '1') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1952 |
(range |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1953 |
('symbol', '2') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1954 |
('symbol', '3'))) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1955 |
* optimized: |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1956 |
(or |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1957 |
(func |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1958 |
('symbol', '_list') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1959 |
('string', '0\x001')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1960 |
(range |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1961 |
('symbol', '2') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1962 |
('symbol', '3'))) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1963 |
* set: |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1964 |
<addset |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1965 |
<baseset [0, 1]>, |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1966 |
<spanset+ 2:3>> |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1967 |
0 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1968 |
1 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1969 |
2 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1970 |
3 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1971 |
|
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1972 |
$ try --optimize '0:1|2|3:4|5|6' |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1973 |
(or |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1974 |
(range |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1975 |
('symbol', '0') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1976 |
('symbol', '1')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1977 |
('symbol', '2') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1978 |
(range |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1979 |
('symbol', '3') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1980 |
('symbol', '4')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1981 |
('symbol', '5') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1982 |
('symbol', '6')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1983 |
* optimized: |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1984 |
(or |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1985 |
(range |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1986 |
('symbol', '0') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1987 |
('symbol', '1')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1988 |
('symbol', '2') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1989 |
(range |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1990 |
('symbol', '3') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1991 |
('symbol', '4')) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1992 |
(func |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1993 |
('symbol', '_list') |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1994 |
('string', '5\x006'))) |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1995 |
* set: |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1996 |
<addset |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1997 |
<addset |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1998 |
<spanset+ 0:1>, |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
1999 |
<baseset [2]>>, |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2000 |
<addset |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2001 |
<spanset+ 3:4>, |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2002 |
<baseset [5, 6]>>> |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2003 |
0 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2004 |
1 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2005 |
2 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2006 |
3 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2007 |
4 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2008 |
5 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2009 |
6 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2010 |
|
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2011 |
test that `_list` should be narrowed by provided `subset` |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2012 |
|
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2013 |
$ log '0:2 and (null|1|2|3)' |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2014 |
1 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2015 |
2 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2016 |
|
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2017 |
test that `_list` should remove duplicates |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2018 |
|
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2019 |
$ log '0|1|2|1|2|-1|tip' |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2020 |
0 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2021 |
1 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2022 |
2 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2023 |
9 |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2024 |
|
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2025 |
test unknown revision in `_list` |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2026 |
|
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2027 |
$ log '0|unknown' |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2028 |
abort: unknown revision 'unknown'! |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2029 |
[255] |
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2030 |
|
25344
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2031 |
test integer range in `_list` |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2032 |
|
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2033 |
$ log '-1|-10' |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2034 |
9 |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2035 |
0 |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2036 |
|
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2037 |
$ log '-10|-11' |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2038 |
abort: unknown revision '-11'! |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2039 |
[255] |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2040 |
|
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2041 |
$ log '9|10' |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2042 |
abort: unknown revision '10'! |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2043 |
[255] |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2044 |
|
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2045 |
test '0000' != '0' in `_list` |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2046 |
|
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2047 |
$ log '0|0000' |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2048 |
0 |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2049 |
-1 |
ceaf04bb14ff
revset: add fast path for _list() of integer revisions
Yuya Nishihara <yuya@tcha.org>
parents:
25343
diff
changeset
|
2050 |
|
27517
c60a9c16ae25
revset: add hint for list error to use or
timeless <timeless@mozdev.org>
parents:
26638
diff
changeset
|
2051 |
test ',' in `_list` |
c60a9c16ae25
revset: add hint for list error to use or
timeless <timeless@mozdev.org>
parents:
26638
diff
changeset
|
2052 |
$ log '0,1' |
c60a9c16ae25
revset: add hint for list error to use or
timeless <timeless@mozdev.org>
parents:
26638
diff
changeset
|
2053 |
hg: parse error: can't use a list in this context |
c60a9c16ae25
revset: add hint for list error to use or
timeless <timeless@mozdev.org>
parents:
26638
diff
changeset
|
2054 |
(see hg help "revsets.x or y") |
c60a9c16ae25
revset: add hint for list error to use or
timeless <timeless@mozdev.org>
parents:
26638
diff
changeset
|
2055 |
[255] |
27987
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2056 |
$ try '0,1,2' |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2057 |
(list |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2058 |
('symbol', '0') |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2059 |
('symbol', '1') |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2060 |
('symbol', '2')) |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2061 |
hg: parse error: can't use a list in this context |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2062 |
(see hg help "revsets.x or y") |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2063 |
[255] |
27517
c60a9c16ae25
revset: add hint for list error to use or
timeless <timeless@mozdev.org>
parents:
26638
diff
changeset
|
2064 |
|
25309
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2065 |
test that chained `or` operations make balanced addsets |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2066 |
|
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2067 |
$ try '0:1|1:2|2:3|3:4|4:5' |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2068 |
(or |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2069 |
(range |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2070 |
('symbol', '0') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2071 |
('symbol', '1')) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2072 |
(range |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2073 |
('symbol', '1') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2074 |
('symbol', '2')) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2075 |
(range |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2076 |
('symbol', '2') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2077 |
('symbol', '3')) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2078 |
(range |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2079 |
('symbol', '3') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2080 |
('symbol', '4')) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2081 |
(range |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2082 |
('symbol', '4') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2083 |
('symbol', '5'))) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2084 |
* set: |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2085 |
<addset |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2086 |
<addset |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2087 |
<spanset+ 0:1>, |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2088 |
<spanset+ 1:2>>, |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2089 |
<addset |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2090 |
<spanset+ 2:3>, |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2091 |
<addset |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2092 |
<spanset+ 3:4>, |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2093 |
<spanset+ 4:5>>>> |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2094 |
0 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2095 |
1 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2096 |
2 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2097 |
3 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2098 |
4 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2099 |
5 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2100 |
|
25996
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2101 |
no crash by empty group "()" while optimizing `or` operations |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2102 |
|
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2103 |
$ try --optimize '0|()' |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2104 |
(or |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2105 |
('symbol', '0') |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2106 |
(group |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2107 |
None)) |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2108 |
* optimized: |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2109 |
(or |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2110 |
('symbol', '0') |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2111 |
None) |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2112 |
hg: parse error: missing argument |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2113 |
[255] |
b12e00a05d57
revset: prevent crash caused by empty group expression while optimizing "or"
Yuya Nishihara <yuya@tcha.org>
parents:
25995
diff
changeset
|
2114 |
|
25309
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2115 |
test that chained `or` operations never eat up stack (issue4624) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2116 |
(uses `0:1` instead of `0` to avoid future optimization of trivial revisions) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2117 |
|
27991
5daf1a8c5f1d
tests: avoid nested quoting on command line for portability
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27623
diff
changeset
|
2118 |
$ hg log -T '{rev}\n' -r `python -c "print '+'.join(['0:1'] * 500)"` |
25309
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2119 |
0 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2120 |
1 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2121 |
|
25385
a26a55406c0a
revrange: build balanced tree of addsets from revisions (issue4565)
Yuya Nishihara <yuya@tcha.org>
parents:
25383
diff
changeset
|
2122 |
test that repeated `-r` options never eat up stack (issue4565) |
a26a55406c0a
revrange: build balanced tree of addsets from revisions (issue4565)
Yuya Nishihara <yuya@tcha.org>
parents:
25383
diff
changeset
|
2123 |
(uses `-r 0::1` to avoid possible optimization at old-style parser) |
a26a55406c0a
revrange: build balanced tree of addsets from revisions (issue4565)
Yuya Nishihara <yuya@tcha.org>
parents:
25383
diff
changeset
|
2124 |
|
a26a55406c0a
revrange: build balanced tree of addsets from revisions (issue4565)
Yuya Nishihara <yuya@tcha.org>
parents:
25383
diff
changeset
|
2125 |
$ hg log -T '{rev}\n' `python -c "for i in xrange(500): print '-r 0::1 ',"` |
a26a55406c0a
revrange: build balanced tree of addsets from revisions (issue4565)
Yuya Nishihara <yuya@tcha.org>
parents:
25383
diff
changeset
|
2126 |
0 |
a26a55406c0a
revrange: build balanced tree of addsets from revisions (issue4565)
Yuya Nishihara <yuya@tcha.org>
parents:
25383
diff
changeset
|
2127 |
1 |
a26a55406c0a
revrange: build balanced tree of addsets from revisions (issue4565)
Yuya Nishihara <yuya@tcha.org>
parents:
25383
diff
changeset
|
2128 |
|
21893
e967c3b08705
revset: replace _missingancestors optimization with only revset
Siddharth Agarwal <sid0@fb.com>
parents:
21870
diff
changeset
|
2129 |
check that conversion to only works |
20499
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2130 |
$ try --optimize '::3 - ::1' |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2131 |
(minus |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2132 |
(dagrangepre |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2133 |
('symbol', '3')) |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2134 |
(dagrangepre |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2135 |
('symbol', '1'))) |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2136 |
* optimized: |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2137 |
(func |
21893
e967c3b08705
revset: replace _missingancestors optimization with only revset
Siddharth Agarwal <sid0@fb.com>
parents:
21870
diff
changeset
|
2138 |
('symbol', 'only') |
20499
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2139 |
(list |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2140 |
('symbol', '3') |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2141 |
('symbol', '1'))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2142 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2143 |
<baseset+ [3]> |
20499
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2144 |
3 |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2145 |
$ try --optimize 'ancestors(1) - ancestors(3)' |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2146 |
(minus |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2147 |
(func |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2148 |
('symbol', 'ancestors') |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2149 |
('symbol', '1')) |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2150 |
(func |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2151 |
('symbol', 'ancestors') |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2152 |
('symbol', '3'))) |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2153 |
* optimized: |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2154 |
(func |
21893
e967c3b08705
revset: replace _missingancestors optimization with only revset
Siddharth Agarwal <sid0@fb.com>
parents:
21870
diff
changeset
|
2155 |
('symbol', 'only') |
20499
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2156 |
(list |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2157 |
('symbol', '1') |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2158 |
('symbol', '3'))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2159 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2160 |
<baseset+ []> |
20499
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2161 |
$ try --optimize 'not ::2 and ::6' |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2162 |
(and |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2163 |
(not |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2164 |
(dagrangepre |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2165 |
('symbol', '2'))) |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2166 |
(dagrangepre |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2167 |
('symbol', '6'))) |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2168 |
* optimized: |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2169 |
(func |
21893
e967c3b08705
revset: replace _missingancestors optimization with only revset
Siddharth Agarwal <sid0@fb.com>
parents:
21870
diff
changeset
|
2170 |
('symbol', 'only') |
20499
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2171 |
(list |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2172 |
('symbol', '6') |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2173 |
('symbol', '2'))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2174 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2175 |
<baseset+ [3, 4, 5, 6]> |
20499
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2176 |
3 |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2177 |
4 |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2178 |
5 |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2179 |
6 |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2180 |
$ try --optimize 'ancestors(6) and not ancestors(4)' |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2181 |
(and |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2182 |
(func |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2183 |
('symbol', 'ancestors') |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2184 |
('symbol', '6')) |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2185 |
(not |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2186 |
(func |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2187 |
('symbol', 'ancestors') |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2188 |
('symbol', '4')))) |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2189 |
* optimized: |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2190 |
(func |
21893
e967c3b08705
revset: replace _missingancestors optimization with only revset
Siddharth Agarwal <sid0@fb.com>
parents:
21870
diff
changeset
|
2191 |
('symbol', 'only') |
20499
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2192 |
(list |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2193 |
('symbol', '6') |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2194 |
('symbol', '4'))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2195 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2196 |
<baseset+ [3, 5, 6]> |
20499
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2197 |
3 |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2198 |
5 |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2199 |
6 |
2efd608473fb
revset: optimize missing ancestor expressions
Siddharth Agarwal <sid0@fb.com>
parents:
20393
diff
changeset
|
2200 |
|
25995
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2201 |
no crash by empty group "()" while optimizing to "only()" |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2202 |
|
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2203 |
$ try --optimize '::1 and ()' |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2204 |
(and |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2205 |
(dagrangepre |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2206 |
('symbol', '1')) |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2207 |
(group |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2208 |
None)) |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2209 |
* optimized: |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2210 |
(and |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2211 |
None |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2212 |
(func |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2213 |
('symbol', 'ancestors') |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2214 |
('symbol', '1'))) |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2215 |
hg: parse error: missing argument |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2216 |
[255] |
4f703dcc626f
revset: prevent crash caused by empty group expression while optimizing "and"
Yuya Nishihara <yuya@tcha.org>
parents:
25819
diff
changeset
|
2217 |
|
29441
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2218 |
invalid function call should not be optimized to only() |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2219 |
|
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2220 |
$ log '"ancestors"(6) and not ancestors(4)' |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2221 |
hg: parse error: not a symbol |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2222 |
[255] |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2223 |
|
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2224 |
$ log 'ancestors(6) and not "ancestors"(4)' |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2225 |
hg: parse error: not a symbol |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2226 |
[255] |
9e8d258708bb
revset: check invalid function syntax "func-name"() explicitly
Yuya Nishihara <yuya@tcha.org>
parents:
29408
diff
changeset
|
2227 |
|
16820
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2228 |
we can use patterns when searching for tags |
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2229 |
|
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2230 |
$ log 'tag("1..*")' |
23978
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2231 |
abort: tag '1..*' does not exist! |
16820
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2232 |
[255] |
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2233 |
$ log 'tag("re:1..*")' |
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2234 |
6 |
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2235 |
$ log 'tag("re:[0-9].[0-9]")' |
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2236 |
6 |
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2237 |
$ log 'tag("literal:1.0")' |
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2238 |
6 |
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2239 |
$ log 'tag("re:0..*")' |
20f55613fb2a
revset: add pattern matching to 'tag' revset expression
Simon King <simon@simonking.org.uk>
parents:
16778
diff
changeset
|
2240 |
|
13925
c315ffc13a25
tests: add tests for non-existant branch/tag/bookmark
Idan Kamara <idankk86@gmail.com>
parents:
13665
diff
changeset
|
2241 |
$ log 'tag(unknown)' |
23978
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2242 |
abort: tag 'unknown' does not exist! |
13925
c315ffc13a25
tests: add tests for non-existant branch/tag/bookmark
Idan Kamara <idankk86@gmail.com>
parents:
13665
diff
changeset
|
2243 |
[255] |
23978
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2244 |
$ log 'tag("re:unknown")' |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2245 |
$ log 'present(tag("unknown"))' |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2246 |
$ log 'present(tag("re:unknown"))' |
13925
c315ffc13a25
tests: add tests for non-existant branch/tag/bookmark
Idan Kamara <idankk86@gmail.com>
parents:
13665
diff
changeset
|
2247 |
$ log 'branch(unknown)' |
c315ffc13a25
tests: add tests for non-existant branch/tag/bookmark
Idan Kamara <idankk86@gmail.com>
parents:
13665
diff
changeset
|
2248 |
abort: unknown revision 'unknown'! |
c315ffc13a25
tests: add tests for non-existant branch/tag/bookmark
Idan Kamara <idankk86@gmail.com>
parents:
13665
diff
changeset
|
2249 |
[255] |
26537
832feae7c986
revset: do not fall through to revspec for literal: branch (issue4838)
Yuya Nishihara <yuya@tcha.org>
parents:
26232
diff
changeset
|
2250 |
$ log 'branch("literal:unknown")' |
832feae7c986
revset: do not fall through to revspec for literal: branch (issue4838)
Yuya Nishihara <yuya@tcha.org>
parents:
26232
diff
changeset
|
2251 |
abort: branch 'unknown' does not exist! |
832feae7c986
revset: do not fall through to revspec for literal: branch (issue4838)
Yuya Nishihara <yuya@tcha.org>
parents:
26232
diff
changeset
|
2252 |
[255] |
23978
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2253 |
$ log 'branch("re:unknown")' |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2254 |
$ log 'present(branch("unknown"))' |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2255 |
$ log 'present(branch("re:unknown"))' |
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2256 |
$ log 'user(bob)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2257 |
2 |
11419 | 2258 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2259 |
$ log '4::8' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2260 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2261 |
8 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2262 |
$ log '4:8' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2263 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2264 |
5 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2265 |
6 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2266 |
7 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2267 |
8 |
11419 | 2268 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2269 |
$ log 'sort(!merge() & (modifies(b) | user(bob) | keyword(bug) | keyword(issue) & 1::9), "-date")' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2270 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2271 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2272 |
5 |
11456
88abbb046e66
revset: deal with empty sets in range endpoints
Matt Mackall <mpm@selenic.com>
parents:
11419
diff
changeset
|
2273 |
|
12105
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2274 |
$ log 'not 0 and 0:2' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2275 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2276 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2277 |
$ log 'not 1 and 0:2' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2278 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2279 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2280 |
$ log 'not 2 and 0:2' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2281 |
0 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2282 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2283 |
$ log '(1 and 2)::' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2284 |
$ log '(1 and 2):' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2285 |
$ log '(1 and 2):3' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2286 |
$ log 'sort(head(), -rev)' |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2287 |
9 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2288 |
7 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2289 |
6 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2290 |
5 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2291 |
4 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2292 |
3 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2293 |
2 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2294 |
1 |
6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12103
diff
changeset
|
2295 |
0 |
12616
e797fdf91df4
revset: lower precedence of minus infix (issue2361)
Matt Mackall <mpm@selenic.com>
parents:
12408
diff
changeset
|
2296 |
$ log '4::8 - 8' |
e797fdf91df4
revset: lower precedence of minus infix (issue2361)
Matt Mackall <mpm@selenic.com>
parents:
12408
diff
changeset
|
2297 |
4 |
29321
de4a80a2b45c
test-revset: fix test vector for ordering issue of matching()
Yuya Nishihara <yuya@tcha.org>
parents:
29264
diff
changeset
|
2298 |
|
de4a80a2b45c
test-revset: fix test vector for ordering issue of matching()
Yuya Nishihara <yuya@tcha.org>
parents:
29264
diff
changeset
|
2299 |
matching() should preserve the order of the input set: |
de4a80a2b45c
test-revset: fix test vector for ordering issue of matching()
Yuya Nishihara <yuya@tcha.org>
parents:
29264
diff
changeset
|
2300 |
|
de4a80a2b45c
test-revset: fix test vector for ordering issue of matching()
Yuya Nishihara <yuya@tcha.org>
parents:
29264
diff
changeset
|
2301 |
$ log '(2 or 3 or 1) and matching(1 or 2 or 3)' |
16640
592e0beee8b0
revset: make matching() preserve input revision order
Patrick Mezard <patrick@mezard.eu>
parents:
16521
diff
changeset
|
2302 |
2 |
592e0beee8b0
revset: make matching() preserve input revision order
Patrick Mezard <patrick@mezard.eu>
parents:
16521
diff
changeset
|
2303 |
3 |
592e0beee8b0
revset: make matching() preserve input revision order
Patrick Mezard <patrick@mezard.eu>
parents:
16521
diff
changeset
|
2304 |
1 |
12786
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2305 |
|
23978
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2306 |
$ log 'named("unknown")' |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2307 |
abort: namespace 'unknown' does not exist! |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2308 |
[255] |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2309 |
$ log 'named("re:unknown")' |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2310 |
abort: no namespace exists that match 'unknown'! |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2311 |
[255] |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2312 |
$ log 'present(named("unknown"))' |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2313 |
$ log 'present(named("re:unknown"))' |
eeb5d5ab14a6
revset: raise RepoLookupError to make present() predicate continue the query
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23956
diff
changeset
|
2314 |
|
24008
873eb5db89c8
revset: get revision number of each node from target namespaces
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2315 |
$ log 'tag()' |
873eb5db89c8
revset: get revision number of each node from target namespaces
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2316 |
6 |
873eb5db89c8
revset: get revision number of each node from target namespaces
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2317 |
$ log 'named("tags")' |
873eb5db89c8
revset: get revision number of each node from target namespaces
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2318 |
6 |
873eb5db89c8
revset: get revision number of each node from target namespaces
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2319 |
|
12786
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2320 |
issue2437 |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2321 |
|
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2322 |
$ log '3 and p1(5)' |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2323 |
3 |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2324 |
$ log '4 and p2(6)' |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2325 |
4 |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2326 |
$ log '1 and parents(:2)' |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2327 |
1 |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2328 |
$ log '2 and children(1:)' |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2329 |
2 |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2330 |
$ log 'roots(all()) or roots(all())' |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2331 |
0 |
16394
f3df7d34791e
revset: do not ignore input revisions in roots()
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2332 |
$ hg debugrevspec 'roots(all()) or roots(all())' |
f3df7d34791e
revset: do not ignore input revisions in roots()
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2333 |
0 |
12786
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2334 |
$ log 'heads(branch(é)) or heads(branch(é))' |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2335 |
9 |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2336 |
$ log 'ancestors(8) and (heads(branch("-a-b-c-")) or heads(branch(é)))' |
9aae04f4fcf6
revset: disable subset optimization for parents() and children() (issue2437)
Wagner Bruna <wbruna@yahoo.com>
parents:
12736
diff
changeset
|
2337 |
4 |
13665
e798e430c5e5
revset: report a parse error if a revset is not parsed completely (issue2654)
Bernhard Leiner <bleiner@gmail.com>
parents:
12942
diff
changeset
|
2338 |
|
e798e430c5e5
revset: report a parse error if a revset is not parsed completely (issue2654)
Bernhard Leiner <bleiner@gmail.com>
parents:
12942
diff
changeset
|
2339 |
issue2654: report a parse error if the revset was not completely parsed |
e798e430c5e5
revset: report a parse error if a revset is not parsed completely (issue2654)
Bernhard Leiner <bleiner@gmail.com>
parents:
12942
diff
changeset
|
2340 |
|
e798e430c5e5
revset: report a parse error if a revset is not parsed completely (issue2654)
Bernhard Leiner <bleiner@gmail.com>
parents:
12942
diff
changeset
|
2341 |
$ log '1 OR 2' |
e798e430c5e5
revset: report a parse error if a revset is not parsed completely (issue2654)
Bernhard Leiner <bleiner@gmail.com>
parents:
12942
diff
changeset
|
2342 |
hg: parse error at 2: invalid token |
e798e430c5e5
revset: report a parse error if a revset is not parsed completely (issue2654)
Bernhard Leiner <bleiner@gmail.com>
parents:
12942
diff
changeset
|
2343 |
[255] |
e798e430c5e5
revset: report a parse error if a revset is not parsed completely (issue2654)
Bernhard Leiner <bleiner@gmail.com>
parents:
12942
diff
changeset
|
2344 |
|
13932
34f577007ffe
revsets: preserve ordering with the or operator
Augie Fackler <durin42@gmail.com>
parents:
13925
diff
changeset
|
2345 |
or operator should preserve ordering: |
34f577007ffe
revsets: preserve ordering with the or operator
Augie Fackler <durin42@gmail.com>
parents:
13925
diff
changeset
|
2346 |
$ log 'reverse(2::4) or tip' |
34f577007ffe
revsets: preserve ordering with the or operator
Augie Fackler <durin42@gmail.com>
parents:
13925
diff
changeset
|
2347 |
4 |
34f577007ffe
revsets: preserve ordering with the or operator
Augie Fackler <durin42@gmail.com>
parents:
13925
diff
changeset
|
2348 |
2 |
34f577007ffe
revsets: preserve ordering with the or operator
Augie Fackler <durin42@gmail.com>
parents:
13925
diff
changeset
|
2349 |
9 |
14070
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2350 |
|
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2351 |
parentrevspec |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2352 |
|
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2353 |
$ log 'merge()^0' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2354 |
6 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2355 |
$ log 'merge()^' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2356 |
5 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2357 |
$ log 'merge()^1' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2358 |
5 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2359 |
$ log 'merge()^2' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2360 |
4 |
14080
debe5083a84e
revset: add tests for multiple and mixed ^ and ~ operators
Kevin Gessner <kevin@kevingessner.com>
parents:
14070
diff
changeset
|
2361 |
$ log 'merge()^^' |
debe5083a84e
revset: add tests for multiple and mixed ^ and ~ operators
Kevin Gessner <kevin@kevingessner.com>
parents:
14070
diff
changeset
|
2362 |
3 |
debe5083a84e
revset: add tests for multiple and mixed ^ and ~ operators
Kevin Gessner <kevin@kevingessner.com>
parents:
14070
diff
changeset
|
2363 |
$ log 'merge()^1^' |
debe5083a84e
revset: add tests for multiple and mixed ^ and ~ operators
Kevin Gessner <kevin@kevingessner.com>
parents:
14070
diff
changeset
|
2364 |
3 |
debe5083a84e
revset: add tests for multiple and mixed ^ and ~ operators
Kevin Gessner <kevin@kevingessner.com>
parents:
14070
diff
changeset
|
2365 |
$ log 'merge()^^^' |
debe5083a84e
revset: add tests for multiple and mixed ^ and ~ operators
Kevin Gessner <kevin@kevingessner.com>
parents:
14070
diff
changeset
|
2366 |
1 |
14070
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2367 |
|
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2368 |
$ log 'merge()~0' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2369 |
6 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2370 |
$ log 'merge()~1' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2371 |
5 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2372 |
$ log 'merge()~2' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2373 |
3 |
14080
debe5083a84e
revset: add tests for multiple and mixed ^ and ~ operators
Kevin Gessner <kevin@kevingessner.com>
parents:
14070
diff
changeset
|
2374 |
$ log 'merge()~2^1' |
debe5083a84e
revset: add tests for multiple and mixed ^ and ~ operators
Kevin Gessner <kevin@kevingessner.com>
parents:
14070
diff
changeset
|
2375 |
1 |
14070
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2376 |
$ log 'merge()~3' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2377 |
1 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2378 |
|
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2379 |
$ log '(-3:tip)^' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2380 |
4 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2381 |
6 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2382 |
8 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2383 |
|
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2384 |
$ log 'tip^foo' |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2385 |
hg: parse error: ^ expects a number 0, 1, or 2 |
305c97670d7a
revset: add ^ and ~ operators from parentrevspec extension
Kevin Gessner <kevin@kevingessner.com>
parents:
13932
diff
changeset
|
2386 |
[255] |
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2387 |
|
24220
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2388 |
Bogus function gets suggestions |
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2389 |
$ log 'add()' |
24222
02d7b5cd373b
dispatch: offer suggestions of similar-named commands
Augie Fackler <augie@google.com>
parents:
24221
diff
changeset
|
2390 |
hg: parse error: unknown identifier: add |
27623
b3376fba4ab9
dispatch: report similar names consistently
Bryan O'Sullivan <bos@serpentine.com>
parents:
27586
diff
changeset
|
2391 |
(did you mean adds?) |
24220
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2392 |
[255] |
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2393 |
$ log 'added()' |
24222
02d7b5cd373b
dispatch: offer suggestions of similar-named commands
Augie Fackler <augie@google.com>
parents:
24221
diff
changeset
|
2394 |
hg: parse error: unknown identifier: added |
27623
b3376fba4ab9
dispatch: report similar names consistently
Bryan O'Sullivan <bos@serpentine.com>
parents:
27586
diff
changeset
|
2395 |
(did you mean adds?) |
24220
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2396 |
[255] |
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2397 |
$ log 'remo()' |
24222
02d7b5cd373b
dispatch: offer suggestions of similar-named commands
Augie Fackler <augie@google.com>
parents:
24221
diff
changeset
|
2398 |
hg: parse error: unknown identifier: remo |
24221
4e240d6ab898
dispatch: offer near-edit-distance suggestions for {file,rev}set functions
Augie Fackler <augie@google.com>
parents:
24220
diff
changeset
|
2399 |
(did you mean one of remote, removes?) |
24220
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2400 |
[255] |
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2401 |
$ log 'babar()' |
24222
02d7b5cd373b
dispatch: offer suggestions of similar-named commands
Augie Fackler <augie@google.com>
parents:
24221
diff
changeset
|
2402 |
hg: parse error: unknown identifier: babar |
24220
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2403 |
[255] |
fe195d41f7d2
test-revset: add tests for missing function output
Augie Fackler <augie@google.com>
parents:
24204
diff
changeset
|
2404 |
|
25632
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2405 |
Bogus function with a similar internal name doesn't suggest the internal name |
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2406 |
$ log 'matches()' |
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2407 |
hg: parse error: unknown identifier: matches |
27623
b3376fba4ab9
dispatch: report similar names consistently
Bryan O'Sullivan <bos@serpentine.com>
parents:
27586
diff
changeset
|
2408 |
(did you mean matching?) |
25632
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2409 |
[255] |
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2410 |
|
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2411 |
Undocumented functions aren't suggested as similar either |
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2412 |
$ log 'wdir2()' |
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2413 |
hg: parse error: unknown identifier: wdir2 |
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2414 |
[255] |
015c0d1087a3
revset: don't suggest private or undocumented queries
Matt Harbison <matt_harbison@yahoo.com>
parents:
25385
diff
changeset
|
2415 |
|
20798
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2416 |
multiple revspecs |
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2417 |
|
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2418 |
$ hg log -r 'tip~1:tip' -r 'tip~2:tip~1' --template '{rev}\n' |
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2419 |
8 |
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2420 |
9 |
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2421 |
4 |
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2422 |
5 |
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2423 |
6 |
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2424 |
7 |
170d6d591a7d
scmutil: fix revrange when multiple revs are specified
Durham Goode <durham@fb.com>
parents:
20781
diff
changeset
|
2425 |
|
20862
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2426 |
test usage in revpair (with "+") |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2427 |
|
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2428 |
(real pair) |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2429 |
|
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2430 |
$ hg diff -r 'tip^^' -r 'tip' |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2431 |
diff -r 2326846efdab -r 24286f4ae135 .hgtags |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2432 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2433 |
+++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000 |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2434 |
@@ -0,0 +1,1 @@ |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2435 |
+e0cc66ef77e8b6f711815af4e001a6594fde3ba5 1.0 |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2436 |
$ hg diff -r 'tip^^::tip' |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2437 |
diff -r 2326846efdab -r 24286f4ae135 .hgtags |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2438 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2439 |
+++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000 |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2440 |
@@ -0,0 +1,1 @@ |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2441 |
+e0cc66ef77e8b6f711815af4e001a6594fde3ba5 1.0 |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2442 |
|
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2443 |
(single rev) |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2444 |
|
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2445 |
$ hg diff -r 'tip^' -r 'tip^' |
26020
cc3a30ff9490
revpair: restrict odd-range handling to top-level x:y expression (issue4774)
Yuya Nishihara <yuya@tcha.org>
parents:
25998
diff
changeset
|
2446 |
$ hg diff -r 'tip^:tip^' |
20862
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2447 |
|
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2448 |
(single rev that does not looks like a range) |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2449 |
|
26020
cc3a30ff9490
revpair: restrict odd-range handling to top-level x:y expression (issue4774)
Yuya Nishihara <yuya@tcha.org>
parents:
25998
diff
changeset
|
2450 |
$ hg diff -r 'tip^::tip^ or tip^' |
cc3a30ff9490
revpair: restrict odd-range handling to top-level x:y expression (issue4774)
Yuya Nishihara <yuya@tcha.org>
parents:
25998
diff
changeset
|
2451 |
diff -r d5d0dcbdc4d9 .hgtags |
cc3a30ff9490
revpair: restrict odd-range handling to top-level x:y expression (issue4774)
Yuya Nishihara <yuya@tcha.org>
parents:
25998
diff
changeset
|
2452 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
cc3a30ff9490
revpair: restrict odd-range handling to top-level x:y expression (issue4774)
Yuya Nishihara <yuya@tcha.org>
parents:
25998
diff
changeset
|
2453 |
+++ b/.hgtags * (glob) |
cc3a30ff9490
revpair: restrict odd-range handling to top-level x:y expression (issue4774)
Yuya Nishihara <yuya@tcha.org>
parents:
25998
diff
changeset
|
2454 |
@@ -0,0 +1,1 @@ |
cc3a30ff9490
revpair: restrict odd-range handling to top-level x:y expression (issue4774)
Yuya Nishihara <yuya@tcha.org>
parents:
25998
diff
changeset
|
2455 |
+e0cc66ef77e8b6f711815af4e001a6594fde3ba5 1.0 |
20862
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2456 |
$ hg diff -r 'tip^ or tip^' |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2457 |
diff -r d5d0dcbdc4d9 .hgtags |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2458 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2459 |
+++ b/.hgtags * (glob) |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2460 |
@@ -0,0 +1,1 @@ |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2461 |
+e0cc66ef77e8b6f711815af4e001a6594fde3ba5 1.0 |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2462 |
|
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2463 |
(no rev) |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2464 |
|
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2465 |
$ hg diff -r 'author("babar") or author("celeste")' |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2466 |
abort: empty revision range |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2467 |
[255] |
97b2f26dfc43
revpair: smartset compatibility
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20798
diff
changeset
|
2468 |
|
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2469 |
aliases: |
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2470 |
|
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2471 |
$ echo '[revsetalias]' >> .hg/hgrc |
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2472 |
$ echo 'm = merge()' >> .hg/hgrc |
24883
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2473 |
(revset aliases can override builtin revsets) |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2474 |
$ echo 'p2($1) = p1($1)' >> .hg/hgrc |
16096
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2475 |
$ echo 'sincem = descendants(m)' >> .hg/hgrc |
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2476 |
$ echo 'd($1) = reverse(sort($1, date))' >> .hg/hgrc |
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2477 |
$ echo 'rs(ARG1, ARG2) = reverse(sort(ARG1, ARG2))' >> .hg/hgrc |
14723
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2478 |
$ echo 'rs4(ARG1, ARGA, ARGB, ARG2) = reverse(sort(ARG1, ARG2))' >> .hg/hgrc |
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2479 |
|
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2480 |
$ try m |
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2481 |
('symbol', 'm') |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2482 |
* expanded: |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2483 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2484 |
('symbol', 'merge') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2485 |
None) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2486 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2487 |
<filteredset |
28424
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
2488 |
<fullreposet+ 0:9>, |
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
2489 |
<merge>> |
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2490 |
6 |
16096
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2491 |
|
24892
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2492 |
$ HGPLAIN=1 |
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2493 |
$ export HGPLAIN |
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2494 |
$ try m |
24883
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2495 |
('symbol', 'm') |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2496 |
abort: unknown revision 'm'! |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2497 |
[255] |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2498 |
|
24892
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2499 |
$ HGPLAINEXCEPT=revsetalias |
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2500 |
$ export HGPLAINEXCEPT |
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2501 |
$ try m |
24883
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2502 |
('symbol', 'm') |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2503 |
* expanded: |
24883
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2504 |
(func |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2505 |
('symbol', 'merge') |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2506 |
None) |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2507 |
* set: |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2508 |
<filteredset |
28424
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
2509 |
<fullreposet+ 0:9>, |
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
2510 |
<merge>> |
24883
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2511 |
6 |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2512 |
|
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2513 |
$ unset HGPLAIN |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2514 |
$ unset HGPLAINEXCEPT |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2515 |
|
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2516 |
$ try 'p2(.)' |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2517 |
(func |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2518 |
('symbol', 'p2') |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2519 |
('symbol', '.')) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2520 |
* expanded: |
24883
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2521 |
(func |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2522 |
('symbol', 'p1') |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2523 |
('symbol', '.')) |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2524 |
* set: |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2525 |
<baseset+ [8]> |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2526 |
8 |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2527 |
|
24892
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2528 |
$ HGPLAIN=1 |
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2529 |
$ export HGPLAIN |
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2530 |
$ try 'p2(.)' |
24883
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2531 |
(func |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2532 |
('symbol', 'p2') |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2533 |
('symbol', '.')) |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2534 |
* set: |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2535 |
<baseset+ []> |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2536 |
|
24892
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2537 |
$ HGPLAINEXCEPT=revsetalias |
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2538 |
$ export HGPLAINEXCEPT |
8cc6036bca53
tests: make tests with temporary environment setting portable
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24883
diff
changeset
|
2539 |
$ try 'p2(.)' |
24883
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2540 |
(func |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2541 |
('symbol', 'p2') |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2542 |
('symbol', '.')) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2543 |
* expanded: |
24883
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2544 |
(func |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2545 |
('symbol', 'p1') |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2546 |
('symbol', '.')) |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2547 |
* set: |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2548 |
<baseset+ [8]> |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2549 |
8 |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2550 |
|
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2551 |
$ unset HGPLAIN |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2552 |
$ unset HGPLAINEXCEPT |
09049042ab99
ui: disable revsetaliases in plain mode (BC)
Siddharth Agarwal <sid0@fb.com>
parents:
24708
diff
changeset
|
2553 |
|
16096
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2554 |
test alias recursion |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2555 |
|
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2556 |
$ try sincem |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2557 |
('symbol', 'sincem') |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2558 |
* expanded: |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2559 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2560 |
('symbol', 'descendants') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2561 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2562 |
('symbol', 'merge') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2563 |
None)) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2564 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2565 |
<addset+ |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2566 |
<filteredset |
28424
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
2567 |
<fullreposet+ 0:9>, |
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
2568 |
<merge>>, |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2569 |
<generatorset+>> |
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2570 |
6 |
16096
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2571 |
7 |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2572 |
|
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2573 |
test infinite recursion |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2574 |
|
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2575 |
$ echo 'recurse1 = recurse2' >> .hg/hgrc |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2576 |
$ echo 'recurse2 = recurse1' >> .hg/hgrc |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2577 |
$ try recurse1 |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2578 |
('symbol', 'recurse1') |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2579 |
hg: parse error: infinite expansion of revset alias "recurse1" detected |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2580 |
[255] |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2581 |
|
16772
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2582 |
$ echo 'level1($1, $2) = $1 or $2' >> .hg/hgrc |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2583 |
$ echo 'level2($1, $2) = level1($2, $1)' >> .hg/hgrc |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2584 |
$ try "level2(level1(1, 2), 3)" |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2585 |
(func |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2586 |
('symbol', 'level2') |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2587 |
(list |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2588 |
(func |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2589 |
('symbol', 'level1') |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2590 |
(list |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2591 |
('symbol', '1') |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2592 |
('symbol', '2'))) |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2593 |
('symbol', '3'))) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2594 |
* expanded: |
16772
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2595 |
(or |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2596 |
('symbol', '3') |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2597 |
(or |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2598 |
('symbol', '1') |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2599 |
('symbol', '2'))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2600 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2601 |
<addset |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2602 |
<baseset [3]>, |
25343
7fbef7932af9
revset: optimize 'or' operation of trivial revisions to a list
Yuya Nishihara <yuya@tcha.org>
parents:
25309
diff
changeset
|
2603 |
<baseset [1, 2]>> |
16772
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2604 |
3 |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2605 |
1 |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2606 |
2 |
30e46d7138de
revset: fix infinite alias expansion detection
Patrick Mezard <patrick@mezard.eu>
parents:
16771
diff
changeset
|
2607 |
|
16096
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2608 |
test nesting and variable passing |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2609 |
|
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2610 |
$ echo 'nested($1) = nested2($1)' >> .hg/hgrc |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2611 |
$ echo 'nested2($1) = nested3($1)' >> .hg/hgrc |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2612 |
$ echo 'nested3($1) = max($1)' >> .hg/hgrc |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2613 |
$ try 'nested(2:5)' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2614 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2615 |
('symbol', 'nested') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2616 |
(range |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2617 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2618 |
('symbol', '5'))) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2619 |
* expanded: |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2620 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2621 |
('symbol', 'max') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2622 |
(range |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2623 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2624 |
('symbol', '5'))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2625 |
* set: |
28427
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2626 |
<baseset |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2627 |
<max |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2628 |
<fullreposet+ 0:9>, |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2629 |
<spanset+ 2:5>>> |
16096
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2630 |
5 |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2631 |
|
25309
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2632 |
test chained `or` operations are flattened at parsing phase |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2633 |
|
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2634 |
$ echo 'chainedorops($1, $2, $3) = $1|$2|$3' >> .hg/hgrc |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2635 |
$ try 'chainedorops(0:1, 1:2, 2:3)' |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2636 |
(func |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2637 |
('symbol', 'chainedorops') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2638 |
(list |
27987
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2639 |
(range |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2640 |
('symbol', '0') |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2641 |
('symbol', '1')) |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2642 |
(range |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2643 |
('symbol', '1') |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2644 |
('symbol', '2')) |
25309
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2645 |
(range |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2646 |
('symbol', '2') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2647 |
('symbol', '3')))) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2648 |
* expanded: |
25309
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2649 |
(or |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2650 |
(range |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2651 |
('symbol', '0') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2652 |
('symbol', '1')) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2653 |
(range |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2654 |
('symbol', '1') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2655 |
('symbol', '2')) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2656 |
(range |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2657 |
('symbol', '2') |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2658 |
('symbol', '3'))) |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2659 |
* set: |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2660 |
<addset |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2661 |
<spanset+ 0:1>, |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2662 |
<addset |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2663 |
<spanset+ 1:2>, |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2664 |
<spanset+ 2:3>>> |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2665 |
0 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2666 |
1 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2667 |
2 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2668 |
3 |
b333ca94403d
revset: reduce nesting of chained 'or' operations (issue4624)
Yuya Nishihara <yuya@tcha.org>
parents:
25295
diff
changeset
|
2669 |
|
16096
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2670 |
test variable isolation, variable placeholders are rewritten as string |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2671 |
then parsed and matched again as string. Check they do not leak too |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2672 |
far away. |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2673 |
|
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2674 |
$ echo 'injectparamasstring = max("$1")' >> .hg/hgrc |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2675 |
$ echo 'callinjection($1) = descendants(injectparamasstring)' >> .hg/hgrc |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2676 |
$ try 'callinjection(2:5)' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2677 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2678 |
('symbol', 'callinjection') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2679 |
(range |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2680 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2681 |
('symbol', '5'))) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2682 |
* expanded: |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2683 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2684 |
('symbol', 'descendants') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2685 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2686 |
('symbol', 'max') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2687 |
('string', '$1'))) |
16096
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2688 |
abort: unknown revision '$1'! |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2689 |
[255] |
b8be450638f6
revset: fix alias substitution recursion (issue3240)
Patrick Mezard <patrick@mezard.eu>
parents:
16008
diff
changeset
|
2690 |
|
28688
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2691 |
test scope of alias expansion: 'universe' is expanded prior to 'shadowall(0)', |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2692 |
but 'all()' should never be substituded to '0()'. |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2693 |
|
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2694 |
$ echo 'universe = all()' >> .hg/hgrc |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2695 |
$ echo 'shadowall(all) = all and universe' >> .hg/hgrc |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2696 |
$ try 'shadowall(0)' |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2697 |
(func |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2698 |
('symbol', 'shadowall') |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2699 |
('symbol', '0')) |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2700 |
* expanded: |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2701 |
(and |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2702 |
('symbol', '0') |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2703 |
(func |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2704 |
('symbol', 'all') |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2705 |
None)) |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2706 |
* set: |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2707 |
<filteredset |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2708 |
<baseset [0]>, |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2709 |
<spanset+ 0:9>> |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2710 |
0 |
3e0d03c3c594
revset: add test that should fail if '_aliasarg' tag is removed
Yuya Nishihara <yuya@tcha.org>
parents:
28629
diff
changeset
|
2711 |
|
28690
b56bf98c8afb
revset: drop redundant check for unknown alias arguments
Yuya Nishihara <yuya@tcha.org>
parents:
28689
diff
changeset
|
2712 |
test unknown reference: |
b56bf98c8afb
revset: drop redundant check for unknown alias arguments
Yuya Nishihara <yuya@tcha.org>
parents:
28689
diff
changeset
|
2713 |
|
b56bf98c8afb
revset: drop redundant check for unknown alias arguments
Yuya Nishihara <yuya@tcha.org>
parents:
28689
diff
changeset
|
2714 |
$ try "unknownref(0)" --config 'revsetalias.unknownref($1)=$1:$2' |
b56bf98c8afb
revset: drop redundant check for unknown alias arguments
Yuya Nishihara <yuya@tcha.org>
parents:
28689
diff
changeset
|
2715 |
(func |
b56bf98c8afb
revset: drop redundant check for unknown alias arguments
Yuya Nishihara <yuya@tcha.org>
parents:
28689
diff
changeset
|
2716 |
('symbol', 'unknownref') |
b56bf98c8afb
revset: drop redundant check for unknown alias arguments
Yuya Nishihara <yuya@tcha.org>
parents:
28689
diff
changeset
|
2717 |
('symbol', '0')) |
29059
8eba4cdcfd81
parser: shorten prefix of alias parsing errors
Yuya Nishihara <yuya@tcha.org>
parents:
29058
diff
changeset
|
2718 |
abort: bad definition of revset alias "unknownref": invalid symbol '$2' |
28690
b56bf98c8afb
revset: drop redundant check for unknown alias arguments
Yuya Nishihara <yuya@tcha.org>
parents:
28689
diff
changeset
|
2719 |
[255] |
b56bf98c8afb
revset: drop redundant check for unknown alias arguments
Yuya Nishihara <yuya@tcha.org>
parents:
28689
diff
changeset
|
2720 |
|
23725
6a81f88758aa
revset: delay showing parse error for the revset alias until it is referred
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23062
diff
changeset
|
2721 |
$ hg debugrevspec --debug --config revsetalias.anotherbadone='branch(' "tip" |
6a81f88758aa
revset: delay showing parse error for the revset alias until it is referred
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23062
diff
changeset
|
2722 |
('symbol', 'tip') |
29059
8eba4cdcfd81
parser: shorten prefix of alias parsing errors
Yuya Nishihara <yuya@tcha.org>
parents:
29058
diff
changeset
|
2723 |
warning: bad definition of revset alias "anotherbadone": at 7: not a prefix: end |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2724 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2725 |
<baseset [9]> |
23725
6a81f88758aa
revset: delay showing parse error for the revset alias until it is referred
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23062
diff
changeset
|
2726 |
9 |
16771
2f3317d53d51
revset: explicitely tag alias arguments for expansion
Patrick Mezard <patrick@mezard.eu>
parents:
16640
diff
changeset
|
2727 |
|
23725
6a81f88758aa
revset: delay showing parse error for the revset alias until it is referred
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23062
diff
changeset
|
2728 |
$ try 'tip' |
6a81f88758aa
revset: delay showing parse error for the revset alias until it is referred
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23062
diff
changeset
|
2729 |
('symbol', 'tip') |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2730 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2731 |
<baseset [9]> |
23725
6a81f88758aa
revset: delay showing parse error for the revset alias until it is referred
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23062
diff
changeset
|
2732 |
9 |
23846
aac4a1a7920e
revset: parse alias declaration strictly by _parsealiasdecl
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23844
diff
changeset
|
2733 |
|
aac4a1a7920e
revset: parse alias declaration strictly by _parsealiasdecl
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23844
diff
changeset
|
2734 |
$ hg debugrevspec --debug --config revsetalias.'bad name'='tip' "tip" |
aac4a1a7920e
revset: parse alias declaration strictly by _parsealiasdecl
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23844
diff
changeset
|
2735 |
('symbol', 'tip') |
29059
8eba4cdcfd81
parser: shorten prefix of alias parsing errors
Yuya Nishihara <yuya@tcha.org>
parents:
29058
diff
changeset
|
2736 |
warning: bad declaration of revset alias "bad name": at 4: invalid token |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2737 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2738 |
<baseset [9]> |
23846
aac4a1a7920e
revset: parse alias declaration strictly by _parsealiasdecl
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23844
diff
changeset
|
2739 |
9 |
23994
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2740 |
$ echo 'strictreplacing($1, $10) = $10 or desc("$1")' >> .hg/hgrc |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2741 |
$ try 'strictreplacing("foo", tip)' |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2742 |
(func |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2743 |
('symbol', 'strictreplacing') |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2744 |
(list |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2745 |
('string', 'foo') |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2746 |
('symbol', 'tip'))) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2747 |
* expanded: |
23994
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2748 |
(or |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2749 |
('symbol', 'tip') |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2750 |
(func |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2751 |
('symbol', 'desc') |
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2752 |
('string', '$1'))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2753 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2754 |
<addset |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2755 |
<baseset [9]>, |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2756 |
<filteredset |
28424
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
2757 |
<fullreposet+ 0:9>, |
534f968d33e5
revset: add inspection data to all filter() calls
Yuya Nishihara <yuya@tcha.org>
parents:
28423
diff
changeset
|
2758 |
<desc '$1'>>> |
23994
8a2156780839
revset: replace parsing alias definition by _parsealiasdefn to parse strictly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23978
diff
changeset
|
2759 |
9 |
23846
aac4a1a7920e
revset: parse alias declaration strictly by _parsealiasdecl
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23844
diff
changeset
|
2760 |
|
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2761 |
$ try 'd(2:5)' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2762 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2763 |
('symbol', 'd') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2764 |
(range |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2765 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2766 |
('symbol', '5'))) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2767 |
* expanded: |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2768 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2769 |
('symbol', 'reverse') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2770 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2771 |
('symbol', 'sort') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2772 |
(list |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2773 |
(range |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2774 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2775 |
('symbol', '5')) |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2776 |
('symbol', 'date')))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2777 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2778 |
<baseset [4, 5, 3, 2]> |
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2779 |
4 |
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2780 |
5 |
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2781 |
3 |
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2782 |
2 |
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2783 |
$ try 'rs(2 or 3, date)' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2784 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2785 |
('symbol', 'rs') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2786 |
(list |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2787 |
(or |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2788 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2789 |
('symbol', '3')) |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2790 |
('symbol', 'date'))) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2791 |
* expanded: |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2792 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2793 |
('symbol', 'reverse') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2794 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2795 |
('symbol', 'sort') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2796 |
(list |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2797 |
(or |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2798 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2799 |
('symbol', '3')) |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2800 |
('symbol', 'date')))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2801 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2802 |
<baseset [3, 2]> |
14098
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2803 |
3 |
9f5a0acb0056
revset aliases
Alexander Solovyov <alexander@solovyov.net>
parents:
14080
diff
changeset
|
2804 |
2 |
14723
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2805 |
$ try 'rs()' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2806 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2807 |
('symbol', 'rs') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2808 |
None) |
14723
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2809 |
hg: parse error: invalid number of arguments: 0 |
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2810 |
[255] |
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2811 |
$ try 'rs(2)' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2812 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2813 |
('symbol', 'rs') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2814 |
('symbol', '2')) |
14723
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2815 |
hg: parse error: invalid number of arguments: 1 |
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2816 |
[255] |
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2817 |
$ try 'rs(2, data, 7)' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2818 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2819 |
('symbol', 'rs') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2820 |
(list |
27987
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2821 |
('symbol', '2') |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2822 |
('symbol', 'data') |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2823 |
('symbol', '7'))) |
14723
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2824 |
hg: parse error: invalid number of arguments: 3 |
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2825 |
[255] |
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2826 |
$ try 'rs4(2 or 3, x, x, date)' |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2827 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2828 |
('symbol', 'rs4') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2829 |
(list |
27987
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2830 |
(or |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2831 |
('symbol', '2') |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2832 |
('symbol', '3')) |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2833 |
('symbol', 'x') |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
2834 |
('symbol', 'x') |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2835 |
('symbol', 'date'))) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
2836 |
* expanded: |
16218
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2837 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2838 |
('symbol', 'reverse') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2839 |
(func |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2840 |
('symbol', 'sort') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2841 |
(list |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2842 |
(or |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2843 |
('symbol', '2') |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2844 |
('symbol', '3')) |
81a1a00f5738
debugrevspec: pretty print output
Patrick Mezard <patrick@mezard.eu>
parents:
16096
diff
changeset
|
2845 |
('symbol', 'date')))) |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2846 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
2847 |
<baseset [3, 2]> |
14723
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2848 |
3 |
b9faf94ee196
revset: fix aliases with 0 or more than 2 parameters
Mads Kiilerich <mads@kiilerich.com>
parents:
14650
diff
changeset
|
2849 |
2 |
14153
f8047a059ca0
revset: avoid over-aggresive optimizations of non-filtering functions (issue2549)
Mads Kiilerich <mads@kiilerich.com>
parents:
14098
diff
changeset
|
2850 |
|
24175
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2851 |
issue4553: check that revset aliases override existing hash prefix |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2852 |
|
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2853 |
$ hg log -qr e |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2854 |
6:e0cc66ef77e8 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2855 |
|
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2856 |
$ hg log -qr e --config revsetalias.e="all()" |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2857 |
0:2785f51eece5 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2858 |
1:d75937da8da0 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2859 |
2:5ed5505e9f1c |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2860 |
3:8528aa5637f2 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2861 |
4:2326846efdab |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2862 |
5:904fa392b941 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2863 |
6:e0cc66ef77e8 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2864 |
7:013af1973af4 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2865 |
8:d5d0dcbdc4d9 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2866 |
9:24286f4ae135 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2867 |
|
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2868 |
$ hg log -qr e: --config revsetalias.e="0" |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2869 |
0:2785f51eece5 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2870 |
1:d75937da8da0 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2871 |
2:5ed5505e9f1c |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2872 |
3:8528aa5637f2 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2873 |
4:2326846efdab |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2874 |
5:904fa392b941 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2875 |
6:e0cc66ef77e8 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2876 |
7:013af1973af4 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2877 |
8:d5d0dcbdc4d9 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2878 |
9:24286f4ae135 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2879 |
|
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2880 |
$ hg log -qr :e --config revsetalias.e="9" |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2881 |
0:2785f51eece5 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2882 |
1:d75937da8da0 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2883 |
2:5ed5505e9f1c |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2884 |
3:8528aa5637f2 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2885 |
4:2326846efdab |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2886 |
5:904fa392b941 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2887 |
6:e0cc66ef77e8 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2888 |
7:013af1973af4 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2889 |
8:d5d0dcbdc4d9 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2890 |
9:24286f4ae135 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2891 |
|
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2892 |
$ hg log -qr e: |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2893 |
6:e0cc66ef77e8 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2894 |
7:013af1973af4 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2895 |
8:d5d0dcbdc4d9 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2896 |
9:24286f4ae135 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2897 |
|
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2898 |
$ hg log -qr :e |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2899 |
0:2785f51eece5 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2900 |
1:d75937da8da0 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2901 |
2:5ed5505e9f1c |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2902 |
3:8528aa5637f2 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2903 |
4:2326846efdab |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2904 |
5:904fa392b941 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2905 |
6:e0cc66ef77e8 |
c4e3e7b031b7
revrange: don't parse revset aliases as hash prefixes (issue4553)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
24163
diff
changeset
|
2906 |
|
14153
f8047a059ca0
revset: avoid over-aggresive optimizations of non-filtering functions (issue2549)
Mads Kiilerich <mads@kiilerich.com>
parents:
14098
diff
changeset
|
2907 |
issue2549 - correct optimizations |
f8047a059ca0
revset: avoid over-aggresive optimizations of non-filtering functions (issue2549)
Mads Kiilerich <mads@kiilerich.com>
parents:
14098
diff
changeset
|
2908 |
|
28426
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2909 |
$ try 'limit(1 or 2 or 3, 2) and not 2' |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2910 |
(and |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2911 |
(func |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2912 |
('symbol', 'limit') |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2913 |
(list |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2914 |
(or |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2915 |
('symbol', '1') |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2916 |
('symbol', '2') |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2917 |
('symbol', '3')) |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2918 |
('symbol', '2'))) |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2919 |
(not |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2920 |
('symbol', '2'))) |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2921 |
* set: |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2922 |
<filteredset |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2923 |
<baseset |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2924 |
<limit n=2, offset=0, |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2925 |
<fullreposet+ 0:9>, |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2926 |
<baseset [1, 2, 3]>>>, |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2927 |
<not |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2928 |
<baseset [2]>>> |
14153
f8047a059ca0
revset: avoid over-aggresive optimizations of non-filtering functions (issue2549)
Mads Kiilerich <mads@kiilerich.com>
parents:
14098
diff
changeset
|
2929 |
1 |
28427
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2930 |
$ try 'max(1 or 2) and not 2' |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2931 |
(and |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2932 |
(func |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2933 |
('symbol', 'max') |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2934 |
(or |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2935 |
('symbol', '1') |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2936 |
('symbol', '2'))) |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2937 |
(not |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2938 |
('symbol', '2'))) |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2939 |
* set: |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2940 |
<filteredset |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2941 |
<baseset |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2942 |
<max |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2943 |
<fullreposet+ 0:9>, |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2944 |
<baseset [1, 2]>>>, |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2945 |
<not |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2946 |
<baseset [2]>>> |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2947 |
$ try 'min(1 or 2) and not 1' |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2948 |
(and |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2949 |
(func |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2950 |
('symbol', 'min') |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2951 |
(or |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2952 |
('symbol', '1') |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2953 |
('symbol', '2'))) |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2954 |
(not |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2955 |
('symbol', '1'))) |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2956 |
* set: |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2957 |
<filteredset |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2958 |
<baseset |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2959 |
<min |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2960 |
<fullreposet+ 0:9>, |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2961 |
<baseset [1, 2]>>>, |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2962 |
<not |
969a4615c4c4
revset: add inspection data to max() and min() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28426
diff
changeset
|
2963 |
<baseset [1]>>> |
28426
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2964 |
$ try 'last(1 or 2, 1) and not 2' |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2965 |
(and |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2966 |
(func |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2967 |
('symbol', 'last') |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2968 |
(list |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2969 |
(or |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2970 |
('symbol', '1') |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2971 |
('symbol', '2')) |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2972 |
('symbol', '1'))) |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2973 |
(not |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2974 |
('symbol', '2'))) |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2975 |
* set: |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2976 |
<filteredset |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2977 |
<baseset |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2978 |
<last n=1, |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2979 |
<fullreposet+ 0:9>, |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2980 |
<baseset [2, 1]>>>, |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2981 |
<not |
3d39ac06af9a
revset: add inspection data to limit() and last() functions
Yuya Nishihara <yuya@tcha.org>
parents:
28424
diff
changeset
|
2982 |
<baseset [2]>>> |
15726
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
2983 |
|
21870
dd716807fd23
revset: maintain ordering when subtracting from a baseset (issue4289)
Matt Mackall <mpm@selenic.com>
parents:
21024
diff
changeset
|
2984 |
issue4289 - ordering of built-ins |
dd716807fd23
revset: maintain ordering when subtracting from a baseset (issue4289)
Matt Mackall <mpm@selenic.com>
parents:
21024
diff
changeset
|
2985 |
$ hg log -M -q -r 3:2 |
dd716807fd23
revset: maintain ordering when subtracting from a baseset (issue4289)
Matt Mackall <mpm@selenic.com>
parents:
21024
diff
changeset
|
2986 |
3:8528aa5637f2 |
dd716807fd23
revset: maintain ordering when subtracting from a baseset (issue4289)
Matt Mackall <mpm@selenic.com>
parents:
21024
diff
changeset
|
2987 |
2:5ed5505e9f1c |
dd716807fd23
revset: maintain ordering when subtracting from a baseset (issue4289)
Matt Mackall <mpm@selenic.com>
parents:
21024
diff
changeset
|
2988 |
|
17858
acd4577a568d
test: add test for the issue introduced by e410be860393 (issue3669)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17753
diff
changeset
|
2989 |
test revsets started with 40-chars hash (issue3669) |
acd4577a568d
test: add test for the issue introduced by e410be860393 (issue3669)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17753
diff
changeset
|
2990 |
|
acd4577a568d
test: add test for the issue introduced by e410be860393 (issue3669)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17753
diff
changeset
|
2991 |
$ ISSUE3669_TIP=`hg tip --template '{node}'` |
acd4577a568d
test: add test for the issue introduced by e410be860393 (issue3669)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17753
diff
changeset
|
2992 |
$ hg log -r "${ISSUE3669_TIP}" --template '{rev}\n' |
acd4577a568d
test: add test for the issue introduced by e410be860393 (issue3669)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17753
diff
changeset
|
2993 |
9 |
acd4577a568d
test: add test for the issue introduced by e410be860393 (issue3669)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17753
diff
changeset
|
2994 |
$ hg log -r "${ISSUE3669_TIP}^" --template '{rev}\n' |
acd4577a568d
test: add test for the issue introduced by e410be860393 (issue3669)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17753
diff
changeset
|
2995 |
8 |
acd4577a568d
test: add test for the issue introduced by e410be860393 (issue3669)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17753
diff
changeset
|
2996 |
|
18473
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
2997 |
test or-ed indirect predicates (issue3775) |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
2998 |
|
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
2999 |
$ log '6 or 6^1' | sort |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3000 |
5 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3001 |
6 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3002 |
$ log '6^1 or 6' | sort |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3003 |
5 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3004 |
6 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3005 |
$ log '4 or 4~1' | sort |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3006 |
2 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3007 |
4 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3008 |
$ log '4~1 or 4' | sort |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3009 |
2 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3010 |
4 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3011 |
$ log '(0 or 2):(4 or 6) or 0 or 6' | sort |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3012 |
0 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3013 |
1 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3014 |
2 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3015 |
3 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3016 |
4 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3017 |
5 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3018 |
6 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3019 |
$ log '0 or 6 or (0 or 2):(4 or 6)' | sort |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3020 |
0 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3021 |
1 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3022 |
2 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3023 |
3 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3024 |
4 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3025 |
5 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3026 |
6 |
692cbda1eb50
revset: evaluate sub expressions correctly (issue3775)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17858
diff
changeset
|
3027 |
|
16008
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3028 |
tests for 'remote()' predicate: |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3029 |
#. (csets in remote) (id) (remote) |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3030 |
1. less than local current branch "default" |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3031 |
2. same with local specified "default" |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3032 |
3. more than local specified specified |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3033 |
|
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3034 |
$ hg clone --quiet -U . ../remote3 |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3035 |
$ cd ../remote3 |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3036 |
$ hg update -q 7 |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3037 |
$ echo r > r |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3038 |
$ hg ci -Aqm 10 |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3039 |
$ log 'remote()' |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3040 |
7 |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3041 |
$ log 'remote("a-b-c-")' |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3042 |
2 |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3043 |
$ cd ../repo |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3044 |
$ log 'remote(".a.b.c.", "../remote3")' |
02a497a17257
revset: add tests for 'remote()' predicate
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15726
diff
changeset
|
3045 |
|
23742
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3046 |
tests for concatenation of strings/symbols by "##" |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3047 |
|
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3048 |
$ try "278 ## '5f5' ## 1ee ## 'ce5'" |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3049 |
(_concat |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3050 |
(_concat |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3051 |
(_concat |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3052 |
('symbol', '278') |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3053 |
('string', '5f5')) |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3054 |
('symbol', '1ee')) |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3055 |
('string', 'ce5')) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
3056 |
* concatenated: |
23742
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3057 |
('string', '2785f51eece5') |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
3058 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
3059 |
<baseset [0]> |
23742
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3060 |
0 |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3061 |
|
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3062 |
$ echo 'cat4($1, $2, $3, $4) = $1 ## $2 ## $3 ## $4' >> .hg/hgrc |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3063 |
$ try "cat4(278, '5f5', 1ee, 'ce5')" |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3064 |
(func |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3065 |
('symbol', 'cat4') |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3066 |
(list |
27987
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
3067 |
('symbol', '278') |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
3068 |
('string', '5f5') |
b19d8d5d6b51
revset: flatten chained 'list' operations (aka function args) (issue5072)
Yuya Nishihara <yuya@tcha.org>
parents:
27623
diff
changeset
|
3069 |
('symbol', '1ee') |
23742
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3070 |
('string', 'ce5'))) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
3071 |
* expanded: |
23742
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3072 |
(_concat |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3073 |
(_concat |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3074 |
(_concat |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3075 |
('symbol', '278') |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3076 |
('string', '5f5')) |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3077 |
('symbol', '1ee')) |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3078 |
('string', 'ce5')) |
28629
d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
Yuya Nishihara <yuya@tcha.org>
parents:
28427
diff
changeset
|
3079 |
* concatenated: |
23742
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3080 |
('string', '2785f51eece5') |
24458
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
3081 |
* set: |
7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
Yuya Nishihara <yuya@tcha.org>
parents:
24419
diff
changeset
|
3082 |
<baseset [0]> |
23742
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3083 |
0 |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3084 |
|
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3085 |
(check concatenation in alias nesting) |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3086 |
|
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3087 |
$ echo 'cat2($1, $2) = $1 ## $2' >> .hg/hgrc |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3088 |
$ echo 'cat2x2($1, $2, $3, $4) = cat2($1 ## $2, $3 ## $4)' >> .hg/hgrc |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3089 |
$ log "cat2x2(278, '5f5', 1ee, 'ce5')" |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3090 |
0 |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3091 |
|
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3092 |
(check operator priority) |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3093 |
|
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3094 |
$ echo 'cat2n2($1, $2, $3, $4) = $1 ## $2 or $3 ## $4~2' >> .hg/hgrc |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3095 |
$ log "cat2n2(2785f5, 1eece5, 24286f, 4ae135)" |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3096 |
0 |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3097 |
4 |
3a4d8a6ce432
revset: introduce new operator "##" to concatenate strings/symbols at runtime
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
23725
diff
changeset
|
3098 |
|
15726
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3099 |
$ cd .. |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3100 |
|
25265
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3101 |
prepare repository that has "default" branches of multiple roots |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3102 |
|
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3103 |
$ hg init namedbranch |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3104 |
$ cd namedbranch |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3105 |
|
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3106 |
$ echo default0 >> a |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3107 |
$ hg ci -Aqm0 |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3108 |
$ echo default1 >> a |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3109 |
$ hg ci -m1 |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3110 |
|
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3111 |
$ hg branch -q stable |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3112 |
$ echo stable2 >> a |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3113 |
$ hg ci -m2 |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3114 |
$ echo stable3 >> a |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3115 |
$ hg ci -m3 |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3116 |
|
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3117 |
$ hg update -q null |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3118 |
$ echo default4 >> a |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3119 |
$ hg ci -Aqm4 |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3120 |
$ echo default5 >> a |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3121 |
$ hg ci -m5 |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3122 |
|
25266
38117278f295
revbranchcache: return uncached branchinfo for nullrev (issue4683)
Yuya Nishihara <yuya@tcha.org>
parents:
25265
diff
changeset
|
3123 |
"null" revision belongs to "default" branch (issue4683) |
38117278f295
revbranchcache: return uncached branchinfo for nullrev (issue4683)
Yuya Nishihara <yuya@tcha.org>
parents:
25265
diff
changeset
|
3124 |
|
38117278f295
revbranchcache: return uncached branchinfo for nullrev (issue4683)
Yuya Nishihara <yuya@tcha.org>
parents:
25265
diff
changeset
|
3125 |
$ log 'branch(null)' |
38117278f295
revbranchcache: return uncached branchinfo for nullrev (issue4683)
Yuya Nishihara <yuya@tcha.org>
parents:
25265
diff
changeset
|
3126 |
0 |
38117278f295
revbranchcache: return uncached branchinfo for nullrev (issue4683)
Yuya Nishihara <yuya@tcha.org>
parents:
25265
diff
changeset
|
3127 |
1 |
38117278f295
revbranchcache: return uncached branchinfo for nullrev (issue4683)
Yuya Nishihara <yuya@tcha.org>
parents:
25265
diff
changeset
|
3128 |
4 |
38117278f295
revbranchcache: return uncached branchinfo for nullrev (issue4683)
Yuya Nishihara <yuya@tcha.org>
parents:
25265
diff
changeset
|
3129 |
5 |
38117278f295
revbranchcache: return uncached branchinfo for nullrev (issue4683)
Yuya Nishihara <yuya@tcha.org>
parents:
25265
diff
changeset
|
3130 |
|
25265
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3131 |
"null" revision belongs to "default" branch, but it shouldn't appear in set |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3132 |
unless explicitly specified (issue4682) |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3133 |
|
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3134 |
$ log 'children(branch(default))' |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3135 |
1 |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3136 |
2 |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3137 |
5 |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3138 |
|
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3139 |
$ cd .. |
e16456831516
revset: drop magic of fullreposet membership test (issue4682)
Yuya Nishihara <yuya@tcha.org>
parents:
25094
diff
changeset
|
3140 |
|
15726
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3141 |
test author/desc/keyword in problematic encoding |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3142 |
# unicode: cp932: |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3143 |
# u30A2 0x83 0x41(= 'A') |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3144 |
# u30C2 0x83 0x61(= 'a') |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3145 |
|
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3146 |
$ hg init problematicencoding |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3147 |
$ cd problematicencoding |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3148 |
|
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3149 |
$ python > setup.sh <<EOF |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3150 |
> print u''' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3151 |
> echo a > text |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3152 |
> hg add text |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3153 |
> hg --encoding utf-8 commit -u '\u30A2' -m none |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3154 |
> echo b > text |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3155 |
> hg --encoding utf-8 commit -u '\u30C2' -m none |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3156 |
> echo c > text |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3157 |
> hg --encoding utf-8 commit -u none -m '\u30A2' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3158 |
> echo d > text |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3159 |
> hg --encoding utf-8 commit -u none -m '\u30C2' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3160 |
> '''.encode('utf-8') |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3161 |
> EOF |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3162 |
$ sh < setup.sh |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3163 |
|
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3164 |
test in problematic encoding |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3165 |
$ python > test.sh <<EOF |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3166 |
> print u''' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3167 |
> hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30A2)' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3168 |
> echo ==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3169 |
> hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30C2)' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3170 |
> echo ==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3171 |
> hg --encoding cp932 log --template '{rev}\\n' -r 'desc(\u30A2)' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3172 |
> echo ==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3173 |
> hg --encoding cp932 log --template '{rev}\\n' -r 'desc(\u30C2)' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3174 |
> echo ==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3175 |
> hg --encoding cp932 log --template '{rev}\\n' -r 'keyword(\u30A2)' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3176 |
> echo ==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3177 |
> hg --encoding cp932 log --template '{rev}\\n' -r 'keyword(\u30C2)' |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3178 |
> '''.encode('cp932') |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3179 |
> EOF |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3180 |
$ sh < test.sh |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3181 |
0 |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3182 |
==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3183 |
1 |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3184 |
==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3185 |
2 |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3186 |
==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3187 |
3 |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3188 |
==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3189 |
0 |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3190 |
2 |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3191 |
==== |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3192 |
1 |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3193 |
3 |
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3194 |
|
24707
57f58f96f850
revsets: show current revset abort behavior
Ryan McElroy <rmcelroy@fb.com>
parents:
24459
diff
changeset
|
3195 |
test error message of bad revset |
57f58f96f850
revsets: show current revset abort behavior
Ryan McElroy <rmcelroy@fb.com>
parents:
24459
diff
changeset
|
3196 |
$ hg log -r 'foo\\' |
24708
fb47816e1a9c
revsets: more informative syntax error message
Ryan McElroy <rmcelroy@fb.com>
parents:
24707
diff
changeset
|
3197 |
hg: parse error at 3: syntax error in revset 'foo\\' |
24707
57f58f96f850
revsets: show current revset abort behavior
Ryan McElroy <rmcelroy@fb.com>
parents:
24459
diff
changeset
|
3198 |
[255] |
57f58f96f850
revsets: show current revset abort behavior
Ryan McElroy <rmcelroy@fb.com>
parents:
24459
diff
changeset
|
3199 |
|
15726
9b822edecb4c
i18n: use "encoding.lower()" to normalize specified string for revset
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
15623
diff
changeset
|
3200 |
$ cd .. |
27586
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3201 |
|
28394
dcb4209bd30d
revset: replace extpredicate by revsetpredicate of registrar
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
28217
diff
changeset
|
3202 |
Test that revset predicate of extension isn't loaded at failure of |
dcb4209bd30d
revset: replace extpredicate by revsetpredicate of registrar
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
28217
diff
changeset
|
3203 |
loading it |
27586
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3204 |
|
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3205 |
$ cd repo |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3206 |
|
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3207 |
$ cat <<EOF > $TESTTMP/custompredicate.py |
28394
dcb4209bd30d
revset: replace extpredicate by revsetpredicate of registrar
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
28217
diff
changeset
|
3208 |
> from mercurial import error, registrar, revset |
27586
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3209 |
> |
28394
dcb4209bd30d
revset: replace extpredicate by revsetpredicate of registrar
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
28217
diff
changeset
|
3210 |
> revsetpredicate = registrar.revsetpredicate() |
27586
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3211 |
> |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3212 |
> @revsetpredicate('custom1()') |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3213 |
> def custom1(repo, subset, x): |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3214 |
> return revset.baseset([1]) |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3215 |
> |
28394
dcb4209bd30d
revset: replace extpredicate by revsetpredicate of registrar
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
28217
diff
changeset
|
3216 |
> raise error.Abort('intentional failure of loading extension') |
27586
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3217 |
> EOF |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3218 |
$ cat <<EOF > .hg/hgrc |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3219 |
> [extensions] |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3220 |
> custompredicate = $TESTTMP/custompredicate.py |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3221 |
> EOF |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3222 |
|
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3223 |
$ hg debugrevspec "custom1()" |
28394
dcb4209bd30d
revset: replace extpredicate by revsetpredicate of registrar
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
28217
diff
changeset
|
3224 |
*** failed to import extension custompredicate from $TESTTMP/custompredicate.py: intentional failure of loading extension |
27586
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3225 |
hg: parse error: unknown identifier: custom1 |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3226 |
[255] |
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3227 |
|
42910f9fffeb
revset: use delayregistrar to register predicate in extension easily
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
27517
diff
changeset
|
3228 |
$ cd .. |