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

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
Cc: mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to