##// END OF EJS Templates
vcs: drop the superfluous and leaky hgcompat "layer"...
vcs: drop the superfluous and leaky hgcompat "layer" Explicit is better. And gives less pyflakes noise.

File last commit:

r7977:f713a375 default
r7977:f713a375 default
Show More
hgcompat.py
13 lines | 491 B | text/x-python | PythonLexer
"""
Mercurial libs compatibility
"""
import mercurial.localrepo
def monkey_do():
"""Apply some Mercurial monkey patching"""
# workaround for 3.3 94ac64bcf6fe and not calling largefiles reposetup correctly, and test_archival failing
mercurial.localrepo.localrepository._lfstatuswriters = [lambda *msg, **opts: None]
# 3.5 7699d3212994 added the invariant that repo.lfstatus must exist before hitting overridearchive
mercurial.localrepo.localrepository.lfstatus = False