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

login
register
mail settings
Submitter phabricator
Date March 30, 2018, 7:52 p.m.
Message ID <ab318401d777c8e5482e2f709e0eac87@localhost.localdomain>
Download mbox | patch
Permalink /patch/29990/
State Not Applicable
Headers show

Comments

phabricator - March 30, 2018, 7:52 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb377b7dfe682: infinitepush: drop the logic related to inhibit extension (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2098?vs=5359&id=7413

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

AFFECTED FILES
  hgext/infinitepush/__init__.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, indygreg
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',