Show More
@@ -47,6 +47,10 b' Binary format is as follow' | |||
|
47 | 47 | |
|
48 | 48 | Empty name are obviously forbidden. |
|
49 | 49 | |
|
50 | Name MUST start with a letter. This first character has to be capitalizable. | |
|
51 | The capitalisation of the first letter will be used to know if an option is | |
|
52 | advisory or mandatory. This is not implemented yet. | |
|
53 | ||
|
50 | 54 | Stream parameters use a simple textual format for two main reasons: |
|
51 | 55 | |
|
52 | 56 | - Stream level parameters should remains simple and we want to discourage any |
@@ -72,6 +76,7 b' Binary format is as follow' | |||
|
72 | 76 | import util |
|
73 | 77 | import struct |
|
74 | 78 | import urllib |
|
79 | import string | |
|
75 | 80 | |
|
76 | 81 | import changegroup |
|
77 | 82 | from i18n import _ |
@@ -100,6 +105,8 b' class bundle20(object):' | |||
|
100 | 105 | """add a stream level parameter""" |
|
101 | 106 | if not name: |
|
102 | 107 | raise ValueError('empty parameter name') |
|
108 | if name[0] not in string.letters: | |
|
109 | raise ValueError('non letter first character: %r' % name) | |
|
103 | 110 | self._params.append((name, value)) |
|
104 | 111 | |
|
105 | 112 | def getchunks(self): |
General Comments 0
You need to be logged in to leave comments.
Login now