/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_repository.py

Use bzr-foreign function names for converting between git and bzr revids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for interfacing with a Git Repository"""
18
18
 
 
19
import git
 
20
 
19
21
from bzrlib import (
20
22
    errors,
21
23
    inventory,
25
27
 
26
28
from bzrlib.plugins.git import (
27
29
    dir,
28
 
    git,
29
30
    repository,
30
31
    tests,
31
32
    )
66
67
        rev = repo.get_revision(revid)
67
68
        self.assertIsInstance(rev, revision.Revision)
68
69
 
69
 
    def test_get_revision_unknown(self):
70
 
        tests.run_git('init')
71
 
 
72
 
        repo = Repository.open('.')
73
 
        self.assertRaises(errors.NoSuchRevision, repo.get_revision, "bla")
74
 
 
75
70
    def simple_commit(self):
76
71
        # Create a git repository with some interesting files in a revision.
77
72
        tests.run_git('init')