diff --git a/hgext3rd/noverify.py b/hgext3rd/noverify.py new file mode 100644 --- /dev/null +++ b/hgext3rd/noverify.py @@ -0,0 +1,30 @@ +# noverify.py +# +# Copyright 2017 Facebook, Inc. +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2 or any later version. + +""" +disables hg verify + +Verify can be extremely slow on large repos, so this extension disables it. + +This also disables the verification step of rollback. +""" + +from __future__ import absolute_import + +from mercurial import ( + extensions, + hg, +) + +testedwith = 'ships-with-fb-hgext' + +def extsetup(ui): + extensions.wrapfunction(hg, 'verify', verify) + +def verify(self, repo): + repo.ui.warn(("not running deep verify of repo; too expensive\n")) + return 0