Skip to content

Commit

Permalink
Revert "do not hide current revision"
Browse files Browse the repository at this point in the history
This reverts commit 366dbd4.
  • Loading branch information
butonic committed Nov 13, 2023
1 parent 366dbd4 commit 303440a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/storage/utils/decomposedfs/revisions.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ func (fs *Decomposedfs) ListRevisions(ctx context.Context, ref *provider.Referen

revisions = []*provider.FileVersion{}
np := n.InternalPath()
mtime, err := n.GetMTime(ctx)
currentRevisionPath := np + node.RevisionIDDelimiter + mtime.UTC().Format(time.RFC3339Nano)
if items, err := filepath.Glob(np + node.RevisionIDDelimiter + "*"); err == nil {
for i := range items {
if fs.lu.MetadataBackend().IsMetaFile(items[i]) || strings.HasSuffix(items[i], ".mlock") {
if fs.lu.MetadataBackend().IsMetaFile(items[i]) || strings.HasSuffix(items[i], ".mlock") || items[i] == currentRevisionPath {
continue
}

Expand Down

0 comments on commit 303440a

Please sign in to comment.