Files
git-repo/man
Peter Kjellerstedt 412367bfaf project: Use dicts to keep track of copyfiles and linkfiles
This avoids copying/linking the same file/link multiple times if a
copyfile/linkfile element with the same values has been specifed
multiple times. This can happen when including a common manifest that
uses an extend-project element that has a copyfile/linkfile element.

This uses dicts rather than sets to store the copyfiles and linkfiles to
make sure the order they are specified in the manifest is maintained.
For Python 3.7+, maintaining the order that keys are added to dicts is
guaranteed, and for Python 3.6 it happened to be true.

The _CopyFile class and the _LinkFile class are changed to inherit from
NamedTuple to be able to store them in dicts.

Change-Id: I9f5a80298b875251a81c5fe7d353e262d104fae4
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/525322
Reviewed-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Tested-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Commit-Queue: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
2025-11-26 02:07:35 -08:00
..
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2025-04-22 11:37:45 -07:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2025-08-21 11:11:38 -07:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2022-07-11 16:42:23 +00:00
2025-08-21 11:11:38 -07:00
2022-07-11 16:42:23 +00:00
2025-11-21 10:48:42 -08:00
2025-11-21 10:48:42 -08:00