[PATCH 08 of 14] undumprevlog: manually lift path auditing
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sat Jul 1 22:56:33 EDT 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1498960272 -7200
# Sun Jul 02 03:51:12 2017 +0200
# Node ID 5dd9c2cb6d1dbebc0a51662dd8dda9d4c3f933db
# Parent aa8fda090eeee63cfc24d4a125d69f275abac1dd
# EXP-Topic vfs.ward
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
# hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 5dd9c2cb6d1d
undumprevlog: manually lift path auditing
The 'audit' parameter of 'vfs' has very few users (three) and None of them are
from official commands. We start using alternative approach to be eventually
able of dropping the parameters.
diff --git a/contrib/undumprevlog b/contrib/undumprevlog
--- a/contrib/undumprevlog
+++ b/contrib/undumprevlog
@@ -17,7 +17,8 @@ from mercurial import (
for fp in (sys.stdin, sys.stdout, sys.stderr):
util.setbinary(fp)
-opener = vfsmod.vfs('.', False)
+opener = vfsmod.vfs('.')
+opener.audit = lambda fn: True # disable path auditing
tr = transaction.transaction(sys.stderr.write, opener, {'store': opener},
"undump.journal")
while True:
More information about the Mercurial-devel
mailing list