Skip to content
Snippets Groups Projects
  1. Apr 14, 2018
    • Martin von Zweigbergk's avatar
      scmutil: make shortesthexnodeidprefix() take a full binary nodeid · 7b295562
      Martin von Zweigbergk authored
      The shortest() template function depended on the behavior of
      revlog._partialmatch() for these types of inputs:
      
        * non-hex strings
        * ambiguous strings
        * too long strings
      
      revlog._partialmatch() seems to return the input unchanged in these
      cases, but we shouldn't depend on such a low-level function to match
      the behavior we want in the user-facing template function. Instead,
      let's handle these cases in the template function and always pass a
      binary nodeid to _partialmatch().
      
      Differential Revision: https://phab.mercurial-scm.org/D3371
      7b295562
  2. Apr 13, 2018
  3. Apr 15, 2018
  4. Apr 14, 2018
  5. Apr 01, 2018
  6. Apr 13, 2018
  7. Feb 25, 2018
    • Matt Harbison's avatar
      lfs: gracefully handle aborts on the server when corrupt blobs are detected · 10e5bb96
      Matt Harbison authored
      The aborts weren't killing the server, but this seems cleaner.  I'm not sure if
      it matters to handle the remaining IOError in the test like this, for
      consistency.
      
      The error code still feels wrong (especially if the client is trying to download
      a corrupt blob) but I don't see anything better in the RFCs, and this is already
      used elsewhere because the Batch API spec specifically mentioned this as a
      "Validation Error".
      10e5bb96
  8. Apr 13, 2018
  9. Apr 07, 2018
    • Matt Harbison's avatar
      test-lfs: add tests to force server error path coverage · a7dbda94
      Matt Harbison authored
      The tests are somewhat fragile in that the extension that forces the errors is
      counting how many times some of the functions are being called, so it depends
      heavily on the content of the repo.  Maybe we can do something clever like load
      an extension on the client, and have it send over instructions in the HTTP
      header how to fail.  (I'm trying to avoid killing and restarting the server,
      because Windows seems to have issues with doing that a lot.)  But I'd rather fix
      issues than polish tests before the freeze.
      a7dbda94
  10. Apr 14, 2018
  11. Mar 26, 2018
  12. Apr 14, 2018
  13. Apr 13, 2018
  14. Apr 14, 2018
  15. Apr 13, 2018
  16. Apr 14, 2018
  17. Apr 13, 2018
Loading