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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-12 01:46:51 UTC
  • mfrom: (7489.1.1 ghost-tags)
  • Revision ID: breezy.the.bot@gmail.com-20200212014651-hmd85m153s8pcxnz
Ignore ghost tags when pushing to a remote git repo.

Merged from https://code.launchpad.net/~jelmer/brz/ghost-tags/+merge/378930

Show diffs side-by-side

added added

removed removed

Lines of Context:
601
601
            if fetch_tags:
602
602
                for tagname, revid in viewitems(source.tags.get_tag_dict()):
603
603
                    if lossy:
604
 
                        new_sha = source_store._lookup_revision_sha1(revid)
 
604
                        try:
 
605
                            new_sha = source_store._lookup_revision_sha1(revid)
 
606
                        except KeyError:
 
607
                            if source.repository.has_revision(revid):
 
608
                                raise
605
609
                    else:
606
610
                        try:
607
611
                            new_sha = repo.lookup_bzr_revision_id(revid)[0]