diff 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
line wrap: on
line diff
--- a/mercurial/repository.py	Tue Oct 23 21:11:13 2018 +0900
+++ b/mercurial/repository.py	Tue Oct 09 22:02:01 2018 +0200
@@ -39,6 +39,10 @@
 REVISION_FLAGS_KNOWN = (
     REVISION_FLAG_CENSORED | REVISION_FLAG_ELLIPSIS | REVISION_FLAG_EXTSTORED)
 
+CG_DELTAMODE_STD = b'default'
+CG_DELTAMODE_PREV = b'previous'
+CG_DELTAMODE_FULL = b'fulltext'
+
 class ipeerconnection(interfaceutil.Interface):
     """Represents a "connection" to a repository.