Story #2205
closedAs a user, I want to pull older versions of trees available to atomic hosts.
100%
Description
The depth option specifies the tree traversal depth. The default (when not specified) is 0 which means only the latest commit is pulled. A value of -1 means the depth is unlimited.
On atomic hosts, branches indicate a product (Eg: RHEL7) and the version(s) come from the version information in the commit metadata.
Example:
[] are commits
/branch/rhel/7/os ------> [7.3]
[7.2]
[7.1]
[7.0]
Currently pulp does not support the depth option in the importer configuration so when the /branch/rhel/7/os is pulled, only the [7.3] commit is pulled. By adding support for depth option and passing it to libostree, users can control pulling older version. For example: depth=3 would result in pulp pulling 7.3, 7.2 and 7.1.
The depth option would also need to be supported by the distributor to control the publishing depth.
Support tree traversal depth. closes #2205