tests/test-rebuildstate.t
author Adrian Buehlmann <adrian@cadifra.com>
Sat, 15 Sep 2012 21:41:09 +0200
changeset 17570 f53a7b256ca6
parent 16913 f2719b387380
child 23840 ddc17eaf0f1b
permissions -rw-r--r--
store: optimze _auxencode() a bit by grouping the reserved names by length This reduces perffncacheencode wall time on Windows 7 x64 for my netbeans clone here from 4.3 to 4.0 (7% faster).

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

  $ cd ..