tests/test-admin-commands.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 07 Mar 2024 10:55:22 +0100
changeset 51531 f85f23f1479b
parent 50989 752c5a5b73c6
permissions -rw-r--r--
branchcache: skip entries that are topological heads in the on disk file In the majority of cases, topological heads are also branch heads. We have efficient way to get the topological heads and efficient way to retrieve their branch information. So there is little value in putting them in the branch cache file explicitly. On the contrary, writing them explicitly tend to create very large cache file that are inefficient to read and update. So the branch cache v3 format is no longer including them. This changeset focus on the format aspect and have no focus on the performance aspect. We will cover that later.

Test admin::verify

  $ hg init admin-verify
  $ cd admin-verify

Test normal output

  $ hg admin::verify -c dirstate
  running 1 checks
  running working-copy.dirstate
  checking dirstate

Quiet works

  $ hg admin::verify -c dirstate --quiet

Test no check no options

  $ hg admin::verify
  abort: `checks` required
  [255]

Test single check without options

  $ hg admin::verify -c working-copy.dirstate
  running 1 checks
  running working-copy.dirstate
  checking dirstate

Test single check (alias) without options

  $ hg admin::verify -c dirstate
  running 1 checks
  running working-copy.dirstate
  checking dirstate

Test wrong check name without options

  $ hg admin::verify -c working-copy.dir
  abort: unknown check working-copy.dir
  (did you mean working-copy.dirstate?)
  [10]

Test wrong alias without options

  $ hg admin::verify -c dir
  abort: unknown check dir
  [10]