diff mercurial/localrepo.py @ 40267:9d5ddf55415b

revlog: allow flag processors to be applied via store options This allows flag processors to be registered to specific repos in an extension by wrapping localrepo.resolverevlogstorevfsoptions(). I wanted to add the processors via a function on localrepo, but some of the places where the processors are globally registered don't have a repository available. This makes targeting specific repos in the wrapper awkward, but still manageable.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 09 Oct 2018 21:53:21 -0400
parents 41fcdfe3bfeb
children e787d97e90ad
line wrap: on
line diff
--- a/mercurial/localrepo.py	Fri Oct 12 17:34:45 2018 -0400
+++ b/mercurial/localrepo.py	Tue Oct 09 21:53:21 2018 -0400
@@ -708,6 +708,7 @@
     """Resolve opener options specific to revlogs."""
 
     options = {}
+    options[b'flagprocessors'] = {}
 
     if b'revlogv1' in requirements:
         options[b'revlogv1'] = True