hgext/infinitepush/__init__.py
changeset 37200 8b5d7ef81066
parent 37199 c5687ce3b411
child 37201 aa015dd92591
--- a/hgext/infinitepush/__init__.py	Fri Feb 09 15:49:46 2018 +0530
+++ b/hgext/infinitepush/__init__.py	Tue Mar 27 18:04:05 2018 +0530
@@ -68,12 +68,6 @@
     # patterns to list if no patterns are specified.
     defaultremotepatterns = ['*']
 
-    # Server-side option. If bookmark that was pushed matches
-    # `fillmetadatabranchpattern` then background
-    # `hg debugfillinfinitepushmetadata` process will save metadata
-    # in infinitepush index for nodes that are ancestor of the bookmark.
-    fillmetadatabranchpattern = ''
-
     # Instructs infinitepush to forward all received bundle2 parts to the
     # bundle for storage. Defaults to False.
     storeallparts = True
@@ -154,9 +148,6 @@
 configitem('infinitepush', 'indexpath',
     default='',
 )
-configitem('infinitepush', 'fillmetadatabranchpattern',
-    default='',
-)
 configitem('infinitepush', 'storeallparts',
     default=False,
 )
@@ -1082,13 +1073,6 @@
         log(scratchbranchparttype, eventtype='success',
             elapsedms=(time.time() - parthandlerstart) * 1000)
 
-        fillmetadatabranchpattern = op.repo.ui.config(
-            'infinitepush', 'fillmetadatabranchpattern', '')
-        if bookmark and fillmetadatabranchpattern:
-            __, __, matcher = util.stringmatcher(fillmetadatabranchpattern)
-            if matcher(bookmark):
-                _asyncsavemetadata(op.repo.root,
-                                   [ctx.hex() for ctx in nodesctx])
     except Exception as e:
         log(scratchbranchparttype, eventtype='failure',
             elapsedms=(time.time() - parthandlerstart) * 1000,