/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/store/__init__.py

  • Committer: Michael Ellerman
  • Date: 2005-10-26 10:03:47 UTC
  • mfrom: (1185.16.116)
  • mto: (1185.16.126)
  • mto: This revision was merged to the branch mainline in revision 1488.
  • Revision ID: michael@ellerman.id.au-20051026100347-bb0b2bd42f7953f2
MergeĀ mainline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
import os
28
28
from cStringIO import StringIO
 
29
import urllib
29
30
from zlib import adler32
30
31
 
31
32
import bzrlib
206
207
        # RBC 20051017 - TODO SOON, separate them again.
207
208
        self._suffixes = set()
208
209
 
 
210
    def _iter_files_recursive(self):
 
211
        """Iterate through the files in the transport."""
 
212
        for quoted_relpath in self._transport.iter_files_recursive():
 
213
            yield urllib.unquote(quoted_relpath)
 
214
 
209
215
    def __iter__(self):
210
 
        for relpath in self._transport.iter_files_recursive():
 
216
        for relpath in self._iter_files_recursive():
211
217
            # worst case is one of each suffix.
212
218
            name = os.path.basename(relpath)
213
219
            if name.endswith('.gz'):
234
240
        else:
235
241
            path = [fileid]
236
242
        path.extend(suffixes)
237
 
        return '.'.join(path)
 
243
        return transport.urlescape('.'.join(path))
238
244
 
239
245
    def __repr__(self):
240
246
        if self._transport is None: