mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
perftweaks: fix case collision check
This commit is contained in:
parent
0272f0d7ec
commit
c093153d86
@ -26,6 +26,6 @@ def _readtagcache(orig, ui, repo):
|
||||
|
||||
def _checkcollision(orig, repo, wmf, actions):
|
||||
"""Disables case collision checking since it is known to be very slow."""
|
||||
if ui.configbool('perftweaks', 'disablecasecheck'):
|
||||
if repo.ui.configbool('perftweaks', 'disablecasecheck'):
|
||||
return
|
||||
orig(repo, wmf, actions)
|
||||
|
@ -32,3 +32,20 @@ Test disabling the tag cache
|
||||
$ hg blackbox | grep tag
|
||||
*> tags (glob)
|
||||
*> tags --config perftweaks.disabletags=True exited 0 after * seconds (glob)
|
||||
|
||||
$ cd ..
|
||||
|
||||
Test disabling the case conflict check (only fails on case sensitive systems)
|
||||
$ hg init casecheck
|
||||
$ cd casecheck
|
||||
$ cat >> .hg/hgrc <<EOF
|
||||
> [perftweaks]
|
||||
> disablecasecheck=True
|
||||
> EOF
|
||||
$ touch a
|
||||
$ hg add a
|
||||
$ hg commit -m a
|
||||
$ touch A
|
||||
$ hg add A
|
||||
warning: possible case-folding collision for A
|
||||
$ hg commit -m A
|
||||
|
Loading…
Reference in New Issue
Block a user