git-repo/tests
Josip Sokcevic 46790229fc sync: Fix sorting for nested projects
The current logic to create checkout layers doesn't work in all cases.
For example, let's assume there are three projects: "foo", "foo/bar" and
"foo-bar". Sorting lexicographical order is incorrect as foo-bar would
be placed between foo and foo/bar, breaking layering logic.

Instead, we split filepaths based using path delimiter (always /) and
then use lexicographical sort.

BUG=b:325119758
TEST=./run_tests, manual sync on chromiumos repository

Change-Id: I76924c3cc6ba2bb860d7a3e48406a6bba8f58c10
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/412338
Tested-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: George Engelbrecht <engeg@google.com>
2024-03-08 17:58:24 +00:00
..
fixtures git_config: Fixed test.gitconfig getting updated when running tests. 2021-09-30 21:45:09 +00:00
conftest.py tests: setup user identity for tests 2023-12-20 19:04:57 +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_xml: fix url normalization for inits and remotes 2023-12-20 07:38:49 +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 main: Use repo logger 2023-09-18 20:06:30 +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.py tests: do not allow underscores in cli options 2023-04-19 02:53:37 +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: Fix sorting for nested projects 2024-03-08 17:58:24 +00:00
test_subcmds_upload.py isort: format codebase 2023-08-22 18:32:22 +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