Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.py @ 19201:309c439cdbaa
bundle-ng: add bundlecaps argument to getbundle() command
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sat, 09 Feb 2013 23:42:03 +0100 |
parents | 4cfdec944edf |
children | 0455fc94ae00 |
line wrap: on
line diff
--- a/mercurial/changegroup.py Fri May 10 21:03:01 2013 +0200 +++ b/mercurial/changegroup.py Sat Feb 09 23:42:03 2013 +0100 @@ -225,8 +225,11 @@ class bundle10(object): deltaheader = _BUNDLE10_DELTA_HEADER - def __init__(self): - pass + def __init__(self, bundlecaps=None): + # Set of capabilities we can use to build the bundle. + if bundlecaps is None: + bundlecaps = set() + self._bundlecaps = bundlecaps def start(self, lookup): self._lookup = lookup def close(self):