tests/test-rebuildstate.t
author Chinmay Joshi <c@chinmayjoshi.com>
Thu, 05 Jun 2014 15:24:29 +0530
changeset 21717 2a095d3442e0
parent 16913 f2719b387380
child 23840 ddc17eaf0f1b
permissions -rw-r--r--
patch: replace functions in fsbackend to use vfs Several functions in fsbackend are replaced to use vfs functions. vfs operations are applied on filename and path is joined by _join().

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