mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
unhide: add config knob to always show remotenames even if hidden
This commit is contained in:
parent
3130343156
commit
50acee3867
@ -63,8 +63,10 @@ def expull(orig, repo, remote, *args, **kwargs):
|
||||
def blockerhook(orig, repo, *args, **kwargs):
|
||||
blockers = orig(repo)
|
||||
|
||||
if util.safehasattr(repo, '_hackremotenamepush') and \
|
||||
repo._hackremotenamepush:
|
||||
# protect un-hiding changesets behind a config knob
|
||||
unhide = repo.ui.configbool('remotenames', 'unhide')
|
||||
hackpush = util.safehasattr(repo, '_hackremotenamepush')
|
||||
if not unhide or (hackpush and repo._hackremotenamepush):
|
||||
return blockers
|
||||
|
||||
# add remotenames to blockers
|
||||
|
Loading…
Reference in New Issue
Block a user