Patchwork D2099: infinitepush: delete the hack to load the extension after remotenames

login
register
mail settings
Submitter phabricator
Date Feb. 9, 2018, 11:45 a.m.
Message ID <differential-rev-PHID-DREV-luvufinrce2b2sdc3vs3-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27501/
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 remotenames extension which circumvents the default push implementation
  lives outside the core, so let's delete logic related to loading of extension on
  the basis of remotenames ext.

REPOSITORY
  rHG Mercurial

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

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
@@ -286,14 +286,6 @@ 
     if _isserver(ui) and repo.local():
         repo.bundlestore = bundlestore(repo)
 
-def uisetup(ui):
-    # remotenames circumvents the default push implementation entirely, so make
-    # sure we load after it so that we wrap it.
-    order = extensions._order
-    order.remove('infinitepush')
-    order.append('infinitepush')
-    extensions._order = order
-
 def extsetup(ui):
     commonsetup(ui)
     if _isserver(ui):