changeset 37189:b377b7dfe682

infinitepush: drop the logic related to inhibit extension The inhibit extension lives in hg-experimental and is not a core extension. Differential Revision: https://phab.mercurial-scm.org/D2098
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 03 Feb 2018 17:59:49 +0530
parents de4c2f3af97f
children ecdd8c3044de
files hgext/infinitepush/__init__.py
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/infinitepush/__init__.py	Sat Feb 03 17:54:55 2018 +0530
+++ b/hgext/infinitepush/__init__.py	Sat Feb 03 17:59:49 2018 +0530
@@ -791,24 +791,6 @@
         opts['bookmark'] = bookmarks
         opts['rev'] = revs
 
-    try:
-        inhibitmod = extensions.find('inhibit')
-    except KeyError:
-        # Ignore if inhibit is not enabled
-        pass
-    else:
-        # Pulling revisions that were filtered results in a error.
-        # Let's inhibit them
-        unfi = repo.unfiltered()
-        for rev in opts.get('rev', []):
-            try:
-                repo[rev]
-            except error.FilteredRepoLookupError:
-                node = unfi[rev].node()
-                inhibitmod.revive([repo.unfiltered()[node]])
-            except error.RepoLookupError:
-                pass
-
     if scratchbookmarks or unknownnodes:
         # Set anyincoming to True
         extensions.wrapfunction(discovery, 'findcommonincoming',