tests/test-revert-unknown.t
author Anton Shestakov <av6@dwimlabs.net>
Sat, 06 Jun 2020 19:12:49 +0800
changeset 44978 f4361aed565d
parent 44724 5c2a4f37eace
child 49585 55c6ebd11cb9
permissions -rw-r--r--
tests: consistently use pyflakes as a Python module We check availability of pyflakes as a module, and also running it for real as a module. Only fair to test filterpyflakes.py working correctly when using pyflakes as a module too. Differential Revision: https://phab.mercurial-scm.org/D8617

  $ hg init
  $ touch unknown

  $ touch a
  $ hg add a
  $ hg ci -m "1"

  $ touch b
  $ hg add b
  $ hg ci -m "2"

Should show unknown

  $ hg status
  ? unknown
  $ hg revert -r 0 --all
  removing b

Should show unknown and b removed

  $ hg status
  R b
  ? unknown

Should show a and unknown

  $ ls -A
  .hg
  a
  unknown