tests/testlib/ext-sidedata-4.py
author Simon Sapin <simon.sapin@octobus.net>
Fri, 10 Sep 2021 09:53:09 +0200
changeset 47983 e834b79def74
parent 46731 ba8e508a8e69
child 48966 6000f5b25c9b
permissions -rw-r--r--
rust: Switch to the memmap2-rs crate https://github.com/RazrFalcon/memmap2-rs This is a fork of the original memmap crate which appears to be unmaintained: https://github.com/danburkert/memmap-rs/issues/90 This fork is the most popular according to https://crates.io/keywords/mmap Differential Revision: https://phab.mercurial-scm.org/D11397

# coding: utf8
# ext-sidedata-4.py - small extension to test (differently still) the sidedata
# logic
#
# Simulates a server for a complex sidedata exchange.
#
# Copyright 2021 Raphaël Gomès <rgomes@octobus.net>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

from __future__ import absolute_import

from mercurial.revlogutils import sidedata


def reposetup(ui, repo):
    repo.register_wanted_sidedata(sidedata.SD_TEST2)
    repo.register_wanted_sidedata(sidedata.SD_TEST3)