comparison mercurial/bundle2.py @ 35259:ad5f2b923b0d

push: include a 'check:bookmarks' part when possible Before updating the actual bookmark update, we can start with updating the way we check for push race. Checking bookmarks state earlier is useful even if we still use pushkey. Aborting before the changegroup is added can save a lot of time.
author Boris Feld <boris.feld@octobus.net>
date Mon, 13 Nov 2017 04:22:45 +0100
parents dbf868623daf
children af5507203d01
comparison
equal deleted inserted replaced
35258:dbf868623daf 35259:ad5f2b923b0d
1473 return None 1473 return None
1474 1474
1475 # These are only the static capabilities. 1475 # These are only the static capabilities.
1476 # Check the 'getrepocaps' function for the rest. 1476 # Check the 'getrepocaps' function for the rest.
1477 capabilities = {'HG20': (), 1477 capabilities = {'HG20': (),
1478 'bookmarks': (),
1478 'error': ('abort', 'unsupportedcontent', 'pushraced', 1479 'error': ('abort', 'unsupportedcontent', 'pushraced',
1479 'pushkey'), 1480 'pushkey'),
1480 'listkeys': (), 1481 'listkeys': (),
1481 'pushkey': (), 1482 'pushkey': (),
1482 'digests': tuple(sorted(util.DIGESTS.keys())), 1483 'digests': tuple(sorted(util.DIGESTS.keys())),