comparison mercurial/configitems.py @ 35261:f392066d127c

bookmark: add pushkey hook compatiblity to the bundle2 part Currently, pushing a bookmark update triggers a pushkey hooks. It is likely that users in the wild use such hooks to control bookmark movement. Using a non push-key mechanism to exchange bookmark means these hooks are no longer called, possibly breaking existing users setup. So we add explicit call to the pushkey hooks in the handling of the bundle2 part. This behavior can be disabled with a new config knob: 'server.bookmarks-pushkey-compat'.
author Boris Feld <boris.feld@octobus.net>
date Tue, 17 Oct 2017 12:07:24 +0200
parents 5a62910948d2
children 6ba79cf34f5e
comparison
equal deleted inserted replaced
35260:af5507203d01 35261:f392066d127c
839 default=dynamicdefault, 839 default=dynamicdefault,
840 ) 840 )
841 coreconfigitem('push', 'pushvars.server', 841 coreconfigitem('push', 'pushvars.server',
842 default=False, 842 default=False,
843 ) 843 )
844 coreconfigitem('server', 'bookmarks-pushkey-compat',
845 default=True,
846 )
844 coreconfigitem('server', 'bundle1', 847 coreconfigitem('server', 'bundle1',
845 default=True, 848 default=True,
846 ) 849 )
847 coreconfigitem('server', 'bundle1gd', 850 coreconfigitem('server', 'bundle1gd',
848 default=None, 851 default=None,