diff options
author | Zac Medico <zmedico@gentoo.org> | 2024-03-13 21:09:21 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2024-05-25 15:08:15 -0700 |
commit | 71d9ce40be5bbf533a6d1b59c5a460621c3c91c4 (patch) | |
tree | 58c0970583e02d78c8ea81df2359fed00047ff50 /lib/portage/emaint/modules/meson.build | |
parent | binrepos.conf: Support "frozen" attribute (diff) | |
download | portage-71d9ce40be5bbf533a6d1b59c5a460621c3c91c4.tar.gz portage-71d9ce40be5bbf533a6d1b59c5a460621c3c91c4.tar.bz2 portage-71d9ce40be5bbf533a6d1b59c5a460621c3c91c4.zip |
Add get_repo_revision_history function and repo_revisions file
The history of synced revisions is provided by a new
get_repo_revision_history function and corresponding
/var/lib/portage/repo_revisions file, with history
limit currently capped at 25 revisions. If a change
is detected and the current process has permission
to update the repo_revisions file, then the file will
be updated with any newly detected revisions.
For volatile repos the revisions may be unordered,
which makes them unusable for the purposes of the
revision history, so the revisions of volatile repos
are not tracked. This functions detects revisions
which are not yet visible to the current process due
to the sync-rcu option.
The emaint revisions --purgerepos and --purgeallrepos
options allow revisions for some or all repos to be
easily purged from the history. For example, the
emerge-webrsync script uses this emaint commmand to
purge the revision history of the gentoo repo when
the emerge-webrsync --revert option is used to roll
back to a previous snapshot:
emaint revisions --purgerepos="${repo_name}"
Bug: https://bugs.gentoo.org/924772
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/portage/emaint/modules/meson.build')
-rw-r--r-- | lib/portage/emaint/modules/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/portage/emaint/modules/meson.build b/lib/portage/emaint/modules/meson.build index 48f4f77d8..33b396be9 100644 --- a/lib/portage/emaint/modules/meson.build +++ b/lib/portage/emaint/modules/meson.build @@ -12,5 +12,6 @@ subdir('logs') subdir('merges') subdir('move') subdir('resume') +subdir('revisions') subdir('sync') subdir('world') |