tests/test-mq-guards.t
changeset 12316 4134686b83e1
parent 11896 286693eaba47
child 12942 05fffd665170
equal deleted inserted replaced
12315:ca58f6475f1d 12316:4134686b83e1
    32 
    32 
    33 should fail
    33 should fail
    34 
    34 
    35   $ hg qguard does-not-exist.patch +bleh
    35   $ hg qguard does-not-exist.patch +bleh
    36   abort: no patch named does-not-exist.patch
    36   abort: no patch named does-not-exist.patch
       
    37   [255]
    37 
    38 
    38 
    39 
    39 should fail
    40 should fail
    40 
    41 
    41   $ hg qguard +fail
    42   $ hg qguard +fail
    42   abort: no patches applied
    43   abort: no patches applied
       
    44   [255]
    43 
    45 
    44   $ hg qpush
    46   $ hg qpush
    45   applying a.patch
    47   applying a.patch
    46   now at: a.patch
    48   now at: a.patch
    47 
    49 
    60 
    62 
    61 should fail
    63 should fail
    62 
    64 
    63   $ hg qpush a.patch
    65   $ hg qpush a.patch
    64   cannot push 'a.patch' - guarded by ['+a']
    66   cannot push 'a.patch' - guarded by ['+a']
       
    67   [1]
    65 
    68 
    66   $ hg qguard a.patch
    69   $ hg qguard a.patch
    67   a.patch: +a
    70   a.patch: +a
    68 
    71 
    69 should push b.patch
    72 should push b.patch
    78 
    81 
    79 test selection of an empty guard
    82 test selection of an empty guard
    80 
    83 
    81   $ hg qselect ""
    84   $ hg qselect ""
    82   abort: guard cannot be an empty string
    85   abort: guard cannot be an empty string
       
    86   [255]
    83   $ hg qselect a
    87   $ hg qselect a
    84   number of unguarded, unapplied patches has changed from 2 to 3
    88   number of unguarded, unapplied patches has changed from 2 to 3
    85 
    89 
    86 should push a.patch
    90 should push a.patch
    87 
    91