Change object tree debug dump
This commit is contained in:
parent
3c03ee80da
commit
332d8bb373
@ -52,7 +52,7 @@ type ObjectTree interface {
|
|||||||
Heads() []string
|
Heads() []string
|
||||||
Root() *Change
|
Root() *Change
|
||||||
HasChanges(...string) bool
|
HasChanges(...string) bool
|
||||||
DebugDump() (string, error)
|
DebugDump(parser DescriptionParser) (string, error)
|
||||||
|
|
||||||
IterateRoot(convert ChangeConvertFunc, iterate ChangeIterateFunc) error
|
IterateRoot(convert ChangeConvertFunc, iterate ChangeIterateFunc) error
|
||||||
IterateFrom(id string, 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)
|
return ot.validator.ValidateNewChanges(ot.tree, ot.aclList, newChanges)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ot *objectTree) DebugDump() (string, error) {
|
func (ot *objectTree) DebugDump(parser DescriptionParser) (string, error) {
|
||||||
return ot.tree.Graph(NoOpDescriptionParser)
|
return ot.tree.Graph(parser)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user