~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

[merge] robertc's integration, updated tests to check for retcode=3

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
            yield self.has(relpath)
162
162
            count += 1
163
163
 
 
164
    def has_any(self, relpaths):
 
165
        """Return True if any of the paths exist."""
 
166
        for relpath in relpaths:
 
167
            if self.has(relpath):
 
168
                return True
 
169
        return False
 
170
 
164
171
    def iter_files_recursive(self):
165
172
        """Iter the relative paths of files in the transports sub-tree.
166
173
        
250
257
        """Copy a set of entries from self into another Transport.
251
258
 
252
259
        :param relpaths: A list/generator of entries to be copied.
 
260
        TODO: This interface needs to be updated so that the target location
 
261
              can be different from the source location.
253
262
        """
254
263
        # The dummy implementation just does a simple get + put
255
264
        def copy_entry(path):