Skip to content
Snippets Groups Projects
  1. Jan 09, 2016
  2. May 15, 2017
    • Durham Goode's avatar
      changegroup: add bundlecaps back · df3cf9422e1b
      Durham Goode authored
      Commit 282b288aa20c removed the unused bundlecaps argument from the
      changegroup code. While it is unused in core Mercurial, it was an important
      feature for the remotefilelog extension because it allowed the exchange layer to
      communicate to the changegroup packer that this was a shallow repo and that
      filelogs should not be included. Without bundlecaps, there is currently no other
      way to pass that information along without a more extensive refactor of
      exchange, bundle, and changegroup code.
      
      This patch backs out the original removal, and merges it with some recent
      changes to changegroup apis.
      df3cf9422e1b
  3. May 04, 2017
  4. May 03, 2017
  5. Aug 09, 2016
    • Pierre-Yves David's avatar
      outgoing: pass a repo object to the constructor · 7b9157aa752f
      Pierre-Yves David authored
      We are to introduce more code constructing such object in the code base. It will
      be more convenient to pass a repository object, all current users already
      operate at the repository level anyway. More changes to the contructor argument
      are coming in later changeset.
      7b9157aa752f
  6. Aug 02, 2016
  7. Jul 17, 2016
    • Gregory Szorc's avatar
      util: implement a deterministic __repr__ on sortdict · 37cccad55410
      Gregory Szorc authored
      `hg debugbundle` is calling repr() on bundle2 part params, which are
      now util.sortdict instances. Unfortunately, repr() doesn't appear
      to be deterministic for util.sortdict. So, we implement one.
      
      We include the type name because that's the common convention for
      __repr__ implementations. Having the type name in `hg debugbundle`
      is a bit ugly. But it's a debug command and I don't care enough to
      fix it.
      37cccad55410
  8. Mar 15, 2016
    • Jun Wu's avatar
      tests: explicitly flush output streams · 6fb1d3c936d2
      Jun Wu authored
      Some tests fail while running with chg because they do not flush their output
      streams. chgserver will make sure ui.flush is called after dispatch, but not
      after {ui,repo}setup. For other non-ui streams, it should be explicitly
      flushed since the request handler will use os._exit.
      This patch adds explicit flushes in test-bundle2-format.t, test-extension.t
      and test-obsolete.t. It will fix most test cases of them when running with chg.
      6fb1d3c936d2
  9. Feb 25, 2016
    • Pierre-Yves David's avatar
      test: update test-bundle2-format.t comment · b57d45ec33b2
      Pierre-Yves David authored
      Now that bundle2 is used by default for all exchanges, this comment is obviously
      out of date. Having deep testing of the API and expected behavior of the format
      and its processing is still valuable, so the comment is updated.
      b57d45ec33b2
  10. Dec 24, 2015
  11. Oct 16, 2015
  12. Oct 08, 2015
    • Pierre-Yves David's avatar
      error: get Abort from 'error' instead of 'util' · 56b2bcea2529
      Pierre-Yves David authored
      The home of 'Abort' is 'error' not 'util' however, a lot of code seems to be
      confused about that and gives all the credit to 'util' instead of the
      hardworking 'error'. In a spirit of equity, we break the cycle of injustice and
      give back to 'error' the respect it deserves. And screw that 'util' poser.
      
      For great justice.
      56b2bcea2529
  13. Oct 05, 2015
  14. Sep 30, 2015
  15. Sep 25, 2015
  16. Sep 29, 2015
  17. Sep 23, 2015
    • Pierre-Yves David's avatar
      bundle2: allow compressed bundle · 795f02a24b87
      Pierre-Yves David authored
      This changeset adds support for a 'compression' parameter in bundle2 streams.
      When set, it controls the compression algorithm used for the payload part of the
      bundle2.
      
      There is currently no usage of this except in tests.
      795f02a24b87
  18. Sep 28, 2015
  19. Sep 01, 2015
    • Augie Fackler's avatar
      bundle2: don't try to recover from a GeneratorExit (issue4785) · 4bc3707f3e67
      Augie Fackler authored
      GeneratorExit means the other end of the conversation has already
      stopped listening, so don't try and yield out error
      information. Instead, just let the GeneratorExit propagate normally.
      
      This should resolve esoteric issues observed with servers that have
      aggressive timeouts waiting for data to send to clients logging
      internal Python errors[0]. This has been observed with both gunicorn's
      gevent worker model and with scm-manager's built-in webserver (which
      itself is something sitting inside jetty.)
      
      
      0: Exception RuntimeError: 'generator ignored GeneratorExit' in <generator object getchunks at 0x7fd2f6c586e0> ignored
      4bc3707f3e67
  20. Jun 10, 2015
    • Matt Harbison's avatar
      tests: restore 'python' and '$TESTDIR/' for dummyssh invocation · c63bf97cf7c7
      Matt Harbison authored
      This is a backout of 46727fea7a00, and a partial backout of c3ecbf694904.
      
      Windows won't execute 'dummyssh' directly, presumably because CreateProcess()
      doesn't know how to execute a bash script:
      
         $ hg clone -e "dummyssh" ssh://user@dummy/cloned sshclone
         remote: 'dummyssh' is not recognized as an internal or external command,
         remote: operable program or batch file.
         abort: no suitable response from remote hg!
         [255]
      
      With the restoration of python as the executable, $TESTDIR needs to be restored
      for these invocations, because python won't search $PATH for 'dummyssh':
      
         $ hg clone -e "python dummyssh" ssh://user@dummy/cloned sshclone
         remote: python: can't open file 'dummyssh': [Errno 2] No such file or directory
         abort: no suitable response from remote hg!
         [255]
      c63bf97cf7c7
  21. Jun 08, 2015
  22. May 27, 2015
  23. May 10, 2015
    • Pierre-Yves David's avatar
      progress: get the extremely verbose output out of default debug · bd625cd4e5e7
      Pierre-Yves David authored
      When the progress extension is not enabled, each call to 'ui.progress' used to
      issue a debug message. This results is a very verbose output and often redundant
      in tests. Dropping it makes tests less volatile to factor they do not meant to
      test.
      
      We had to alter the sed trick in 'test-rename-merge2.t'. Sed is used to drop all
      output from a certain point and hidding the progress output remove its anchor.
      So we anchor on something else.
      bd625cd4e5e7
  24. Apr 09, 2015
  25. Apr 06, 2015
    • Pierre-Yves David's avatar
      unbundle20: retrieve unbundler instances through a factory function · 60fecc5b14a4
      Pierre-Yves David authored
      To support multiple bundle2 formats, we will need a function returning
      the proper unbundler according to the header. We introduce such aa
      function and change the usage in the code base. The function will get
      smarter in later changesets.
      
      This is somewhat similar to the dispatching we do for 'HG10' and 'HG11'.
      
      The main target is to allow HG2Y support in an extension to ease transition of
      companies using the experimental protocol in production (yeah...) But I've no
      doubt this will be useful when playing with a future HG21.
      60fecc5b14a4
  26. Jan 15, 2015
  27. Dec 17, 2014
    • Eric Sumner's avatar
      bundle2: lowercase part types · 414374cfb531
      Eric Sumner authored
      Since the capitalization no longer carries any meaning (previous diff), this
      patch normalizes all of the bundle2 part type strings to lower case.
      414374cfb531
  28. Dec 18, 2014
  29. Apr 17, 2014
Loading