tests/test-revset.t
changeset 12316 4134686b83e1
parent 12105 6f58430dfdd0
child 12321 11db6fa2961e
equal deleted inserted replaced
12315:ca58f6475f1d 12316:4134686b83e1
    59 
    59 
    60   $ hg branch all
    60   $ hg branch all
    61   marked working directory as branch all
    61   marked working directory as branch all
    62   $ hg ci --close-branch -Aqm8
    62   $ hg ci --close-branch -Aqm8
    63   abort: can only close branch heads
    63   abort: can only close branch heads
       
    64   [255]
    64 
    65 
    65   $ hg co 4
    66   $ hg co 4
    66   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
    67   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
    67   $ hg branch é
    68   $ hg branch é
    68   marked working directory as branch é
    69   marked working directory as branch é
    95   $ try .a.b.c.-a
    96   $ try .a.b.c.-a
    96   ('minus', ('symbol', '.a.b.c.'), ('symbol', 'a'))
    97   ('minus', ('symbol', '.a.b.c.'), ('symbol', 'a'))
    97   7
    98   7
    98   $ try -- '-a-b-c-' # complains
    99   $ try -- '-a-b-c-' # complains
    99   hg: parse error at 7: not a prefix: end
   100   hg: parse error at 7: not a prefix: end
       
   101   [255]
   100   $ log -a-b-c- # succeeds with fallback
   102   $ log -a-b-c- # succeeds with fallback
   101   4
   103   4
   102   $ try -- -a-b-c--a # complains
   104   $ try -- -a-b-c--a # complains
   103   ('minus', ('minus', ('minus', ('negate', ('symbol', 'a')), ('symbol', 'b')), ('symbol', 'c')), ('negate', ('symbol', 'a')))
   105   ('minus', ('minus', ('minus', ('negate', ('symbol', 'a')), ('symbol', 'b')), ('symbol', 'c')), ('negate', ('symbol', 'a')))
   104   abort: unknown revision '-a'!
   106   abort: unknown revision '-a'!
       
   107   [255]
   105   $ try é
   108   $ try é
   106   ('symbol', '\xc3\xa9')
   109   ('symbol', '\xc3\xa9')
   107   9
   110   9
   108 
   111 
   109 quoting needed
   112 quoting needed
   141   0
   144   0
   142   $ log 'date(2005)'
   145   $ log 'date(2005)'
   143   4
   146   4
   144   $ log 'date(this is a test)'
   147   $ log 'date(this is a test)'
   145   hg: parse error at 10: unexpected token: symbol
   148   hg: parse error at 10: unexpected token: symbol
       
   149   [255]
   146   $ log 'date()'
   150   $ log 'date()'
   147   hg: parse error: date wants a string
   151   hg: parse error: date wants a string
       
   152   [255]
   148   $ log 'date'
   153   $ log 'date'
   149   hg: parse error: can't use date here
   154   hg: parse error: can't use date here
       
   155   [255]
   150   $ log 'date('
   156   $ log 'date('
   151   hg: parse error at 5: not a prefix: end
   157   hg: parse error at 5: not a prefix: end
       
   158   [255]
   152   $ log 'date(tip)'
   159   $ log 'date(tip)'
   153   abort: invalid date: 'tip'
   160   abort: invalid date: 'tip'
       
   161   [255]
   154   $ log '"date"'
   162   $ log '"date"'
   155   abort: unknown revision 'date'!
   163   abort: unknown revision 'date'!
       
   164   [255]
   156   $ log 'date(2005) and 1::'
   165   $ log 'date(2005) and 1::'
   157   4
   166   4
   158 
   167 
   159   $ log 'ancestor(1)'
   168   $ log 'ancestor(1)'
   160   hg: parse error: ancestor wants two arguments
   169   hg: parse error: ancestor wants two arguments
       
   170   [255]
   161   $ log 'ancestor(4,5)'
   171   $ log 'ancestor(4,5)'
   162   1
   172   1
   163   $ log 'ancestor(4,5) and 4'
   173   $ log 'ancestor(4,5) and 4'
   164   $ log 'ancestors(5)'
   174   $ log 'ancestors(5)'
   165   0
   175   0