diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py