infinitepush: replace `remotenames.hoist` with `remotenames.hoistedpeer`
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 31 Mar 2018 14:31:29 +0530
changeset 37232 15691d71da23
parent 37231 dc4bb1422f2b
child 37233 912f4f64047f
infinitepush: replace `remotenames.hoist` with `remotenames.hoistedpeer` The remotenames.hoist config option was renamed to remotenames.hoistedpeer while moving to core as an extension. Let's start using the config option provided by the in-core extension. Differential Revision: https://phab.mercurial-scm.org/D2990
hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py	Sun Mar 18 16:57:07 2018 +0900
+++ b/hgext/infinitepush/__init__.py	Sat Mar 31 14:31:29 2018 +0530
@@ -233,7 +233,7 @@
     '''
 
     if common.isremotebooksenabled(ui):
-        hoist = ui.config('remotenames', 'hoist') + '/'
+        hoist = ui.config('remotenames', 'hoistedpeer') + '/'
         if remotebookmark.startswith(hoist):
             return remotebookmark[len(hoist):]
     return remotebookmark