tests/test-rebuildstate.t
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 19 Dec 2011 11:29:39 +0100
changeset 15695 1b9dcf2eb011
parent 15440 9ab2b3b730ee
child 16913 f2719b387380
permissions -rw-r--r--
phases: fix advanceboundary behavior when targetphase !=0 Changeset was properly removed from upper phase but was not explicitly added to target phase. If advanced changesets had not pwasnt in target phase they was considered public (0-phase).

basic test for hg debugrebuildstate

  $ hg init repo
  $ cd repo

  $ touch foo bar
  $ hg ci -Am 'add foo bar'
  adding bar
  adding foo

  $ touch baz
  $ hg add baz
  $ hg rm bar

  $ hg debugrebuildstate

state dump after

  $ hg debugstate --nodates | sort
  n 644         -1 bar
  n 644         -1 foo

status

  $ hg st -A
  ! bar
  ? baz
  C foo