Submitter | Pierre-Yves David |
---|---|
Date | July 7, 2014, 11:02 a.m. |
Message ID | <43db2776ef385be3ade6.1404730921@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/5120/ |
State | Accepted |
Commit | b8bd97085ec95317a685bf6889d7952a65b217cc |
Headers | show |
Comments
Patch
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -393,10 +393,15 @@ class bundle20(object): self.ui = ui self._params = [] self._parts = [] self.capabilities = dict(capabilities) + @property + def nbparts(self): + """total number of parts added to the bundler""" + return len(self._parts) + # methods used to defines the bundle2 content def addparam(self, name, value=None): """add a stream level parameter""" if not name: raise ValueError('empty parameter name')