Page MenuHomePhabricator

Deprecate "file.uploadhash"
ClosedPublic

Authored by epriestley on Apr 4 2017, 9:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 9:43 PM
Unknown Object (File)
Fri, Nov 22, 10:51 AM
Unknown Object (File)
Wed, Nov 20, 11:38 PM
Unknown Object (File)
Sun, Nov 17, 2:09 PM
Unknown Object (File)
Sun, Nov 3, 8:45 AM
Unknown Object (File)
Sun, Nov 3, 8:45 AM
Unknown Object (File)
Sun, Nov 3, 8:45 AM
Unknown Object (File)
Sat, Nov 2, 1:58 AM
Subscribers
None

Details

Summary

Ref T12464. This is a very old method which let you create a file on the server by referring to data which already existed in another file.

Basically, long ago, arc could say "Do you already have a file with hash X?" and just skip some work if the server did.

arc has not called this method since D13017, in May 2015.

Since it's easy to do so, just make this method pretend that it never has the file. Very old clients will continue to work, since they would expect this response in the common case and continue by uploading data.

Test Plan
  • Grepped for uploadhash in Phabricator and Arcanist.
  • Called the method with the console, verified it returned null.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 4 2017, 10:30 PM
This revision was automatically updated to reflect the committed changes.