/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: Jelmer Vernooij
  • Date: 2019-01-19 15:46:15 UTC
  • mto: This revision was merged to the branch mainline in revision 7243.
  • Revision ID: jelmer@jelmer.uk-20190119154615-372rdttw32jxze7w
Fix tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
477
477
 
478
478
        def get_changed_refs(old_refs):
479
479
            ret = {}
480
 
            if refname not in ret:
 
480
            if refname not in old_refs:
481
481
                raise NotBranchError(self.user_url)
482
482
            ret[refname] = dulwich.client.ZERO_SHA
483
483
            return ret
899
899
 
900
900
        def get_changed_refs(old_refs):
901
901
            ret = {}
902
 
            if sha == dulwich.client.ZERO_SHA and ref not in ret:
 
902
            if sha == dulwich.client.ZERO_SHA and ref not in old_refs:
903
903
                raise NoSuchTag(name)
904
904
            ret[ref] = sha
905
905
            return ret