mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
ab3a7cb21f
Summary: In preparation for merging fb-mercurial sources to the Eden repository, move everything from the top-level directory into an `eden/scm` subdirectory.
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
|