Discover Packages
github.com/danmestas/libfossil
internal
shun
package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: May 5, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Add marks an artifact as shunned. Idempotent — re-shunning updates
mtime and comment. Returns error if uuid format is invalid.
IsShunned returns true if the given uuid is in the shun table.
Remove unshuns an artifact. No-op if uuid is not shunned.
Entry represents a shunned artifact.
List returns all shunned artifacts ordered by mtime descending.
type PurgeResult struct {
BlobsDeleted int
DeltasExpanded int
PrivateCleaned int
}
PurgeResult summarizes what Purge deleted.
Purge physically removes all shunned blobs from the repo.
Follows Fossil's shun_artifacts() algorithm from shun.c.
Requires *db.DB (not Querier) because it runs in a transaction.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.