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

Fix unpeel map.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Tests for pushing revisions from Bazaar into Git."""
19
19
 
20
 
from bzrlib import (
21
 
    errors,
22
 
    )
23
20
from bzrlib.bzrdir import (
24
21
    format_registry,
25
22
    )
27
24
    InterRepository,
28
25
    )
29
26
from bzrlib.tests import (
 
27
    KnownFailure,
30
28
    TestCaseWithTransport,
31
29
    )
32
30
 
50
48
        self.assertIsInstance(self.interrepo, InterToGitRepository)
51
49
 
52
50
    def test_pointless_fetch_refs(self):
 
51
        raise KnownFailure("roundtripping not yet supported")
53
52
        old_refs, new_refs = self.interrepo.fetch_refs(lambda x: x)
54
53
        self.assertEquals(old_refs, new_refs)
55
54
 
59
58
        self.assertEquals(revidmap, {})
60
59
 
61
60
    def test_pointless_missing_revisions(self):
 
61
        self.interrepo.source_store.lock_read()
 
62
        self.addCleanup(self.interrepo.source_store.unlock)
62
63
        self.assertEquals([], list(self.interrepo.missing_revisions([])))
63
64
 
64
65
    def test_missing_revisions_unknown_stop_rev(self):
 
66
        self.interrepo.source_store.lock_read()
 
67
        self.addCleanup(self.interrepo.source_store.unlock)
65
68
        self.assertEquals([],
66
69
                list(self.interrepo.missing_revisions([(None, "unknown")])))