Change object tree debug dump

This commit is contained in:
mcrakhman 2023-01-11 19:04:47 +01:00 committed by Mikhail Iudin
parent 3c03ee80da
commit 332d8bb373
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -52,7 +52,7 @@ type ObjectTree interface {
Heads() []string
Root() *Change
HasChanges(...string) bool
DebugDump() (string, error)
DebugDump(parser DescriptionParser) (string, error)
IterateRoot(convert ChangeConvertFunc, iterate ChangeIterateFunc) error
IterateFrom(id string, convert ChangeConvertFunc, iterate ChangeIterateFunc) error
@ -626,6 +626,6 @@ func (ot *objectTree) validateTree(newChanges []*Change) error {
return ot.validator.ValidateNewChanges(ot.tree, ot.aclList, newChanges)
}
func (ot *objectTree) DebugDump() (string, error) {
return ot.tree.Graph(NoOpDescriptionParser)
func (ot *objectTree) DebugDump(parser DescriptionParser) (string, error) {
return ot.tree.Graph(parser)
}