comparison mercurial/bundle2.py @ 35655:2f54a3e228ff

bookmark: run 'pushkey' hooks after bookmark move, not 'prepushkey' This was a silly copy paste mistake. Spotted by Mitchell Plamann from Jane Street.
author Boris Feld <boris.feld@octobus.net>
date Mon, 15 Jan 2018 10:44:49 +0000
parents 7906354cbc68
children b996ddf5963d
comparison
equal deleted inserted replaced
35654:59c842a3d1e1 35655:2f54a3e228ff
2020 bookstore.applychanges(op.repo, op.gettransaction(), changes) 2020 bookstore.applychanges(op.repo, op.gettransaction(), changes)
2021 2021
2022 if pushkeycompat: 2022 if pushkeycompat:
2023 def runhook(): 2023 def runhook():
2024 for hookargs in allhooks: 2024 for hookargs in allhooks:
2025 op.repo.hook('prepushkey', **hookargs) 2025 op.repo.hook('pushkey', **hookargs)
2026 op.repo._afterlock(runhook) 2026 op.repo._afterlock(runhook)
2027 2027
2028 elif bookmarksmode == 'records': 2028 elif bookmarksmode == 'records':
2029 for book, node in changes: 2029 for book, node in changes:
2030 record = {'bookmark': book, 'node': node} 2030 record = {'bookmark': book, 'node': node}