tests/test-revset-legacy-lookup.t
author Matt Harbison <matt_harbison@yahoo.com>
Wed, 04 May 2022 16:01:55 -0400
changeset 49173 90f7d8276e26
parent 48116 5ced12cfa41b
permissions -rw-r--r--
contrib: migrate off of a couple of bitbucket URLs I noticed this when diffing the thg installer against Mercurial to see what was missing. There are a handful of other URLs in i18n and extension example help text if anyone cares to update those. Differential Revision: https://phab.mercurial-scm.org/D12606
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     1
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     2
  $ cat >> $HGRCPATH << EOF
45765
ed84a4d48910 config: add a new [command-templates] section for templates defined by hg
Martin von Zweigbergk <martinvonz@google.com>
parents: 37760
diff changeset
     3
  > [command-templates]
ed84a4d48910 config: add a new [command-templates] section for templates defined by hg
Martin von Zweigbergk <martinvonz@google.com>
parents: 37760
diff changeset
     4
  > log="{rev}:{node|short} {desc} [{tags}]\n"
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     5
  > EOF
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     6
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     7
  $ hg init legacy-lookup
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     8
  $ cd legacy-lookup
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     9
  $ echo a > a
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    10
  $ hg add a
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    11
  $ hg commit -m 'first'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    12
  $ echo aa > a
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    13
  $ hg commit -m 'second'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    14
  $ hg log -G
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    15
  @  1:43114e71eddd second [tip]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    16
  |
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    17
  o  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    18
  
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    19
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    20
Create a tag that looks like a revset
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    21
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    22
  $ hg tag 'rev(0)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    23
  $ hg log -G
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    24
  @  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd [tip]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    25
  |
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    26
  o  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    27
  |
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    28
  o  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    29
  
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    30
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    31
See how various things are resolved
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    32
-----------------------------------
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    33
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    34
Revision numbers
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    35
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    36
  $ hg log -r '0'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    37
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    38
  $ hg log -r '1'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    39
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    40
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    41
"rev(x)" form (the one conflicting with the tags)
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    42
(resolved as a label)
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    43
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    44
  $ hg log -r 'rev(0)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    45
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    46
  $ hg log -r 'rev(1)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    47
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    48
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    49
same within a simple revspec
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    50
(still resolved as the label)
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    51
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    52
  $ hg log -r ':rev(0)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    53
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    54
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    55
  $ hg log -r 'rev(0):'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    56
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    57
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd [tip]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    58
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    59
within a more advances revset
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    60
(still resolved as the label)
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    61
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    62
  $ hg log -r 'rev(0) and branch(default)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    63
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    64
37760
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
    65
with explicit revset resolution
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
    66
(still resolved as the label)
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
    67
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
    68
  $ hg log -r 'revset(rev(0))'
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
    69
  0:a87874c6ec31 first []
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
    70
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    71
some of the above with quote to force its resolution as a label
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    72
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    73
  $ hg log -r ':"rev(0)"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    74
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    75
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    76
  $ hg log -r '"rev(0)":'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    77
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    78
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd [tip]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    79
  $ hg log -r '"rev(0)" and branch(default)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    80
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    81
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    82
confusing bits within parents
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    83
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    84
  $ hg log -r '(rev(0))'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    85
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    86
  $ hg log -r '( rev(0))'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    87
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    88
  $ hg log -r '("rev(0)")'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    89
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    90
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    91
Test label with quote in them.
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    92
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    93
  $ hg tag '"foo"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    94
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    95
  $ hg log -r '"foo"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    96
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd ["foo"]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    97
  $ hg log -r '("foo")'
45906
95c4cca641f6 errors: remove trailing "!" from some error messages for consistency
Martin von Zweigbergk <martinvonz@google.com>
parents: 45895
diff changeset
    98
  abort: unknown revision 'foo'
48116
5ced12cfa41b errors: raise InputError on bad revset to revrange() iff provided by the user
Martin von Zweigbergk <martinvonz@google.com>
parents: 45906
diff changeset
    99
  [10]
