Rewrite import paths for migration from Bitbucket

This commit is contained in:
Matt Joiner 2015-03-20 16:37:44 +11:00
parent 30c67caced
commit 842a32ae0c
28 changed files with 61 additions and 61 deletions

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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 {

View File

@ -8,7 +8,7 @@ import (
"os"
"time"
"bitbucket.org/anacrolix/go.torrent/dht"
"github.com/anacrolix/torrent/dht"
)
type pingResponse struct {

View File

@ -8,7 +8,7 @@ import (
"os"
"os/signal"
"bitbucket.org/anacrolix/go.torrent/dht"
"github.com/anacrolix/torrent/dht"
)
type pingResponse struct {

View File

@ -9,7 +9,7 @@ import (
"github.com/anacrolix/libtorgo/bencode"
"bitbucket.org/anacrolix/go.torrent"
"github.com/anacrolix/torrent"
)
func main() {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -14,7 +14,7 @@ import (
"github.com/anacrolix/libtorgo/metainfo"
"bitbucket.org/anacrolix/go.torrent"
"github.com/anacrolix/torrent"
)
var (

View File

@ -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 (

View File

@ -1,7 +1,7 @@
package torrent
import (
"bitbucket.org/anacrolix/go.torrent/dht"
"github.com/anacrolix/torrent/dht"
)
// Override Client defaults.

View File

@ -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")

View File

@ -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) {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -14,7 +14,7 @@ import (
"bazil.org/fuse"
fusefs "bazil.org/fuse/fs"
"bitbucket.org/anacrolix/go.torrent"
"github.com/anacrolix/torrent"
)
const (

View File

@ -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"

View File

@ -9,7 +9,7 @@ import (
"github.com/bradfitz/iter"
"bitbucket.org/anacrolix/go.torrent/util"
"github.com/anacrolix/torrent/util"
)
var sample = `

View File

@ -8,7 +8,7 @@ import (
"sync"
"time"
"bitbucket.org/anacrolix/go.torrent/peer_protocol"
"github.com/anacrolix/torrent/peer_protocol"
)
const (

View File

@ -17,7 +17,7 @@ import (
"strconv"
"sync"
"bitbucket.org/anacrolix/go.torrent/util"
"github.com/anacrolix/torrent/util"
"github.com/bradfitz/iter"
)

View File

@ -1,6 +1,6 @@
package torrent
import "bitbucket.org/anacrolix/go.torrent/data"
import "github.com/anacrolix/torrent/data"
type statelessDataWrapper struct {
data.Data

View File

@ -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"
)

View File

@ -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 {

View File

@ -11,7 +11,7 @@ import (
"net/url"
"time"
"bitbucket.org/anacrolix/go.torrent/tracker"
"github.com/anacrolix/torrent/tracker"
)
type Action int32

View File

@ -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

View File

@ -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"
)