##// END OF EJS Templates
config: move the option to mmap rev branch cache in the storage section...
marmoute -
r52340:40943970 stable
parent child Browse files
Show More
@@ -732,7 +732,7 b' class revbranchcache:'
732
732
733 if self._names:
733 if self._names:
734 try:
734 try:
735 if repo.ui.configbool(b'format', b'mmap-revbranchcache'):
735 if repo.ui.configbool(b'storage', b'revbranchcache.mmap'):
736 with repo.cachevfs(_rbcrevs) as fp:
736 with repo.cachevfs(_rbcrevs) as fp:
737 data = util.buffer(util.mmapread(fp))
737 data = util.buffer(util.mmapread(fp))
738 else:
738 else:
@@ -2132,6 +2132,11 b' experimental = true # experimental as l'
2132
2132
2133 [[items]]
2133 [[items]]
2134 section = "storage"
2134 section = "storage"
2135 name = "revbranchcache.mmap"
2136 default = true
2137
2138 [[items]]
2139 section = "storage"
2135 name = "new-repo-backend"
2140 name = "new-repo-backend"
2136 default = "revlogv1"
2141 default = "revlogv1"
2137 experimental = true
2142 experimental = true
@@ -2935,8 +2940,3 b' section = "blackbox"'
2935 name = "date-format"
2940 name = "date-format"
2936 default = ""
2941 default = ""
2937 in_core_extension = "blackbox"
2942 in_core_extension = "blackbox"
2938
2939 [[items]]
2940 section = "format"
2941 name = "mmap-revbranchcache"
2942 default = false
@@ -2,8 +2,8 b''
2
2
3 #if mmap
3 #if mmap
4 $ cat <<EOF >> $HGRCPATH
4 $ cat <<EOF >> $HGRCPATH
5 > [format]
5 > [storage]
6 > mmap-revbranchcache=true
6 > revbranchcache.mmap=true
7 > EOF
7 > EOF
8 #endif
8 #endif
9
9
General Comments 0
You need to be logged in to leave comments. Login now