Patchwork [2,of,3] parsebundletype: add a comment for future generation

login
register
mail settings
Submitter Pierre-Yves David
Date Oct. 7, 2015, 6:54 p.m.
Message ID <b40e70b120ce89870fc0.1444244077@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/10860/
State Accepted
Headers show

Comments

Pierre-Yves David - Oct. 7, 2015, 6:54 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1443756076 25200
#      Thu Oct 01 20:21:16 2015 -0700
# Node ID b40e70b120ce89870fc0777c5f1794ff3cd18dd8
# Parent  f50488cfed7c74b47fcf14764751af3db3cc2412
parsebundletype: add a comment for future generation

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -3347,10 +3347,13 @@  def parsebundletype(repo, spec):
     This is parsing user specified bundle type as accepted in:
 
         'hg bundle --type TYPE'.
 
     It accept format in the form [compression][-version]|[version]
+
+    Consensus about extensions of the format for various bundle2 feature
+    is to prefix any feature with "+". eg "+treemanifest" or "gzip+phases"
     """
     comp, version = None, None
 
     if '-' in spec:
         comp, version = spec.split('-', 1)