view hgext/narrow/narrowrevlog.py @ 39767:db088e133e91

revlog: define ellipsis flag processors in core We will soon be teaching core to honor the ellipsis flag on revlogs. Moving the definition of the processor functions to core is the first step in this. The processor is still not registered unless the narrow extension is loaded. Differential Revision: https://phab.mercurial-scm.org/D4645
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 05 Sep 2018 13:29:22 -0700
parents 9358f5066811
children
line wrap: on
line source

# narrowrevlog.py - revlog storing irrelevant nodes as "ellipsis" nodes
#
# Copyright 2017 Google, Inc.
#
# 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 import (
   revlog,
)

revlog.addflagprocessor(revlog.REVIDX_ELLIPSIS, revlog.ellipsisprocessor)

def setup():
    # We just wanted to add the flag processor, which is done at module
    # load time.
    pass