Commit f3ae2f0c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c4015163
...@@ -213,6 +213,8 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) { ...@@ -213,6 +213,8 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
} }
xat := map[zodb.Tid]string{} // tid > "at<i>" xat := map[zodb.Tid]string{} // tid > "at<i>"
xat[δftail.Head()] = "at0"
t.Logf("# @at0 (%s)", δftail.Head())
// δfstr/vδfstr converts δf/vδf to string taking xat into account // δfstr/vδfstr converts δf/vδf to string taking xat into account
δfstr := func(δf *ΔFile) string { δfstr := func(δf *ΔFile) string {
...@@ -311,7 +313,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) { ...@@ -311,7 +313,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
xat[commit.At] = fmt.Sprintf("at%d", i) xat[commit.At] = fmt.Sprintf("at%d", i)
t.Logf("# → @%s (%s) δT%s δD%s\t; %s\tδ%s", xat[commit.At], commit.At, xbtreetest.KVTxt(test.δblkTab), test.δdataTab, tTxt, δblk) t.Logf("# → @%s (%s) δT%s δD%s\t; %s\tδ%s", xat[commit.At], commit.At, xbtreetest.KVTxt(test.δblkTab), test.δdataTab, tTxt, δblk)
//t.Logf("# vδf: %s", vδfstr(vδf)) t.Logf("# vδf: %s", vδfstr(vδf))
//fmt.Printf("Zinblk: %v\n", Zinblk) //fmt.Printf("Zinblk: %v\n", Zinblk)
...@@ -370,7 +372,8 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) { ...@@ -370,7 +372,8 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
t.Logf("# forget ≤ @%s", xat[revcut]) t.Logf("# forget ≤ @%s", xat[revcut])
δftail.ForgetPast(revcut) δftail.ForgetPast(revcut)
vδf = vδf[1:] vδf = vδf[1:]
//t.Logf("# vδf: %s", vδfstr(vδf)) t.Logf("# vδf: %s", vδfstr(vδf))
t.Logf("# vδt: %s", vδfstr(δftail.SliceByFileRev(zfile, δftail.Tail(), δftail.Head())))
} }
// SliceByFileRev // SliceByFileRev
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment