git-repo/tests
Fredrik de Groot 303bd963d5 manifest: add optional base check on remove and extend
This adds an optional, built-in checker for
guarding against patches hanging on wrong
base revisions, which is useful if a lower layer of
the manifest changes after a patch was done.

When adding a patch with a new revision using
extend-project or remove-project/project:

          C---D---E patches in project bla
         /
    A---B project bla in manifest state 1

<extend-project name="bla" revision="E" base-rev="B">

If project bla gets updated, in a new snap ID
or by a supplier or similar, to a new state:

          C---D---E patches in project bla
         /
    A---B---F---G project bla in manifest state 2

Parsing will fail because revision of bla is now G,
giving the choice to create a new patch branch
from G and updating base-rev, or keeping previous
branch for some reason and only updating base-rev.

Intended for use in a layered manifest with
hashed revisions. Named refs like branches and tags
also work fine when comparing, but will be misleading
if a branch is used as base-rev.

Change-Id: Ic6211550a7d3cc9656057f6a2087c505b40cad2b
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/436777
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Tested-by: Fredrik de Groot <fredrik.de.groot@haleytek.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
2024-10-28 16:55:10 +00:00
..
fixtures color: fix have_fg not re assign to true 2024-09-12 16:15:06 +00:00
conftest.py tests: setup user identity for tests 2023-12-20 19:04:57 +00:00
test_color.py color: fix have_fg not re assign to true 2024-09-12 16:15:06 +00:00
test_editor.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_error.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_git_command.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_config.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_superproject.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_trace2_event_log.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_hooks.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_manifest_xml.py manifest: add optional base check on remove and extend 2024-10-28 16:55:10 +00:00
test_platform_utils.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_project.py upload: Add support for setting patchset description 2024-03-04 18:50:24 +00:00
test_repo_logging.py logging: Fix log formatting with colored output 2024-07-02 06:24:31 +00:00
test_repo_trace.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_ssh.py Parse OpenSSH versions with no SSH_EXTRAVERSION 2023-05-24 17:33:08 +00:00
test_subcmds_init.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_subcmds_sync.py sync: Always use WORKER_BATCH_SIZE 2024-10-07 18:44:19 +00:00
test_subcmds_upload.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_subcmds.py tests: do not allow underscores in cli options 2023-04-19 02:53:37 +00:00
test_update_manpages.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_wrapper.py cleanup: delete redundant "r" open mode 2023-10-21 00:55:33 +00:00