view tests/test-absorb-phase.t @ 39534:fd9029d36c41

ancestor: return early from _lazyancestorsiter() when reached to stoprev There's no need to empty the heap.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 10 Sep 2018 21:46:19 +0900
parents 5111d11b8719
children 0b7594ada0db
line wrap: on
line source

  $ cat >> $HGRCPATH << EOF
  > [extensions]
  > absorb=
  > drawdag=$RUNTESTDIR/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