Mercurial > public > mercurial-scm > hg-stable
view tests/test-dirstate-backup.t @ 50046:ffd19d73518d
test: create some history in test-dirstate-backup
An empty repository, based on `null` is quite a corner cases. We create a more
"natural" setup for this tests to make sure it can keep testing what it intend
to test in the future.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 13 Feb 2023 23:56:13 +0100 |
parents | 8d72e29ad1e0 |
children |
line wrap: on
line source
Set up $ hg init repo $ cd repo $ echo a > a $ hg add a $ hg commit -m a 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