| 1 |
# ext-sidedata-4.py - small extension to test (differently still) the sidedata |
| 2 |
# logic |
| 3 |
# |
| 4 |
# Simulates a server for a complex sidedata exchange. |
| 5 |
# |
| 6 |
# Copyright 2021 Raphaël Gomès <[email protected]> |
| 7 |
# |
| 8 |
# This software may be used and distributed according to the terms of the |
| 9 |
# GNU General Public License version 2 or any later version. |
| 10 |
|
| 11 |
|
| 12 |
from mercurial.revlogutils import sidedata |
| 13 |
|
| 14 |
|
| 15 |
def reposetup(ui, repo): |
| 16 |
repo.register_wanted_sidedata(sidedata.SD_TEST2) |
| 17 |
repo.register_wanted_sidedata(sidedata.SD_TEST3) |