Rename package

* github.com/restic/restic -> restic
This commit is contained in:
Alexander Neumann 2016-02-14 15:29:28 +01:00
parent 0a8ef79dad
commit c0bd660a9e
168 changed files with 263 additions and 263 deletions

View file

@ -12,11 +12,11 @@ import (
"time"
"github.com/restic/chunker"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/pack"
"github.com/restic/restic/pipe"
"github.com/restic/restic/repository"
"restic/backend"
"restic/debug"
"restic/pack"
"restic/pipe"
"restic/repository"
"github.com/juju/errors"
)

View file

@ -10,10 +10,10 @@ import (
"testing"
"time"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/pack"
"github.com/restic/restic/repository"
"restic"
"restic/backend"
"restic/pack"
"restic/repository"
)
const parallelSaves = 50

View file

@ -4,7 +4,7 @@ import (
"os"
"testing"
"github.com/restic/restic/pipe"
"restic/pipe"
)
var treeJobs = []string{

View file

@ -8,13 +8,13 @@ import (
"time"
"github.com/restic/chunker"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/checker"
"github.com/restic/restic/crypto"
"github.com/restic/restic/pack"
"github.com/restic/restic/repository"
. "github.com/restic/restic/test"
"restic"
"restic/backend"
"restic/checker"
"restic/crypto"
"restic/pack"
"restic/repository"
. "restic/test"
)
var testPol = chunker.Pol(0x3DA3358B4DC173)

View file

@ -3,8 +3,8 @@ package backend_test
import (
"testing"
"github.com/restic/restic/backend"
. "github.com/restic/restic/test"
"restic/backend"
. "restic/test"
)
type mockBackend struct {

View file

@ -3,8 +3,8 @@ package backend_test
import (
"testing"
"github.com/restic/restic/backend"
. "github.com/restic/restic/test"
"restic/backend"
. "restic/test"
)
var TestStrings = []struct {

View file

@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/restic/restic/backend"
. "github.com/restic/restic/test"
"restic/backend"
. "restic/test"
)
var uniqTests = []struct {

View file

@ -3,8 +3,8 @@ package backend_test
import (
"testing"
"github.com/restic/restic/backend"
. "github.com/restic/restic/test"
"restic/backend"
. "restic/test"
)
var idsetTests = []struct {

View file

@ -4,7 +4,7 @@ package local_test
import (
"testing"
"github.com/restic/restic/backend/test"
"restic/backend/test"
)
var SkipMessage string

View file

@ -8,8 +8,8 @@ import (
"os"
"path/filepath"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"restic/backend"
"restic/debug"
)
// Local is a backend in a local directory.

View file

@ -5,9 +5,9 @@ import (
"io/ioutil"
"os"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/local"
"github.com/restic/restic/backend/test"
"restic/backend"
"restic/backend/local"
"restic/backend/test"
)
var tempBackendDir string

View file

@ -4,7 +4,7 @@ package mem_test
import (
"testing"
"github.com/restic/restic/backend/test"
"restic/backend/test"
)
var SkipMessage string

View file

@ -5,8 +5,8 @@ import (
"io"
"sync"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"restic/backend"
"restic/debug"
)
type entry struct {

View file

@ -3,9 +3,9 @@ package mem_test
import (
"errors"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/mem"
"github.com/restic/restic/backend/test"
"restic/backend"
"restic/backend/mem"
"restic/backend/test"
)
var be backend.Backend

View file

@ -4,7 +4,7 @@ package s3_test
import (
"testing"
"github.com/restic/restic/backend/test"
"restic/backend/test"
)
var SkipMessage string

View file

@ -8,8 +8,8 @@ import (
"github.com/minio/minio-go"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"restic/backend"
"restic/debug"
)
const connLimit = 10

View file

@ -6,10 +6,10 @@ import (
"net/url"
"os"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/s3"
"github.com/restic/restic/backend/test"
. "github.com/restic/restic/test"
"restic/backend"
"restic/backend/s3"
"restic/backend/test"
. "restic/test"
)
//go:generate go run ../test/generate_backend_tests.go

View file

@ -4,7 +4,7 @@ package sftp_test
import (
"testing"
"github.com/restic/restic/backend/test"
"restic/backend/test"
)
var SkipMessage string

View file

@ -13,8 +13,8 @@ import (
"github.com/juju/errors"
"github.com/pkg/sftp"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"restic/backend"
"restic/debug"
)
const (

View file

@ -7,11 +7,11 @@ import (
"path/filepath"
"strings"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/sftp"
"github.com/restic/restic/backend/test"
"restic/backend"
"restic/backend/sftp"
"restic/backend/test"
. "github.com/restic/restic/test"
. "restic/test"
)
var tempBackendDir string

View file

@ -4,7 +4,7 @@ package test_test
import (
"testing"
"github.com/restic/restic/backend/test"
"restic/backend/test"
)
var SkipMessage string

View file

@ -30,7 +30,7 @@ package {{ .Package }}
import (
"testing"
"github.com/restic/restic/backend/test"
"restic/backend/test"
)
var SkipMessage string

View file

@ -10,8 +10,8 @@ import (
"sort"
"testing"
"github.com/restic/restic/backend"
. "github.com/restic/restic/test"
"restic/backend"
. "restic/test"
)
// CreateFn is a function that creates a temporary repository for the tests.

View file

@ -3,9 +3,9 @@ package test_test
import (
"errors"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/mem"
"github.com/restic/restic/backend/test"
"restic/backend"
"restic/backend/mem"
"restic/backend/test"
)
var be backend.Backend

View file

@ -5,9 +5,9 @@ import (
"math/rand"
"testing"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/mem"
. "github.com/restic/restic/test"
"restic/backend"
"restic/backend/mem"
. "restic/test"
)
const KiB = 1 << 10

View file

@ -9,9 +9,9 @@ import (
"runtime"
"strings"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/repository"
"restic/backend"
"restic/debug"
"restic/repository"
)
// Cache is used to locally cache items from a repository.

View file

@ -3,8 +3,8 @@ package restic_test
import (
"testing"
"github.com/restic/restic"
. "github.com/restic/restic/test"
"restic"
. "restic/test"
)
func TestCache(t *testing.T) {

View file

@ -6,12 +6,12 @@ import (
"fmt"
"sync"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/crypto"
"github.com/restic/restic/debug"
"github.com/restic/restic/pack"
"github.com/restic/restic/repository"
"restic"
"restic/backend"
"restic/crypto"
"restic/debug"
"restic/pack"
"restic/repository"
)
// Checker runs various checks on a repository. It is advisable to create an

View file

@ -7,12 +7,12 @@ import (
"sort"
"testing"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/mem"
"github.com/restic/restic/checker"
"github.com/restic/restic/repository"
. "github.com/restic/restic/test"
"restic"
"restic/backend"
"restic/backend/mem"
"restic/checker"
"restic/repository"
. "restic/test"
)
var checkerTestData = filepath.Join("testdata", "checker-test-repo.tar.gz")

View file

@ -3,9 +3,9 @@ package checker
import (
"errors"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/repository"
"restic/backend"
"restic/debug"
"restic/repository"
)
// Repacker extracts still used blobs from packs with unused blobs and creates

View file

@ -3,10 +3,10 @@ package checker_test
import (
"testing"
"github.com/restic/restic/backend"
"github.com/restic/restic/checker"
"restic/backend"
"restic/checker"
. "github.com/restic/restic/test"
. "restic/test"
)
var findPackTests = []struct {

View file

@ -7,7 +7,7 @@ import (
"sync"
"syscall"
"github.com/restic/restic/debug"
"restic/debug"
)
var cleanupHandlers struct {

View file

@ -8,12 +8,12 @@ import (
"strings"
"time"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/filter"
"github.com/restic/restic/repository"
"golang.org/x/crypto/ssh/terminal"
"restic"
"restic/backend"
"restic/debug"
"restic/filter"
"restic/repository"
)
type CmdBackup struct {

View file

@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/restic/restic"
"restic"
)
type CmdCache struct {

View file

@ -6,11 +6,11 @@ import (
"fmt"
"os"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/pack"
"github.com/restic/restic/repository"
"restic"
"restic/backend"
"restic/debug"
"restic/pack"
"restic/repository"
)
type CmdCat struct {

View file

@ -8,8 +8,8 @@ import (
"golang.org/x/crypto/ssh/terminal"
"github.com/restic/restic"
"github.com/restic/restic/checker"
"restic"
"restic/checker"
)
type CmdCheck struct {

View file

@ -9,10 +9,10 @@ import (
"os"
"github.com/juju/errors"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/pack"
"github.com/restic/restic/repository"
"restic"
"restic/backend"
"restic/pack"
"restic/repository"
)
type CmdDump struct {

View file

@ -5,10 +5,10 @@ import (
"path/filepath"
"time"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/repository"
"restic"
"restic/backend"
"restic/debug"
"restic/repository"
)
type findResult struct {

View file

@ -3,7 +3,7 @@ package main
import (
"errors"
"github.com/restic/restic/repository"
"restic/repository"
)
type CmdInit struct {

View file

@ -4,8 +4,8 @@ import (
"errors"
"fmt"
"github.com/restic/restic/backend"
"github.com/restic/restic/repository"
"restic/backend"
"restic/repository"
)
type CmdKey struct {

View file

@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/restic/restic/backend"
"restic/backend"
)
type CmdList struct {

View file

@ -5,9 +5,9 @@ import (
"os"
"path/filepath"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/repository"
"restic"
"restic/backend"
"restic/repository"
)
type CmdLs struct {

View file

@ -7,7 +7,7 @@ import (
"fmt"
"os"
"github.com/restic/restic/fuse"
"restic/fuse"
systemFuse "bazil.org/fuse"
"bazil.org/fuse/fs"

View file

@ -4,8 +4,8 @@ import (
"errors"
"fmt"
"github.com/restic/restic/backend"
"github.com/restic/restic/checker"
"restic/backend"
"restic/checker"
)
type CmdOptimize struct {

View file

@ -4,10 +4,10 @@ import (
"bytes"
"fmt"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/pack"
"github.com/restic/restic/repository"
"restic/backend"
"restic/debug"
"restic/pack"
"restic/repository"
)
type CmdRebuildIndex struct {

View file

@ -4,9 +4,9 @@ import (
"errors"
"fmt"
"github.com/restic/restic"
"github.com/restic/restic/debug"
"github.com/restic/restic/filter"
"restic"
"restic/debug"
"restic/filter"
)
type CmdRestore struct {

View file

@ -8,8 +8,8 @@ import (
"sort"
"strings"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"restic"
"restic/backend"
)
type Table struct {

View file

@ -1,6 +1,6 @@
package main
import "github.com/restic/restic"
import "restic"
type CmdUnlock struct {
RemoveAll bool `long:"remove-all" description:"Remove all locks, even stale ones"`

View file

@ -9,14 +9,14 @@ import (
"syscall"
"github.com/jessevdk/go-flags"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/local"
"github.com/restic/restic/backend/s3"
"github.com/restic/restic/backend/sftp"
"github.com/restic/restic/debug"
"github.com/restic/restic/location"
"github.com/restic/restic/repository"
"golang.org/x/crypto/ssh/terminal"
"restic/backend"
"restic/backend/local"
"restic/backend/s3"
"restic/backend/sftp"
"restic/debug"
"restic/location"
"restic/repository"
)
var version = "compiled manually"

View file

@ -11,10 +11,10 @@ import (
"testing"
"time"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/repository"
. "github.com/restic/restic/test"
"restic"
"restic/backend"
"restic/repository"
. "restic/test"
)
const (

View file

@ -8,7 +8,7 @@ import (
"runtime"
"testing"
. "github.com/restic/restic/test"
. "restic/test"
)
type dirEntry struct {

View file

@ -15,11 +15,11 @@ import (
"testing"
"time"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/filter"
"github.com/restic/restic/repository"
. "github.com/restic/restic/test"
"restic/backend"
"restic/debug"
"restic/filter"
"restic/repository"
. "restic/test"
)
func parseIDsFromReader(t testing.TB, rd io.Reader) backend.IDs {

View file

@ -6,9 +6,9 @@ import (
"sync"
"time"
"github.com/restic/restic"
"github.com/restic/restic/debug"
"github.com/restic/restic/repository"
"restic"
"restic/debug"
"restic/repository"
)
var globalLocks struct {

View file

@ -6,8 +6,8 @@ import (
"runtime"
"github.com/jessevdk/go-flags"
"github.com/restic/restic"
"github.com/restic/restic/debug"
"restic"
"restic/debug"
)
func init() {

View file

@ -8,8 +8,8 @@ import (
"testing"
"github.com/restic/chunker"
"github.com/restic/restic/crypto"
. "github.com/restic/restic/test"
"restic/crypto"
. "restic/test"
)
const testLargeCrypto = false

Some files were not shown because too many files have changed in this diff Show more