Mercurial > hg
comparison tests/test-dirstate-race.t @ 32812:add613cddcb6
workingctx: factor out post-status dirstate fixup
We want to allow extensions to be able to add code to run inside the wlock.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 12 Jun 2017 13:54:59 -0700 |
parents | f40eec7af044 |
children | 15e85dded933 |
comparison
equal
deleted
inserted
replaced
32811:ff02bb5979c1 | 32812:add613cddcb6 |
---|---|
99 $ rmdir d e | 99 $ rmdir d e |
100 $ hg update -C -q . | 100 $ hg update -C -q . |
101 | 101 |
102 Test that dirstate changes aren't written out at the end of "hg | 102 Test that dirstate changes aren't written out at the end of "hg |
103 status", if .hg/dirstate is already changed simultaneously before | 103 status", if .hg/dirstate is already changed simultaneously before |
104 acquisition of wlock in workingctx._checklookup(). | 104 acquisition of wlock in workingctx._poststatusfixup(). |
105 | 105 |
106 This avoidance is important to keep consistency of dirstate in race | 106 This avoidance is important to keep consistency of dirstate in race |
107 condition (see issue5584 for detail). | 107 condition (see issue5584 for detail). |
108 | 108 |
109 $ hg parents -q | 109 $ hg parents -q |