~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Robert Collins
  • Date: 2005-10-04 04:38:48 UTC
  • mfrom: (1400.1.1)
  • Revision ID: robertc@robertcollins.net-20051004043848-d65bb5f9d435fbb3
unbreak http branch operations

Show diffs side-by-side

added added

removed removed

Lines of Context:
315
315
        count = self._iterate_over(relpaths, gather, pb, 'stat', expand=False)
316
316
        return stats
317
317
 
 
318
    def listable(self):
 
319
        """Return True if this store supports listing."""
 
320
        raise NotImplementedError
318
321
 
319
322
    def list_dir(self, relpath):
320
323
        """Return a list of all files at the given location.
321
324
        WARNING: many transports do not support this, so trying avoid using
322
325
        it if at all possible.
323
326
        """
324
 
        raise NotImplementedError
 
327
        raise TransportNotPossible("This transport has not "
 
328
                                   "implemented list_dir.")
325
329
 
326
330
    def lock_read(self, relpath):
327
331
        """Lock the given file for shared (read) access.