tests/test-absorb-phase.t
author Matt Harbison <matt_harbison@yahoo.com>
Wed, 26 Sep 2018 20:49:28 -0400
changeset 39882 c841e8855cd3
parent 39667 0b7594ada0db
child 40190 31dfa7dac4c9
permissions -rw-r--r--
py3: replace a StandardError reference This doesn't exist on py3, and the standard way of handling this seems to be to catch both exceptions.

  $ cat >> $HGRCPATH << EOF
  > [extensions]
  > absorb=
  > drawdag=$TESTDIR/drawdag.py
  > EOF

  $ hg init
  $ hg debugdrawdag <<'EOS'
  > C
  > |
  > B
  > |
  > A
  > EOS

  $ hg phase -r A --public -q
  $ hg phase -r C --secret --force -q

  $ hg update C -q
  $ printf B1 > B

  $ hg absorb -q

  $ hg log -G -T '{desc} {phase}'
  @  C secret
  |
  o  B draft
  |
  o  A public