tests/test-dirstate-backup.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 03 May 2021 12:29:09 +0200
changeset 47233 c2180093682a
parent 45846 8d72e29ad1e0
child 50046 ffd19d73518d
permissions -rw-r--r--
revlog: determine sidedata support based on the revlog version Revlog version "2" support sidedata, previous version does not. So lets make the initialization simpler. Differential Revision: https://phab.mercurial-scm.org/D10613

Set up

  $ hg init repo
  $ cd repo

Try to import an empty patch

  $ hg import --no-commit - <<EOF
  > EOF
  applying patch from stdin
  abort: stdin: no diffs found
  [10]

No dirstate backups are left behind

  $ ls .hg/dirstate* | sort
  .hg/dirstate