D2098: infinitepush: drop the logic related to inhibit extension

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Fri Mar 30 19:52:06 UTC 2018


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

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



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


More information about the Mercurial-devel mailing list