comparison hgext/infinitepush/__init__.py @ 37232:15691d71da23

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 31 Mar 2018 14:31:29 +0530
parents 571f25dae740
children 912f4f64047f
comparison
equal deleted inserted replaced
37231:dc4bb1422f2b 37232:15691d71da23
231 works as well as 'hg update remote/master'. We want to allow the same in 231 works as well as 'hg update remote/master'. We want to allow the same in
232 infinitepush. 232 infinitepush.
233 ''' 233 '''
234 234
235 if common.isremotebooksenabled(ui): 235 if common.isremotebooksenabled(ui):
236 hoist = ui.config('remotenames', 'hoist') + '/' 236 hoist = ui.config('remotenames', 'hoistedpeer') + '/'
237 if remotebookmark.startswith(hoist): 237 if remotebookmark.startswith(hoist):
238 return remotebookmark[len(hoist):] 238 return remotebookmark[len(hoist):]
239 return remotebookmark 239 return remotebookmark
240 240
241 class bundlestore(object): 241 class bundlestore(object):