##// END OF EJS Templates
fsmonitor: increase the threshold before we recommend it, when using rust...
Valentin Gatien-Baron -
r46034:c1d6e930 default
parent child Browse files
Show More
@@ -73,6 +73,8 b" beneficial to performance but isn't enab"
73 73
74 74 [fsmonitor]
75 75 warn_update_file_count = (integer)
76 # or when mercurial is built with rust support
77 warn_update_file_count_rust = (integer)
76 78
77 79 If ``warn_when_unused`` is set and fsmonitor isn't enabled, a warning will
78 80 be printed during working directory updates if this many files will be
@@ -793,6 +793,9 b' coreconfigitem('
793 793 b'fsmonitor', b'warn_update_file_count', default=50000,
794 794 )
795 795 coreconfigitem(
796 b'fsmonitor', b'warn_update_file_count_rust', default=400000,
797 )
798 coreconfigitem(
796 799 b'help', br'hidden-command\..*', default=False, generic=True,
797 800 )
798 801 coreconfigitem(
@@ -1698,6 +1698,15 b' def _advertisefsmonitor(repo, num_gets, '
1698 1698 fsmonitorthreshold = repo.ui.configint(
1699 1699 b'fsmonitor', b'warn_update_file_count'
1700 1700 )
1701 # avoid cycle dirstate -> sparse -> merge -> dirstate
1702 from . import dirstate
1703
1704 if dirstate.rustmod is not None:
1705 # When using rust status, fsmonitor becomes necessary at higher sizes
1706 fsmonitorthreshold = repo.ui.configint(
1707 b'fsmonitor', b'warn_update_file_count_rust',
1708 )
1709
1701 1710 try:
1702 1711 # avoid cycle: extensions -> cmdutil -> merge
1703 1712 from . import extensions
@@ -1241,6 +1241,7 b' Lower the warning threshold to simulate '
1241 1241 $ cat >> $HGRCPATH << EOF
1242 1242 > [fsmonitor]
1243 1243 > warn_update_file_count = 2
1244 > warn_update_file_count_rust = 2
1244 1245 > EOF
1245 1246
1246 1247 We should see a warning about no fsmonitor on supported platforms
General Comments 0
You need to be logged in to leave comments. Login now