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

Add basic infrastructure for dpush.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for interfacing with a Git Branch"""
18
18
 
19
 
import git
20
 
 
21
19
from bzrlib import revision
22
20
from bzrlib.branch import Branch
23
21
 
27
25
    )
28
26
from bzrlib.plugins.git.mapping import default_mapping
29
27
 
 
28
import dulwich as git
 
29
 
30
30
 
31
31
class TestGitBranch(tests.TestCaseInTempDir):
32
32
 
78
78
        
79
79
        tests.run_git('tag', '-a', '-m', 'add tag', 'foo')
80
80
        
81
 
        newid = open('.git/refs/tags/foo').read().rstrip()
82
 
 
83
81
        thebranch = Branch.open('.')
84
 
        self.assertEquals({"foo": default_mapping.revision_id_foreign_to_bzr(newid)},
 
82
        self.assertEquals({"foo": default_mapping.revision_id_foreign_to_bzr(reva)},
85
83
                          thebranch.tags.get_tag_dict())
86
84
        
87
85