mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
98ec775d12
Reviewed By: sfilipco Differential Revision: D22129405 fbshipit-source-id: 4b3338aa09b0834e3c23d94e50929f9e6105b8f6
23 lines
647 B
Raku
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
|