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
--- 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',