tests/test-states-exact.t
author Alain Leufroy <alain.leufroy@logilab.fr>
Thu, 22 Sep 2011 19:18:40 +0200
changeset 97 e672cb1263cb
parent 96 d5170cc7881c
permissions -rw-r--r--
[states] make disabling state saftier It is not allowed to disable a state that is not empty because "Explicit is better than implicit". A hint is displayed to help the user.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
96
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
     1
  $ cat >> $HGRCPATH <<EOF
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
     2
  > [web]
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
     3
  > push_ssl = false
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
     4
  > allow_push = *
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
     5
  > [extensions]
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
     6
  > EOF
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
     7
  $ echo "states=$(echo $(dirname $TESTDIR))/hgext/states.py" >> $HGRCPATH
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
     8
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
     9
  $ mkcommit() {
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    10
  >    echo "$1" > "$1"
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    11
  >    hg add "$1"
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    12
  >    hg ci -m "$1"
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    13
  > }
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    14
  $ alias hglog='hg log --template "{desc|short} {rev} {state}\n"'
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    15
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    16
  $ hg init alpha
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    17
  $ cd alpha
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    18
  $ hg states ready draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    19
  $ mkcommit a
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    20
  $ mkcommit b
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    21
  $ mkcommit c
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    22
  $ mkcommit d
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    23
  $ mkcommit e
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    24
  $ mkcommit f
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    25
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    26
|0 - 1 - 2 - 3 - 4 - 5
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    27
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    28
  $ hg ready 3
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    29
  $ hg published 1
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    30
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    31
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    32
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    33
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    34
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    35
  b 1 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    36
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    37
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    38
very simple case
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    39
  $ hg ready --exact 1
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    40
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    41
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    42
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    43
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    44
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    45
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    46
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    47
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    48
required state not in statesheads
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    49
  $ hg draft --exact 3
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    50
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    51
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    52
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    53
  d 3 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    54
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    55
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    56
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    57
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    58
remove all other states
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    59
  $ hg draft --exact 0
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    60
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    61
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    62
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    63
  d 3 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    64
  c 2 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    65
  b 1 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    66
  a 0 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    67
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    68
draft was not there before
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    69
  $ hg ready 5
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    70
  $ hg draft --exact 4
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    71
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    72
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    73
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    74
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    75
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    76
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    77
  a 0 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    78
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    79
already in the required state
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    80
  $ hg draft --exact 5
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    81
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    82
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    83
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    84
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    85
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    86
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    87
  a 0 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    88
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    89
backward and foreward
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    90
  $ hg published 1
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    91
  $ hg ready --exact 1:4
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    92
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    93
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    94
  e 4 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    95
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    96
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    97
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    98
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
    99
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   100
with complex revset
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   101
  $ hg draft --exact 'readyheads()'
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   102
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   103
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   104
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   105
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   106
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   107
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   108
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   109
  $ hg ready --exact 'publishedheads()'
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   110
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   111
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   112
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   113
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   114
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   115
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   116
  a 0 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   117
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   118
Work with branches now
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   119
  $ hg up 1
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   120
  0 files updated, 0 files merged, 4 files removed, 0 files unresolved
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   121
  $ mkcommit g
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   122
  created new head
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   123
  $ mkcommit h
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   124
  $ hg up 3
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   125
  2 files updated, 0 files merged, 2 files removed, 0 files unresolved
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   126
  $ mkcommit i
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   127
  created new head
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   128
  $ mkcommit j
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   129
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   130
|              / - - - - 6 - 7
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   131
|0 - 1 - 2 - 3 - 4 - 5
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   132
|      \ - - - - - - - - - - - - 8 - 9
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   133
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   134
Set the new branches as ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   135
  $ hg ready 9 7
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   136
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   137
  j 9 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   138
  i 8 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   139
  h 7 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   140
  g 6 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   141
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   142
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   143
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   144
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   145
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   146
  a 0 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   147
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   148
with composite revset
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   149
  $ hg draft --exact 5:5 7:8
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   150
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   151
  j 9 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   152
  i 8 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   153
  h 7 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   154
  g 6 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   155
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   156
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   157
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   158
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   159
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   160
  a 0 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   161
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   162
cross braches
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   163
  $ hg published 5 7 9
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   164
  $ hg draft --exact 4:6
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   165
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   166
  j 9 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   167
  i 8 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   168
  h 7 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   169
  g 6 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   170
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   171
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   172
  d 3 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   173
  c 2 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   174
  b 1 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   175
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   176
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   177
Ok more complicated stuffs
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   178
  $ hg up 7
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   179
  2 files updated, 0 files merged, 4 files removed, 0 files unresolved
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   180
  $ mkcommit k
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   181
  $ hg published 5 9 10
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   182
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   183
|              / - - - - 6 - 7 - - - - - 10
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   184
|0 - 1 - 2 - 3 - 4 - 5
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   185
|      \ - - - - - - - - - - - - 8 - 9
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   186
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   187
cross branches and propagation on the same branche
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   188
  $ hg draft --exact 5:8
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   189
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   190
  k 10 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   191
  j 9 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   192
  i 8 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   193
  h 7 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   194
  g 6 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   195
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   196
  e 4 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   197
  d 3 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   198
  c 2 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   199
  b 1 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   200
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   201
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   202
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   203
cross branches and propagation on multiple branches
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   204
  $ hg published 10
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   205
  $ hg ready --exact 3 6:8
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   206
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   207
  k 10 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   208
  j 9 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   209
  i 8 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   210
  h 7 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   211
  g 6 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   212
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   213
  e 4 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   214
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   215
  c 2 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   216
  b 1 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   217
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   218
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   219
propagate ready on multiple branches taht contains draft states
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   220
  $ hg ready --exact 1
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   221
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   222
  k 10 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   223
  j 9 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   224
  i 8 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   225
  h 7 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   226
  g 6 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   227
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   228
  e 4 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   229
  d 3 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   230
  c 2 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   231
  b 1 ready
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   232
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   233
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   234
brute propagation
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   235
  $ hg draft --exact 0
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   236
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   237
  k 10 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   238
  j 9 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   239
  i 8 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   240
  h 7 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   241
  g 6 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   242
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   243
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   244
  d 3 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   245
  c 2 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   246
  b 1 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   247
  a 0 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   248
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   249
forget non activated state
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   250
  $ hg init beta
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   251
  $ cd beta
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   252
  $ hg states draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   253
  $ mkcommit a
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   254
  $ mkcommit b
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   255
  $ mkcommit c
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   256
  $ mkcommit d
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   257
  $ mkcommit e
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   258
  $ mkcommit f
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   259
  $ hg published 5
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   260
  $ hg draft --exact 3
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   261
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   262
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   263
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   264
  d 3 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   265
  c 2 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   266
  b 1 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   267
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   268
  $ hg states
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   269
  published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   270
  draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   271
  $ hg ready 3
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   272
  abort: state ready is not activated
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   273
  (try ``hg states ready`` before)
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   274
  [255]
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   275
  $ hglog
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   276
  f 5 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   277
  e 4 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   278
  d 3 draft
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   279
  c 2 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   280
  b 1 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   281
  a 0 published
d5170cc7881c [states] add --exact option to `hg <state> <nodes>` that allows to backward states bondaries
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff changeset
   282