[MERGE] Change FileNames allocation strategy

Robert Collins robertc at robertcollins.net
Wed Aug 8 02:19:01 BST 2007

Robert Collins has voted approve.
Status is now: Resubmit
Oh, I didn't mean to leave the keyword there. So this should be
+       def allocate(self):
+               """Allocate name in the names collection.
+               :param name: The name to allocate.
+               :raises: bzrlib.errors.DuplicateKey if the name is 
already allocated.
+               """
+               if len(self._names) >= self._cap:
+                       raise errors.BzrError('too many files')
+               if name in self._names:
+                       raise errors.DuplicateKey(name)
+               self._names.add(name)
+               return name

For details, see: 

More information about the bazaar mailing list