37760
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   100
  $ hg log -r 'revset("foo")'
45906
95c4cca641f6 errors: remove trailing "!" from some error messages for consistency
Martin von Zweigbergk <martinvonz@google.com>
parents: 45895
diff changeset
   101
  abort: unknown revision 'foo'
48116
5ced12cfa41b errors: raise InputError on bad revset to revrange() iff provided by the user
Martin von Zweigbergk <martinvonz@google.com>
parents: 45906
diff changeset
   102
  [10]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   103
  $ hg log -r '("\"foo\"")'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   104
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd ["foo"]
37760
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   105
  $ hg log -r 'revset("\"foo\"")'
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   106
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd ["foo"]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   107
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   108
Test label with dash in them.
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   109
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   110
  $ hg tag 'foo-bar'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   111
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   112
  $ hg log -r 'foo-bar'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   113
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   114
  $ hg log -r '(foo-bar)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   115
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   116
  $ hg log -r '"foo-bar"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   117
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   118
  $ hg log -r '("foo-bar")'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   119
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   120
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   121
Test label with + in them.
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   122
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   123
  $ hg tag 'foo+bar'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   124
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   125
  $ hg log -r 'foo+bar'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   126
  4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   127
  $ hg log -r '(foo+bar)'
45906
95c4cca641f6 errors: remove trailing "!" from some error messages for consistency
Martin von Zweigbergk <martinvonz@google.com>
parents: 45895
diff changeset
   128
  abort: unknown revision 'foo'
48116
5ced12cfa41b errors: raise InputError on bad revset to revrange() iff provided by the user
Martin von Zweigbergk <martinvonz@google.com>
parents: 45906
diff changeset
   129
  [10]
37760
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   130
  $ hg log -r 'revset(foo+bar)'
45906
95c4cca641f6 errors: remove trailing "!" from some error messages for consistency
Martin von Zweigbergk <martinvonz@google.com>
parents: 45895
diff changeset
   131
  abort: unknown revision 'foo'
48116
5ced12cfa41b errors: raise InputError on bad revset to revrange() iff provided by the user
Martin von Zweigbergk <martinvonz@google.com>
parents: 45906
diff changeset
   132
  [10]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   133
  $ hg log -r '"foo+bar"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   134
  4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   135
  $ hg log -r '("foo+bar")'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   136
  4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   137
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   138
Test tag with numeric version number.
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   139
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   140
  $ hg tag '1.2'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   141
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   142
  $ hg log -r '1.2'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   143
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   144
  $ hg log -r '(1.2)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   145
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
37760
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   146
  $ hg log -r 'revset(1.2)'
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   147
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   148
  $ hg log -r '"1.2"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   149
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   150
  $ hg log -r '("1.2")'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   151
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   152
  $ hg log -r '::"1.2"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   153
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   154
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   155
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd ["foo"]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   156
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   157
  4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   158
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   159
  $ hg log -r '::1.2'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   160
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   161
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   162
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd ["foo"]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   163
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   164
  4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   165
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   166
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   167
Test tag with parenthesis (but not a valid revset)
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   168
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   169
  $ hg tag 'release_4.1(candidate1)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   170
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   171
  $ hg log -r 'release_4.1(candidate1)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   172
  6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   173
  $ hg log -r '(release_4.1(candidate1))'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   174
  hg: parse error: unknown identifier: release_4.1
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   175
  [10]
