Patchwork D2098: infinitepush: drop the logic related to inhibit extension

login
register
mail settings
Submitter phabricator
Date Feb. 9, 2018, 11:45 a.m.
Message ID <differential-rev-PHID-DREV-osdqtqn6nb7fi34etjeh-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27500/
State Superseded
Headers show

Comments

phabricator - Feb. 9, 2018, 11:45 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The inhibit extension lives in hg-experimental and is not a core extension.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2098

AFFECTED FILES
  hgext/infinitepush/__init__.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/infinitepush/__init__.py b/hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py
+++ b/hgext/infinitepush/__init__.py
@@ -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',