mercurial/bundle2.py
changeset 21900 b8bd97085ec9
parent 21660 e87d2a12d41b
child 22336 60786c8a2f70
--- a/mercurial/bundle2.py	Wed Jul 02 11:42:35 2014 +0200
+++ b/mercurial/bundle2.py	Wed Jul 02 16:17:54 2014 +0200
@@ -395,6 +395,11 @@
         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"""