{# SPDX-FileCopyrightText: 2026 rishmadaan
SPDX-License-Identifier: GPL-3.0-or-later #}
{# The repo page's Incoming tab. When an operation just ran (Pull, Fetch), its result comes
first, in its own panel built only from what the operation measured; the fresh read of the
repo follows under its own heading. Every word is computed by web/routes/incoming.py. #}
{% set page_url = "/repo/" ~ repo.workspace ~ "/" ~ repo.key %}
{% set act = "/incoming/" ~ repo.workspace ~ "/" ~ repo.key %}
{% set br %}{{ inc.branch }}{% endset %}
{% set how %}moves {{ br }} forward to {{ inc.tip7 }}, the newest commit listed here, and nothing newer. It does not fetch first. If {{ br }} or {{ inc.upstream }} has changed since this list was drawn, it stops and shows the new list.{% endset %}
{% set others %}Pull all in the library toolbar is different: it fetches and takes the newest.{% endset %}
{% set res = inc.result %}
{% macro pull_button(label, primary=True) -%}
{%- endmacro %}
{% macro fetch_button(label, primary=True) -%}
{%- endmacro %}
{% macro commit_row(c) -%}
{{ c.body }}
Showing the newest {{ L.commits|length }} of {{ L.count }} commits (scroll the box). The other {{ L.commits_rest }} are older. {% if pulled %}The pull took all {{ L.count }}.{% else %}Pull takes all {{ L.count }}, including those not listed.{% endif %} {{ L.commits_rest_cmd }}
{% endif %}{{ L.kinds_line }}
{% endif %}Showing {{ L.files|length }} of {{ L.file_total }} files, largest first (scroll the box). {{ L.files_rest_cmd }}
{% endif %} ↑ Back to the top of this panel{{ res.lists.span }}
{% endif %} {{ facts_list(res.facts) }} {% if res.retry or res.op == "changed" %}{% if res.retry %}Retry runs the same fetch again; nothing is retried on its own.{% else %}Show redraws this page with {% if inc.kind in ("behind", "stale") %}the list as it is now, to review before pulling{% else %}this repo as it is now{% endif %}. It does not fetch: the check that stopped the pull already read the new state. The list reviewed earlier is no longer shown, because it no longer matches this repo.{% endif %}
{% endif %}{{ inc.span }}
{% endif %} {% if not inc.compact or k == "unknown" %} {% for para in inc.lede %}{{ para }}
{% endfor %} {% if inc.command %}{{ inc.command }}{% endif %}
{{ facts_list(inc.facts) }}
{% endif %}
{% if not inc.compact %}
Asking the remote what is there now. This page shows a new list only after git has finished and the fetch succeeded. Pull is not offered while a fetch is running.
Moving {{ br }} from {{ inc.head7 }} to {{ inc.tip7 }}. This page reports success only after git has finished and gitstow has read the result back.
{{ explain }}
{% endif %} {% endif %}Showing the newest {{ inc.local_commits|length }} of {{ inc.local_commit_total }} local commits. All of them, in a terminal: {{ inc.local_log_cmd }}
{% endif %}