/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/transport/local.py

MergeĀ fromĀ remote-transport

Show diffs side-by-side

added added

removed removed

Lines of Context:
474
474
            return True
475
475
 
476
476
 
477
 
class LocalRelpathServer(Server):
478
 
    """A pretend server for local transports, using relpaths."""
479
 
 
480
 
    def get_url(self):
481
 
        """See Transport.Server.get_url."""
482
 
        return "."
483
 
 
484
 
 
485
 
class LocalAbspathServer(Server):
486
 
    """A pretend server for local transports, using absolute paths."""
487
 
 
488
 
    def get_url(self):
489
 
        """See Transport.Server.get_url."""
490
 
        return os.path.abspath("")
491
 
 
492
 
 
493
477
class LocalURLServer(Server):
494
 
    """A pretend server for local transports, using file:// urls."""
 
478
    """A pretend server for local transports, using file:// urls.
 
479
    
 
480
    Of course no actual server is required to access the local filesystem, so
 
481
    this just exists to tell the test code how to get to it.
 
482
    """
495
483
 
496
484
    def get_url(self):
497
485
        """See Transport.Server.get_url."""
500
488
 
501
489
def get_test_permutations():
502
490
    """Return the permutations to be used in testing."""
503
 
    return [(LocalTransport, LocalRelpathServer),
504
 
            (LocalTransport, LocalAbspathServer),
 
491
    return [
505
492
            (LocalTransport, LocalURLServer),
506
493
            ]