/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 breezy/git/tests/test_branch.py

  • Committer: Jelmer Vernooij
  • Date: 2018-01-24 07:51:44 UTC
  • mfrom: (7251 work)
  • mto: This revision was merged to the branch mainline in revision 7252.
  • Revision ID: jelmer@jelmer.uk-20180124075144-byhp1hgdjt2jurfo
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        self.assertEqual({"lala": revid}, newbranch.tags.get_tag_dict())
229
229
        self.assertEqual([revid], newbranch.repository.all_revision_ids())
230
230
 
 
231
    def test_sprouted_ghost_tags(self):
 
232
        path, gitsha = self.make_onerev_branch()
 
233
        r = GitRepo(path)
 
234
        r.refs[b"refs/tags/lala"] = b"aa" * 20
 
235
        oldrepo = Repository.open(path)
 
236
        revid = oldrepo.get_mapping().revision_id_foreign_to_bzr(gitsha)
 
237
        warnings, newbranch = self.callCatchWarnings(
 
238
            self.clone_git_branch, path, "f")
 
239
        self.assertEqual({}, newbranch.tags.get_tag_dict())
 
240
        # Dulwich raises a UserWarning for tags with invalid target
 
241
        self.assertEqual(1, len(warnings))
 
242
 
231
243
    def test_interbranch_pull(self):
232
244
        path, (gitsha1, gitsha2) = self.make_tworev_branch()
233
245
        oldrepo = Repository.open(path)