##// END OF EJS Templates
dirstate: use a new `drop_merge_data` in `setparent`...
dirstate: use a new `drop_merge_data` in `setparent` What is happening in this `setparent` loop is that we remove all `merge` related information when the dirstate is moved out of a `merge` situation. So instead of shuffling state to get them where we want, we simply add a method on the DirstateItem to do drop the information we want dropped. Differential Revision: https://phab.mercurial-scm.org/D11506

File last commit:

r46350:ed84a4d4 default
r48874:a660d8a5 default
Show More
test-dirstate-nonnormalset.t
22 lines | 505 B | text/troff | Tads3Lexer
/ tests / test-dirstate-nonnormalset.t
$ cat >> $HGRCPATH << EOF
> [command-templates]
> log="{rev}:{node|short} ({phase}) [{tags} {bookmarks}] {desc|firstline}\n"
> [extensions]
> dirstateparanoidcheck = $TESTDIR/../contrib/dirstatenonnormalcheck.py
> [experimental]
> nonnormalparanoidcheck = True
> [devel]
> all-warnings=True
> EOF
$ mkcommit() {
> echo "$1" > "$1"
> hg add "$1"
> hg ci -m "add $1"
> }
$ hg init testrepo
$ cd testrepo
$ mkcommit a
$ mkcommit b
$ mkcommit c
$ hg status