sapling/eden/scm/tests/test-treestate-fresh-instance.t
Jun Wu 98ec775d12 py3: fix treestate related tests
Reviewed By: sfilipco

Differential Revision: D22129405

fbshipit-source-id: 4b3338aa09b0834e3c23d94e50929f9e6105b8f6
2020-06-23 14:06:54 -07:00

23 lines
647 B
Raku

#require fsmonitor
$ setconfig format.dirstate=2
$ newrepo
$ touch x
$ hg status
? x
$ hg debugshell --command 'print(repo.dirstate.getclock())'
c:* (glob)
Change the clock to an invalid value
$ hg debugshell --command 'with repo.wlock(), repo.lock(), repo.transaction("dirstate") as tr: repo.dirstate.setclock("c:11111:22222"); repo.dirstate.write(tr)'
$ hg debugshell --command 'print(repo.dirstate.getclock())'
c:11111:22222
Run "hg status" again. A new clock value will be written even if no files are changed
$ hg status
? x
$ hg debugshell --command 'print(repo.dirstate.getclock() != "c:11111:22222")'
True