2018-10-30 06:03:50 +03:00
|
|
|
Emulate situations where NEED_CHECK was added to normal files and there should
|
|
|
|
be a way to remove them.
|
|
|
|
|
|
|
|
$ newrepo
|
|
|
|
$ drawdag << 'EOS'
|
|
|
|
> B
|
|
|
|
> |
|
|
|
|
> A
|
|
|
|
> EOS
|
|
|
|
$ hg up $B -q
|
|
|
|
|
|
|
|
Write mtime to treestate
|
|
|
|
|
|
|
|
$ sleep 1
|
|
|
|
|
|
|
|
$ hg status
|
|
|
|
|
2018-11-03 21:10:55 +03:00
|
|
|
$ hg debugtree list
|
|
|
|
A: 0100644 1 + EXIST_P1 EXIST_NEXT
|
|
|
|
B: 0100644 1 + EXIST_P1 EXIST_NEXT
|
2018-10-30 06:03:50 +03:00
|
|
|
|
|
|
|
Force the files to have NEED_CHECK bits
|
|
|
|
|
|
|
|
$ hg debugshell -c "
|
|
|
|
> with repo.lock(), repo.transaction('needcheck') as tr:
|
|
|
|
> d = repo.dirstate
|
|
|
|
> d.needcheck('A')
|
|
|
|
> d.needcheck('B')
|
|
|
|
> d.write(tr)
|
|
|
|
> "
|
2018-11-03 21:10:55 +03:00
|
|
|
$ hg debugtree list
|
|
|
|
A: 0100644 1 + EXIST_P1 EXIST_NEXT NEED_CHECK
|
|
|
|
B: 0100644 1 + EXIST_P1 EXIST_NEXT NEED_CHECK
|
2018-10-30 06:03:50 +03:00
|
|
|
|
2018-10-30 06:03:50 +03:00
|
|
|
Run status again. NEED_CHECK will disappear.
|
2018-10-30 06:03:50 +03:00
|
|
|
|
|
|
|
$ hg status
|
|
|
|
|
2018-11-03 21:10:55 +03:00
|
|
|
$ hg debugtree list
|
|
|
|
A: 0100644 1 + EXIST_P1 EXIST_NEXT
|
|
|
|
B: 0100644 1 + EXIST_P1 EXIST_NEXT
|