{% macro local_command(command, command_package, package, vcs, vcs_url) %} {% if command %}
Try this locally {% if command_package %}(using the {{ command_package }} {% endif %}package):
debcheckout {{ package }}
cd {{ package }}
{{ command }}
Merge these changes:
git pull {{ vcs_manager.get_repository_url(package, 'git') }} {{ suite }}/{{ role }}
{% endfor %}
Merge these changes:
brz merge {{ vcs_manager.get_branch_url(package, suite, 'bzr') }}
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
{% for binary_package in binary_packages %}apt install -t {{ distribution }} {{ binary_package }}
{% endfor %}
{% include ("result-codes/" + result_code + ".html") ignore missing %}{% endif %} {% endmacro %} {% macro display_branch_url(vcs_browse, vcs_url, vcswatch_version=None) %} {% if vcs_browse %} {{ vcs_url }} {% else %} {{ vcs_url }} {% endif %} {% if vcswatch_version %} (taken from version {{ vcswatch_version }}) {% endif %} {% endmacro %} {% macro display_upstream_branch_url(result) %} {% if result.get('upstream_branch_browse') %}{{ result['upstream_branch_url'] }}{% else %}{{ result['upstream_branch_url'] }}{% endif %} {% endmacro %} {% macro display_maintainer_email(maintainer_email) %} {{ maintainer_email }} {% endmacro %} {% macro display_publish_result_code(code) %} {% if code == 'success' %}{{ code }} {% elif code == 'nothing-to-do' %}{{ code }} {% elif code in ('differ-unreachable') %}{{ code }} {% elif code in ('missing-build-diff-control') %}{{ code }} {% elif code in ('publisher-invalid-response') %}{{ code }} {% else %}{{ code }} {% endif %} {% endmacro %} {% macro display_publish_result(mode, code, description, mp_url) %} {% if mode == 'push' %} {% if code == 'success' %}Successfully pushed {% else %}Failed to push: {{ code }} {% endif %} {% elif mode == 'propose' %} {% if code == 'success' %}{% if mp_url %}Merge proposal updated{% else %}Changes not significant enough for merge request.{% endif %} {% else %}Failed to create merge proposal: {{ code }} {% endif %} {% endif %} ({% if '\n' in description %}
{{ description }}{% else %}{{ description }}{% endif %}) {% endmacro %} {% macro describe_publish_policy(publish_policy) %} {% for pp in publish_policy %}{% if publish_policy|length > 1 %}{{ role }}: {% endif %}{{ pp['mode'] }}{% if pp['frequency_days'] %} (every {{ pp['frequency_days'] }} days){% endif %}{% if not loop.last %}, {% endif %}{% endfor %} {% endmacro %} {% macro display_vcs_diffs(show_diff, branches, tags=None) %} {% if branches %}
Diff is too long (more than 200 lines). Download the raw diff.
{% endif %} {% endfor %} {% endif %} {% endmacro %}