Rewrite import paths for migration from Bitbucket
This commit is contained in:
parent
30c67caced
commit
842a32ae0c
24
client.go
24
client.go
|
@ -39,20 +39,20 @@ import (
|
|||
|
||||
"github.com/bradfitz/iter"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/mse"
|
||||
"github.com/anacrolix/torrent/mse"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/data"
|
||||
filePkg "bitbucket.org/anacrolix/go.torrent/data/file"
|
||||
"bitbucket.org/anacrolix/go.torrent/dht"
|
||||
"bitbucket.org/anacrolix/go.torrent/internal/pieceordering"
|
||||
"bitbucket.org/anacrolix/go.torrent/iplist"
|
||||
"bitbucket.org/anacrolix/go.torrent/logonce"
|
||||
pp "bitbucket.org/anacrolix/go.torrent/peer_protocol"
|
||||
"bitbucket.org/anacrolix/go.torrent/tracker"
|
||||
_ "bitbucket.org/anacrolix/go.torrent/tracker/udp"
|
||||
. "bitbucket.org/anacrolix/go.torrent/util"
|
||||
"github.com/anacrolix/torrent/data"
|
||||
filePkg "github.com/anacrolix/torrent/data/file"
|
||||
"github.com/anacrolix/torrent/dht"
|
||||
"github.com/anacrolix/torrent/internal/pieceordering"
|
||||
"github.com/anacrolix/torrent/iplist"
|
||||
"github.com/anacrolix/torrent/logonce"
|
||||
pp "github.com/anacrolix/torrent/peer_protocol"
|
||||
"github.com/anacrolix/torrent/tracker"
|
||||
_ "github.com/anacrolix/torrent/tracker/udp"
|
||||
. "github.com/anacrolix/torrent/util"
|
||||
"bitbucket.org/anacrolix/sync"
|
||||
"bitbucket.org/anacrolix/utp"
|
||||
"github.com/anacrolix/utp"
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
)
|
||||
|
|
|
@ -11,13 +11,13 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/data/blob"
|
||||
"github.com/anacrolix/torrent/data/blob"
|
||||
|
||||
"github.com/bradfitz/iter"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/internal/testutil"
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
"bitbucket.org/anacrolix/utp"
|
||||
"github.com/anacrolix/torrent/internal/testutil"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
"github.com/anacrolix/utp"
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
)
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@ import (
|
|||
|
||||
_ "github.com/anacrolix/envpprof"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/dht"
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
_ "bitbucket.org/anacrolix/go.torrent/util/profile"
|
||||
"github.com/anacrolix/torrent/dht"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
_ "github.com/anacrolix/torrent/util/profile"
|
||||
)
|
||||
|
||||
type pingResponse struct {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/dht"
|
||||
"github.com/anacrolix/torrent/dht"
|
||||
)
|
||||
|
||||
type pingResponse struct {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"os"
|
||||
"os/signal"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/dht"
|
||||
"github.com/anacrolix/torrent/dht"
|
||||
)
|
||||
|
||||
type pingResponse struct {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent"
|
||||
"github.com/anacrolix/torrent"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/tracker"
|
||||
_ "bitbucket.org/anacrolix/go.torrent/tracker/udp"
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
"github.com/anacrolix/torrent/tracker"
|
||||
_ "github.com/anacrolix/torrent/tracker/udp"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
metainfo "github.com/anacrolix/libtorgo/metainfo"
|
||||
)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/mmap_span"
|
||||
"github.com/anacrolix/torrent/mmap_span"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"launchpad.net/gommap"
|
||||
)
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent"
|
||||
"github.com/anacrolix/torrent"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -15,12 +15,12 @@ import (
|
|||
|
||||
_ "github.com/anacrolix/envpprof"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/util/dirwatch"
|
||||
"github.com/anacrolix/torrent/util/dirwatch"
|
||||
|
||||
"bazil.org/fuse"
|
||||
fusefs "bazil.org/fuse/fs"
|
||||
"bitbucket.org/anacrolix/go.torrent"
|
||||
"bitbucket.org/anacrolix/go.torrent/fs"
|
||||
"github.com/anacrolix/torrent"
|
||||
"github.com/anacrolix/torrent/fs"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package torrent
|
||||
|
||||
import (
|
||||
"bitbucket.org/anacrolix/go.torrent/dht"
|
||||
"github.com/anacrolix/torrent/dht"
|
||||
)
|
||||
|
||||
// Override Client defaults.
|
||||
|
|
|
@ -12,8 +12,8 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/internal/pieceordering"
|
||||
pp "bitbucket.org/anacrolix/go.torrent/peer_protocol"
|
||||
"github.com/anacrolix/torrent/internal/pieceordering"
|
||||
pp "github.com/anacrolix/torrent/peer_protocol"
|
||||
)
|
||||
|
||||
var optimizedCancels = expvar.NewInt("optimizedCancels")
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
|
||||
"github.com/bradfitz/iter"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/internal/pieceordering"
|
||||
"github.com/anacrolix/torrent/internal/pieceordering"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/peer_protocol"
|
||||
"github.com/anacrolix/torrent/peer_protocol"
|
||||
)
|
||||
|
||||
func TestCancelRequestOptimized(t *testing.T) {
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"sort"
|
||||
"time"
|
||||
|
||||
dataPkg "bitbucket.org/anacrolix/go.torrent/data"
|
||||
dataPkg "github.com/anacrolix/torrent/data"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/mmap_span"
|
||||
"github.com/anacrolix/torrent/mmap_span"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"launchpad.net/gommap"
|
||||
)
|
||||
|
|
|
@ -14,9 +14,9 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/iplist"
|
||||
"bitbucket.org/anacrolix/go.torrent/logonce"
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
"github.com/anacrolix/torrent/iplist"
|
||||
"github.com/anacrolix/torrent/logonce"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
"bitbucket.org/anacrolix/sync"
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
)
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"log"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/logonce"
|
||||
"github.com/anacrolix/torrent/logonce"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
"bitbucket.org/anacrolix/sync"
|
||||
"github.com/willf/bloom"
|
||||
)
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
"bazil.org/fuse"
|
||||
fusefs "bazil.org/fuse/fs"
|
||||
"bitbucket.org/anacrolix/go.torrent"
|
||||
"github.com/anacrolix/torrent"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -14,14 +14,14 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/data"
|
||||
"github.com/anacrolix/torrent/data"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent"
|
||||
"bitbucket.org/anacrolix/go.torrent/data/mmap"
|
||||
"bitbucket.org/anacrolix/go.torrent/internal/testutil"
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
"github.com/anacrolix/torrent"
|
||||
"github.com/anacrolix/torrent/data/mmap"
|
||||
"github.com/anacrolix/torrent/internal/testutil"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
"github.com/bradfitz/iter"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
)
|
||||
|
||||
var sample = `
|
||||
|
|
2
misc.go
2
misc.go
|
@ -8,7 +8,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/peer_protocol"
|
||||
"github.com/anacrolix/torrent/peer_protocol"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
"strconv"
|
||||
"sync"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
|
||||
"github.com/bradfitz/iter"
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package torrent
|
||||
|
||||
import "bitbucket.org/anacrolix/go.torrent/data"
|
||||
import "github.com/anacrolix/torrent/data"
|
||||
|
||||
type statelessDataWrapper struct {
|
||||
data.Data
|
||||
|
|
|
@ -14,10 +14,10 @@ import (
|
|||
|
||||
"github.com/bradfitz/iter"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/data"
|
||||
pp "bitbucket.org/anacrolix/go.torrent/peer_protocol"
|
||||
"bitbucket.org/anacrolix/go.torrent/tracker"
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
"github.com/anacrolix/torrent/data"
|
||||
pp "github.com/anacrolix/torrent/peer_protocol"
|
||||
"github.com/anacrolix/torrent/tracker"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/peer_protocol"
|
||||
"github.com/anacrolix/torrent/peer_protocol"
|
||||
)
|
||||
|
||||
func r(i, b, l peer_protocol.Integer) request {
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"net/url"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/tracker"
|
||||
"github.com/anacrolix/torrent/tracker"
|
||||
)
|
||||
|
||||
type Action int32
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
"syscall"
|
||||
"testing"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent/tracker"
|
||||
"github.com/anacrolix/torrent/tracker"
|
||||
)
|
||||
|
||||
// Ensure net.IPs are stored big-endian, to match the way they're read from
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"bitbucket.org/anacrolix/go.torrent"
|
||||
"bitbucket.org/anacrolix/go.torrent/util"
|
||||
"github.com/anacrolix/torrent"
|
||||
"github.com/anacrolix/torrent/util"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/go-fsnotify/fsnotify"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue