Commit 133a58d9 authored by Kirill Smelkov's avatar Kirill Smelkov

X t/ -> go/

parent 5d695090
...@@ -14,8 +14,8 @@ import ( ...@@ -14,8 +14,8 @@ import (
//_ "../../storage" // XXX rel ok? //_ "../../storage" // XXX rel ok?
neo "../.." neo "../.."
zodb "../../zodb" zodb "../../../zodb"
_ "../../zodb/wks" _ "../../../zodb/wks"
) )
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"reflect" "reflect"
"sort" "sort"
"./zodb" "../zodb"
) )
// packets marshalling // packets marshalling
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
package neo package neo
import ( import (
"./zodb" "../zodb"
) )
const ( const (
......
...@@ -6,7 +6,7 @@ package neo ...@@ -6,7 +6,7 @@ package neo
// XXX move imports out of here // XXX move imports out of here
import ( import (
"./zodb" "../zodb"
"encoding/binary" "encoding/binary"
"errors" "errors"
......
...@@ -24,7 +24,7 @@ import ( ...@@ -24,7 +24,7 @@ import (
"testing" "testing"
"unsafe" "unsafe"
"./zodb" "../zodb"
) )
// decode string as hex; panic on error // decode string as hex; panic on error
......
...@@ -105,7 +105,7 @@ type localImporter struct { ...@@ -105,7 +105,7 @@ type localImporter struct {
} }
func (li *localImporter) Import(path string) (*types.Package, error) { func (li *localImporter) Import(path string) (*types.Package, error) {
xpath := strings.TrimPrefix(path, "./") // ./zodb -> zodb xpath := strings.TrimPrefix(path, "../") // ../zodb -> zodb
pkg := pkgMap[xpath] pkg := pkgMap[xpath]
if pkg != nil { if pkg != nil {
return pkg, nil return pkg, nil
...@@ -146,7 +146,7 @@ func main() { ...@@ -146,7 +146,7 @@ func main() {
log.SetFlags(0) log.SetFlags(0)
// go through proto.go and AST'ify & typecheck it // go through proto.go and AST'ify & typecheck it
loadPkg("zodb", "zodb/zodb.go") loadPkg("zodb", "../zodb/zodb.go")
loadPkg("neo", "proto.go", "neo.go") loadPkg("neo", "proto.go", "neo.go")
neoQualifier = types.RelativeTo(pkgMap["neo"]) neoQualifier = types.RelativeTo(pkgMap["neo"])
...@@ -161,7 +161,7 @@ import ( ...@@ -161,7 +161,7 @@ import (
"reflect" "reflect"
"sort" "sort"
"./zodb" "../zodb"
)`) )`)
pktTypeRegistry := map[int]string{} // pktCode -> typename pktTypeRegistry := map[int]string{} // pktCode -> typename
......
...@@ -19,7 +19,7 @@ import ( ...@@ -19,7 +19,7 @@ import (
"context" "context"
"fmt" "fmt"
"./zodb" "../zodb"
) )
// NEO Storage application // NEO Storage application
......
...@@ -23,7 +23,7 @@ import ( ...@@ -23,7 +23,7 @@ import (
"fmt" "fmt"
"os" "os"
"../../zodbtools" "../../../zodb/zodbtools"
_ "../../../zodb/wks" _ "../../../zodb/wks"
) )
......
...@@ -29,9 +29,9 @@ import ( ...@@ -29,9 +29,9 @@ import (
"log" "log"
"os" "os"
"../../../../storage/fs1" "../../../../../zodb/storage/fs1"
"../../../../xcommon/xbufio" "../../../../../xcommon/xbufio"
"lab.nexedi.com/kirr/go123/xbytes" "lab.nexedi.com/kirr/go123/xbytes"
"lab.nexedi.com/kirr/go123/xfmt" "lab.nexedi.com/kirr/go123/xfmt"
......
...@@ -22,8 +22,8 @@ import ( ...@@ -22,8 +22,8 @@ import (
"io" "io"
"os" "os"
"../../zodb" "../../../zodb"
"../../xcommon/xbufio" "../../../xcommon/xbufio"
"lab.nexedi.com/kirr/go123/xbytes" "lab.nexedi.com/kirr/go123/xbytes"
) )
......
...@@ -19,7 +19,7 @@ import ( ...@@ -19,7 +19,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"../../zodb" "../../../zodb"
"lab.nexedi.com/kirr/go123/exc" "lab.nexedi.com/kirr/go123/exc"
) )
......
package fsb package fsb
import "../../../zodb" import "../../../../zodb"
// comparison function for fsbTree // comparison function for fsbTree
// kept short & inlineable // kept short & inlineable
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
package fsb package fsb
import "../../../zodb" import "../../../../zodb"
import ( import (
"fmt" "fmt"
......
...@@ -19,7 +19,7 @@ echo "// KEY=$KEY VALUE=$VALUE" >>$out ...@@ -19,7 +19,7 @@ echo "// KEY=$KEY VALUE=$VALUE" >>$out
echo "// ---- 8< ----" >>$out echo "// ---- 8< ----" >>$out
echo >>$out echo >>$out
make -s -C $Bdir generic |sed \ make -s -C $Bdir generic |sed \
-e '/package b/a \\nimport "../../../zodb"' \ -e '/package b/a \\nimport "../../../../zodb"' \
-e 's/package b/package fsb/g' \ -e 's/package b/package fsb/g' \
-e "s/KEY/$KEY/g" \ -e "s/KEY/$KEY/g" \
-e "s/VALUE/$VALUE/g" \ -e "s/VALUE/$VALUE/g" \
......
...@@ -25,15 +25,15 @@ import ( ...@@ -25,15 +25,15 @@ import (
"os" "os"
"strconv" "strconv"
"../../zodb" "../../../zodb"
"./fsb" "./fsb"
pickle "github.com/kisielk/og-rek" pickle "github.com/kisielk/og-rek"
"lab.nexedi.com/kirr/go123/mem" "lab.nexedi.com/kirr/go123/mem"
"../../xcommon/xbufio" "../../../xcommon/xbufio"
"../../xcommon/xio" "../../../xcommon/xio"
) )
// fsIndex is Oid -> Data record position mapping used to associate Oid with // fsIndex is Oid -> Data record position mapping used to associate Oid with
......
...@@ -25,7 +25,7 @@ import ( ...@@ -25,7 +25,7 @@ import (
"strings" "strings"
"testing" "testing"
"../../zodb" "../../../zodb"
"./fsb" "./fsb"
) )
......
...@@ -182,7 +182,7 @@ def main(): ...@@ -182,7 +182,7 @@ def main():
print >>f, v print >>f, v
emit("// DO NOT EDIT - AUTOGENERATED (by py/gen-testdata)") emit("// DO NOT EDIT - AUTOGENERATED (by py/gen-testdata)")
emit("package fs1\n") emit("package fs1\n")
emit("import \"../../zodb\"\n") emit("import \"../../../zodb\"\n")
# index # index
emit("const _1fs_indexTopPos = %i" % stor._pos) emit("const _1fs_indexTopPos = %i" % stor._pos)
......
// DO NOT EDIT - AUTOGENERATED (by py/gen-testdata) // DO NOT EDIT - AUTOGENERATED (by py/gen-testdata)
package fs1 package fs1
import "../../zodb" import "../../../zodb"
const _1fs_indexTopPos = 12226 const _1fs_indexTopPos = 12226
var _1fs_indexEntryv = [...]indexEntry{ var _1fs_indexEntryv = [...]indexEntry{
......
...@@ -21,7 +21,7 @@ package fs1 ...@@ -21,7 +21,7 @@ package fs1
import ( import (
"net/url" "net/url"
"../../zodb" "../../../zodb"
) )
// TODO read-only support // TODO read-only support
......
...@@ -25,5 +25,5 @@ ...@@ -25,5 +25,5 @@
package wks package wks
import ( import (
_ "../../storage/fs1" _ "../../zodb/storage/fs1"
) )
...@@ -25,7 +25,7 @@ import ( ...@@ -25,7 +25,7 @@ import (
"regexp" "regexp"
"testing" "testing"
"../../storage/fs1" "../../zodb/storage/fs1"
"../../zodb" "../../zodb"
"github.com/sergi/go-diff/diffmatchpatch" "github.com/sergi/go-diff/diffmatchpatch"
...@@ -72,7 +72,7 @@ func loadZdumpPy(t *testing.T, path string) string { ...@@ -72,7 +72,7 @@ func loadZdumpPy(t *testing.T, path string) string {
func withTestdata1Fs(t testing.TB, f func(fs *fs1.FileStorage)) { func withTestdata1Fs(t testing.TB, f func(fs *fs1.FileStorage)) {
// XXX -> zodb.OpenURL // XXX -> zodb.OpenURL
fs, err := fs1.Open("../../storage/fs1/testdata/1.fs") // XXX read-only, path? fs, err := fs1.Open("../../zodb/storage/fs1/testdata/1.fs") // XXX read-only, path?
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
......
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