Skip to content
Snippets Groups Projects
  1. Nov 04, 2018
  2. Nov 08, 2018
  3. Jan 18, 2015
    • Yuya Nishihara's avatar
      ui: extract helpers to write message with type or label · 83dd8c63a0c6
      Yuya Nishihara authored
      This provides a 'type' attribute to command-server clients, which seems
      more solid than relying on 'ui.<type>' labels. In future patches,
      type='progress' will be added to send raw progress information.
      83dd8c63a0c6
    • Yuya Nishihara's avatar
      commandserver: add experimental option to use separate message channel · 054d0fcba2c4
      Yuya Nishihara authored
      This is loosely based on the idea of the TortoiseHg's pipeui extension,
      which attaches ui.label to message text so the command-server client can
      capture prompt text, for example.
      
      https://bitbucket.org/tortoisehg/thg/src/4.7.2/tortoisehg/util/pipeui.py
      
      I was thinking that this functionality could be generalized to templating,
      but changed mind as doing template stuff would be unnecessarily complex.
      It's merely a status message, a simple serialization option should suffice.
      
      Since this slightly changes the command-server protocol, it's gated by a
      config knob. If the config is enabled, and if it's supported by the server,
      "message-encoding: <name>" is advertised so the client can stop parsing
      'o'/'e' channel data and read encoded messages from the 'm' channel. As we
      might add new message encodings in future releases, client can specify a list
      of encoding names in preferred order.
      
      This patch includes 'cbor' encoding as example. Perhaps, 'json' should be
      supported as well.
      054d0fcba2c4
  4. Nov 07, 2018
  5. Jan 18, 2015
  6. Nov 10, 2018
  7. Nov 11, 2018
  8. Nov 10, 2018
  9. Nov 07, 2018
  10. Nov 10, 2018
  11. Nov 09, 2018
  12. Nov 08, 2018
  13. Nov 07, 2018
  14. Nov 06, 2018
  15. Nov 07, 2018
  16. Nov 06, 2018
  17. Nov 05, 2018
Loading