Raw loader and key fixes
This commit is contained in:
parent
3eeb3ec887
commit
f920200be9
@ -73,7 +73,9 @@ func (r *rawChangeLoader) LoadFromTree(t *Tree, breakpoints []string) ([]*treech
|
||||
// now starting from breakpoints
|
||||
stack = stack[:0]
|
||||
for _, h := range breakpoints {
|
||||
stack = append(stack, t.attached[h])
|
||||
if c, exists := t.attached[h]; exists {
|
||||
stack = append(stack, c)
|
||||
}
|
||||
}
|
||||
|
||||
// doing another dfs to get all changes before breakpoints, we need to exclude them from results
|
||||
|
||||
@ -62,5 +62,5 @@ func (s spaceKeys) HeaderKey() []byte {
|
||||
}
|
||||
|
||||
func isRootIdKey(key string) bool {
|
||||
return strings.HasPrefix(key, "t/") && strings.HasSuffix(key, "rootId")
|
||||
return strings.HasPrefix(key, "t/") && strings.HasSuffix(key, "heads")
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user