tests/test-rebuildstate.t
author Adrian Buehlmann <adrian@cadifra.com>
Sat, 15 Sep 2012 21:42:58 +0200
changeset 17573 fb8658ad9e8d
parent 16913 f2719b387380
child 23840 ddc17eaf0f1b
permissions -rw-r--r--
store: eliminate unneded last assignment to n in _auxencode() The check for period or space at the end of the string is the last one, the local variable n is thus not used anymore.

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 ..