Submitter | Pierre-Yves David |
---|---|
Date | July 2, 2017, 2:56 a.m. |
Message ID | <a5ddf792663096dbc146.1498964195@nodosa.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/21884/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -691,8 +691,9 @@ def openrevlog(repo, cmd, file_, opts): raise error.CommandError(cmd, _('invalid arguments')) if not os.path.isfile(file_): raise error.Abort(_("revlog '%s' not found") % file_) - r = revlog.revlog(vfsmod.vfs(pycompat.getcwd(), audit=False), - file_[:-2] + ".i") + vfs = vfsmod.vfs(pycompat.getcwd()) + vfs.audit = util.always # disable path auditing + r = revlog.revlog(vfs, file_[:-2] + ".i") return r def copy(ui, repo, pats, opts, rename=False):