tests/test-revert-unknown.t
author Augie Fackler <augie@google.com>
Tue, 15 Feb 2022 13:32:30 -0500
changeset 48778 c4149a110b5f
parent 44724 5c2a4f37eace
child 49621 55c6ebd11cb9
permissions -rw-r--r--
sparse: add timing block for parsing sparse configs This was showing up in an operation I was doing today, and I'd like to be able to get trace spans for it instead of just profiler samples. Differential Revision: https://phab.mercurial-scm.org/D12186

  $ 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