Mercurial > hg
view tests/test-empty.t @ 49991:3997c64eff8b
test: use a more direct approach to test racy mutation
The previous test was relying on implementation details and harder to maintain.
The new version is closer to the initial intend : "What happens the file get overwritten from under the current process"
This change is motivated by further changes around the transaction and dirstate
logic that would break the fragile equilibrium that existed before this patch.
Making this change early make it easier to review on its own and remove noise
in future larger changes.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 07 Feb 2023 13:14:59 +0100 |
parents | 2f2682f40ea0 |
children | e358f6e0e50e |
line wrap: on
line source
Create an empty repo: $ hg init a $ cd a Try some commands: $ hg log $ hg grep wah [1] $ hg manifest $ hg verify -q Check the basic files created: $ ls .hg 00changelog.i cache requires store wcache Should be empty (except for the "basic" requires): $ ls .hg/store requires Poke at a clone: $ cd .. $ hg clone a b updating to branch default 0 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd b $ hg verify -q $ ls .hg 00changelog.i cache dirstate hgrc requires store wcache Should be empty (except for the "basic" requires): $ ls .hg/store requires $ cd ..