infinitepush: drop the logic related to inhibit extension
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 03 Feb 2018 17:59:49 +0530
changeset 37191 b377b7dfe682
parent 37190 de4c2f3af97f
child 37192 ecdd8c3044de
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
hgext/infinitepush/__init__.py
--- 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',