vendor: update vendored upspin.io to c137ad0
Change-Id: I3ea49dd50addab7d05fb287f0ac1020ad6af2658
Reviewed-on: https://upspin-review.googlesource.com/19161
Reviewed-by: Rob Pike <r@golang.org>
diff --git a/Gopkg.lock b/Gopkg.lock
index 52db942..ec6a0c0 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -154,7 +154,7 @@
"valid",
"version"
]
- revision = "2e37c3b2c427b239f286de76ee3379ece3b2a636"
+ 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/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,