37760
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   176
  $ hg log -r 'revset(release_4.1(candidate1))'
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   177
  hg: parse error: unknown identifier: release_4.1
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   178
  [10]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   179
  $ hg log -r '"release_4.1(candidate1)"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   180
  6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   181
  $ hg log -r '("release_4.1(candidate1)")'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   182
  6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   183
  $ hg log -r '::"release_4.1(candidate1)"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   184
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   185
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   186
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd ["foo"]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   187
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   188
  4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   189
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   190
  6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   191
  $ hg log -r '::release_4.1(candidate1)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   192
  hg: parse error: unknown identifier: release_4.1
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   193
  [10]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   194
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   195
Test tag with parenthesis and other function like char
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   196
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   197
  $ hg tag 'release_4.1(arch=x86,arm)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   198
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   199
  $ hg log -r 'release_4.1(arch=x86,arm)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   200
  7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   201
  $ hg log -r '(release_4.1(arch=x86,arm))'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   202
  hg: parse error: unknown identifier: release_4.1
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   203
  [10]
37760
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   204
  $ hg log -r 'revset(release_4.1(arch=x86,arm))'
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   205
  hg: parse error: unknown identifier: release_4.1
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   206
  [10]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   207
  $ hg log -r '"release_4.1(arch=x86,arm)"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   208
  7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   209
  $ hg log -r '("release_4.1(arch=x86,arm)")'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   210
  7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   211
  $ hg log -r '::"release_4.1(arch=x86,arm)"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   212
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   213
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   214
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd ["foo"]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   215
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   216
  4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   217
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   218
  6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   219
  7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   220
  $ hg log -r '::release_4.1(arch=x86,arm)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   221
  hg: parse error: unknown identifier: release_4.1
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   222
  [10]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   223
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   224
Test tag conflicting with revset function
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   225
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   226
  $ hg tag 'secret(team=foo,project=bar)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   227
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   228
  $ hg log -r 'secret(team=foo,project=bar)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   229
  8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   230
  $ hg log -r '(secret(team=foo,project=bar))'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   231
  hg: parse error: secret takes no arguments
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   232
  [10]
37760
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   233
  $ hg log -r 'revset(secret(team=foo,project=bar))'
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   234
  hg: parse error: secret takes no arguments
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   235
  [10]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   236
  $ hg log -r '"secret(team=foo,project=bar)"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   237
  8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   238
  $ hg log -r '("secret(team=foo,project=bar)")'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   239
  8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   240
  $ hg log -r '::"secret(team=foo,project=bar)"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   241
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   242
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   243
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd ["foo"]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   244
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   245
  4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   246
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   247
  6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   248
  7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   249
  8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   250
  $ hg log -r '::secret(team=foo,project=bar)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   251
  hg: parse error: secret takes no arguments
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   252
  [10]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   253
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   254
Test tag with space
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   255
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   256
  $ hg tag 'my little version'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   257
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   258
  $ hg log -r 'my little version'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   259
  9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   260
  $ hg log -r '(my little version)'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   261
  hg: parse error at 4: unexpected token: symbol
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   262
  ((my little version)
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   263
       ^ here)
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   264
  [10]
37760
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   265
  $ hg log -r 'revset(my little version)'
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   266
  hg: parse error at 10: unexpected token: symbol
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   267
  (revset(my little version)
29eb4cafeeb8 revset: skip legacy lookup for revspec wrapped in 'revset(...)'
Boris Feld <boris.feld@octobus.net>
parents: 37759
diff changeset
   268
             ^ here)
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   269
  [10]
37759
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   270
  $ hg log -r '"my little version"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   271
  9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   272
  $ hg log -r '("my little version")'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   273
  9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   274
  $ hg log -r '::"my little version"'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   275
  0:a87874c6ec31 first []
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   276
  1:43114e71eddd second [rev(0)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   277
  2:fb616635b18f Added tag rev(0) for changeset 43114e71eddd ["foo"]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   278
  3:a50aae922707 Added tag "foo" for changeset fb616635b18f [foo-bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   279
  4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   280
  5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   281
  6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   282
  7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   283
  8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   284
  9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version]
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   285
  $ hg log -r '::my little version'
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   286
  hg: parse error at 5: invalid token
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   287
  (::my little version
aa3f63e02c3c revset: add more test to show current behaviors with label looking like revset
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
   288
        ^ here)
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
   289
  [10]