(ctx context.Context, poolID ksuid.KSUID, branchName string, commitID ksuid.KSUID, author, message string)
| 394 | } |
| 395 | |
| 396 | func (r *Root) Revert(ctx context.Context, poolID ksuid.KSUID, branchName string, commitID ksuid.KSUID, author, message string) (ksuid.KSUID, error) { |
| 397 | pool, err := r.OpenPool(ctx, poolID) |
| 398 | if err != nil { |
| 399 | return ksuid.Nil, err |
| 400 | } |
| 401 | branch, err := pool.OpenBranchByName(ctx, branchName) |
| 402 | if err != nil { |
| 403 | return ksuid.Nil, err |
| 404 | } |
| 405 | return branch.Revert(ctx, commitID, author, message) |
| 406 | } |
| 407 | |
| 408 | func (r *Root) Open(context.Context, *super.Context, string, string, sbuf.Pushdown) (sbuf.Puller, error) { |
| 409 | return nil, errors.New("cannot use 'file' or 'http' source in a database query") |
nothing calls this directly
no test coverage detected