mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
fcf535a3e5
Summary: There are some code paths (ex. "purge --all") that sets watchman clock to None unexpectedly. That makes the next command slow. Bypass it by detecting the case and avoid setting clock to None. Reviewed By: DurhamG Differential Revision: D10188143 fbshipit-source-id: 4c35dfcee658ca2075d686da7d886e4b3a352b5a
20 lines
341 B
Raku
20 lines
341 B
Raku
#require fsmonitor
|
|
|
|
$ newrepo
|
|
$ enable purge
|
|
$ touch x
|
|
|
|
Watchman clock is set after "status"
|
|
|
|
$ hg status
|
|
? x
|
|
$ hg debugshell -c 'print(repo.dirstate.getclock())'
|
|
c:* (glob)
|
|
|
|
Watchman clock is not reset after a "purge --all"
|
|
|
|
$ hg purge --all
|
|
$ hg debugshell -c 'print(repo.dirstate.getclock())'
|
|
c:* (glob)
|
|
$ hg status
|