comparison mercurial/repository.py @ 40427:59a870a4ad6e

changegroup: refactor emitrevision to use a `deltamode` argument This new argument gathers the semantic of `sendfulltext` and `deltaprevious` in a single value. We are about to introduce a new type of constraints. Avoiding yet another argument sounds like a plus.
author Boris Feld <boris.feld@octobus.net>
date Tue, 09 Oct 2018 22:02:01 +0200
parents 7e3b6c4f01a2
children 6a917075535a
comparison
equal deleted inserted replaced
40425:5e5c8f2a1eb5 40427:59a870a4ad6e
36 REVISION_FLAG_ELLIPSIS = 1 << 14 36 REVISION_FLAG_ELLIPSIS = 1 << 14
37 REVISION_FLAG_EXTSTORED = 1 << 13 37 REVISION_FLAG_EXTSTORED = 1 << 13
38 38
39 REVISION_FLAGS_KNOWN = ( 39 REVISION_FLAGS_KNOWN = (
40 REVISION_FLAG_CENSORED | REVISION_FLAG_ELLIPSIS | REVISION_FLAG_EXTSTORED) 40 REVISION_FLAG_CENSORED | REVISION_FLAG_ELLIPSIS | REVISION_FLAG_EXTSTORED)
41
42 CG_DELTAMODE_STD = b'default'
43 CG_DELTAMODE_PREV = b'previous'
44 CG_DELTAMODE_FULL = b'fulltext'
41 45
42 class ipeerconnection(interfaceutil.Interface): 46 class ipeerconnection(interfaceutil.Interface):
43 """Represents a "connection" to a repository. 47 """Represents a "connection" to a repository.
44 48
45 This is the base interface for representing a connection to a repository. 49 This is the base interface for representing a connection to a repository.