/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/tests/test_remote.py

  • Committer: Robert Collins
  • Date: 2009-03-23 05:48:14 UTC
  • mto: This revision was merged to the branch mainline in revision 4188.
  • Revision ID: robertc@robertcollins.net-20090323054814-0y1yph3zuafxgen6
Add RepositoryFormat.fast_deltas to signal fast delta creation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    RemoteBzrDir,
47
47
    RemoteBzrDirFormat,
48
48
    RemoteRepository,
 
49
    RemoteRepositoryFormat,
49
50
    )
 
51
from bzrlib.repofmt import pack_repo
50
52
from bzrlib.revision import NULL_REVISION
51
53
from bzrlib.smart import server, medium
52
54
from bzrlib.smart.client import _SmartClient
1450
1452
        return repo, client
1451
1453
 
1452
1454
 
 
1455
class TestRepositoryFormat(TestRemoteRepository):
 
1456
 
 
1457
    def test_fast_delta(self):
 
1458
        true_name = pack_repo.RepositoryFormatPackDevelopment2().network_name()
 
1459
        true_format = RemoteRepositoryFormat()
 
1460
        true_format._network_name = true_name
 
1461
        self.assertEqual(True, true_format.fast_deltas)
 
1462
        false_name = pack_repo.RepositoryFormatKnitPack1().network_name()
 
1463
        false_format = RemoteRepositoryFormat()
 
1464
        false_format._network_name = false_name
 
1465
        self.assertEqual(False, false_format.fast_deltas)
 
1466
 
 
1467
 
1453
1468
class TestRepositoryGatherStats(TestRemoteRepository):
1454
1469
 
1455
1470
    def test_revid_none(self):