vendor: update vendored upspin.io to c137ad0
Update upspin/upspin#599
Change-Id: If1faffc39fa2f8689833516639dee7b8fda2b94d
Reviewed-on: https://upspin-review.googlesource.com/19160
Reviewed-by: Rob Pike <r@golang.org>
diff --git a/Gopkg.lock b/Gopkg.lock
index 6afae81..74eb749 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -277,7 +277,7 @@
"valid",
"version"
]
- revision = "e44151808db2e821ace484960836205230adb05e"
+ revision = "c137ad0d6be9a0c1fef0f54a356311a95bcd09ce"
[solve-meta]
analyzer-name = "dep"
diff --git a/vendor/upspin.io/client/client.go b/vendor/upspin.io/client/client.go
index b082513..f5db872 100644
--- a/vendor/upspin.io/client/client.go
+++ b/vendor/upspin.io/client/client.go
@@ -729,13 +729,12 @@
}
// Rename implements upspin.Client.
-func (c *Client) Rename(oldName, newName upspin.PathName) error {
+func (c *Client) Rename(oldName, newName upspin.PathName) (*upspin.DirEntry, error) {
const op errors.Op = "client.Rename"
m, s := newMetric(op)
defer m.Done()
- _, err := c.dupOrRename(op, oldName, newName, true, s)
- return err
+ return c.dupOrRename(op, oldName, newName, true, s)
}
// SetTime implements upspin.Client.
diff --git a/vendor/upspin.io/client/file/file.go b/vendor/upspin.io/client/file/file.go
index 5c55268..2c04dd0 100644
--- a/vendor/upspin.io/client/file/file.go
+++ b/vendor/upspin.io/client/file/file.go
@@ -147,7 +147,7 @@
// If this is the block we last read (will often happen
// with sequential reads) then use that content,
// to avoid reading and unpacking again.
- // TOOD(adg): write a test to ensure this is happening.
+ // TODO(adg): write a test to ensure this is happening.
clear = f.lastBlockBytes
} else {
// Otherwise, we need to read the block and unpack.
diff --git a/vendor/upspin.io/rpc/client.go b/vendor/upspin.io/rpc/client.go
index 3b2113d..0e5b8b1 100644
--- a/vendor/upspin.io/rpc/client.go
+++ b/vendor/upspin.io/rpc/client.go
@@ -132,7 +132,7 @@
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
}
- // TOOD(adg): Re-enable HTTP/2 once it's fast enough to be usable.
+ // TODO(adg): Re-enable HTTP/2 once it's fast enough to be usable.
//if err := http2.ConfigureTransport(t); err != nil {
// return nil, errors.E(op, err)
//}
diff --git a/vendor/upspin.io/serverutil/frontend/frontend.go b/vendor/upspin.io/serverutil/frontend/frontend.go
index e4aed32..a46df39 100644
--- a/vendor/upspin.io/serverutil/frontend/frontend.go
+++ b/vendor/upspin.io/serverutil/frontend/frontend.go
@@ -75,15 +75,16 @@
var sourceRepo = map[string]string{
"upspin.io": "https://upspin.googlesource.com/upspin",
- "android.upspin.io": "https://upspin.googlesource.com/android",
- "augie.upspin.io": "https://upspin.googlesource.com/augie",
- "aws.upspin.io": "https://upspin.googlesource.com/aws",
- "b2.upspin.io": "https://upspin.googlesource.com/b2",
- "drive.upspin.io": "https://upspin.googlesource.com/drive",
- "dropbox.upspin.io": "https://upspin.googlesource.com/dropbox",
- "exp.upspin.io": "https://upspin.googlesource.com/exp",
- "gcp.upspin.io": "https://upspin.googlesource.com/gcp",
- "openstack.upspin.io": "https://upspin.googlesource.com/openstack",
+ "android.upspin.io": "https://upspin.googlesource.com/android",
+ "augie.upspin.io": "https://upspin.googlesource.com/augie",
+ "aws.upspin.io": "https://upspin.googlesource.com/aws",
+ "b2.upspin.io": "https://upspin.googlesource.com/b2",
+ "digitalocean.upspin.io": "https://upspin.googlesource.com/digitalocean",
+ "drive.upspin.io": "https://upspin.googlesource.com/drive",
+ "dropbox.upspin.io": "https://upspin.googlesource.com/dropbox",
+ "exp.upspin.io": "https://upspin.googlesource.com/exp",
+ "gcp.upspin.io": "https://upspin.googlesource.com/gcp",
+ "openstack.upspin.io": "https://upspin.googlesource.com/openstack",
}
func defaultDocPath() string {
diff --git a/vendor/upspin.io/upspin/upspin.go b/vendor/upspin.io/upspin/upspin.go
index 975d7b6..9439694 100644
--- a/vendor/upspin.io/upspin/upspin.go
+++ b/vendor/upspin.io/upspin/upspin.go
@@ -749,7 +749,11 @@
// Rename renames oldName to newName. The old name is no longer valid.
// If the final element of the path name is a link, Rename will
// Rename the link itself, not the link target.
- Rename(oldName, newName PathName) error
+ //
+ // A successful Rename returns an incomplete DirEntry (see the
+ // description of AttrIncomplete) containing only the
+ // new sequence number.
+ Rename(oldName, newName PathName) (*DirEntry, error)
// SetTime sets the time in name's DirEntry. If the final element
// of the path name is a link, SetTime will affect the link itself,