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

Fix import of tags in git-import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
            NotBranchError,
78
78
            )
79
79
        from bzrlib.repository import Repository
 
80
        from bzrlib.plugins.git.branch import GitBranch
80
81
        from bzrlib.plugins.git.fetch import InterGitNonGitRepository
81
82
        from bzrlib.plugins.git.repository import GitRepository
82
83
 
118
119
                except NotBranchError:
119
120
                    head_branch = head_bzrdir.create_branch()
120
121
                revid = mapping.revision_id_foreign_to_bzr(ref)
 
122
                source_branch = GitBranch(source_repo.bzrdir, source_repo, 
 
123
                    name, ref, None)
121
124
                head_branch.generate_revision_history(revid)
 
125
                source_branch.tags.merge_to(head_branch.tags)
122
126
        finally:
123
127
            pb.finished()
124
128