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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-23 01:17:33 UTC
  • mfrom: (7516.1.1 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200623011733-ohfy5ukvyehd2kpf
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/386223

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
        return self._branch_url_from_project(
216
216
            self._mr['source_project_id'], self._mr['source_branch'])
217
217
 
 
218
    def get_source_revision(self):
 
219
        from breezy.git.mapping import default_mapping
 
220
        sha = self._mr['sha']
 
221
        if sha is None:
 
222
            return None
 
223
        return default_mapping.revision_id_foreign_to_bzr(sha.encode('ascii'))
 
224
 
218
225
    def get_target_branch_url(self):
219
226
        return self._branch_url_from_project(
220
227
            self._mr['target_project_id'], self._mr['target_branch'])