/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/plugins/github/hoster.py

  • Committer: Jelmer Vernooij
  • Date: 2020-06-23 01:02:30 UTC
  • mfrom: (7490.40.27 work)
  • mto: This revision was merged to the branch mainline in revision 7517.
  • Revision ID: jelmer@jelmer.uk-20200623010230-62nnywznmb76h6ut
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
    def get_source_branch_url(self):
133
133
        return self._branch_from_part(self._pr['head'])
134
134
 
 
135
    def get_source_revision(self):
 
136
        """Return the latest revision for the source branch."""
 
137
        from breezy.git.mapping import default_mapping
 
138
        return default_mapping.revision_id_foreign_to_bzr(
 
139
            self._pr['head']['sha'].encode('ascii'))
 
140
 
135
141
    def get_target_branch_url(self):
136
142
        return self._branch_from_part(self._pr['base'])
137
143