Skip to content
Snippets Groups Projects
  1. Jun 17, 2017
    • Pierre-Yves David's avatar
      config: use the new '_unset' value for 'configdate' · 6599b7372387
      Pierre-Yves David authored
      This should let 'configdate' delegate all special processing of the default
      config value to the main 'config' method.
      
      The default value for date (None) is still enforced in this method if no other
      default were passed.
      6599b7372387
    • Pierre-Yves David's avatar
      config: use the new '_unset' value for 'configlist' · 88b3a38d39e3
      Pierre-Yves David authored
      This should let 'configlist' delegate all special processing of the default
      config value to the main 'config' method.
      
      The default config value ([]) is still handled in this method.
      88b3a38d39e3
    • Pierre-Yves David's avatar
      config: use the new '_unset' value for 'configbytes' · 0bf986cfa82b
      Pierre-Yves David authored
      This should let 'configbytes' delegates all special processing of the default
      config value to the main 'config' method.
      0bf986cfa82b
    • Pierre-Yves David's avatar
      config: use the new '_unset' value for 'configint' · 24111157f967
      Pierre-Yves David authored
      This should let 'configint' delegates all special processing of the default
      config value to the main 'config' method.
      24111157f967
    • Pierre-Yves David's avatar
      config: use the new '_unset' value for 'configwith' · 6ff6eb33f353
      Pierre-Yves David authored
      This should let 'configwith' delegate all special processing of the default
      config value to the main 'config' method.
      
      This changeset introduce a small change in behavior since the default value is
      run through the 'convert' function. This does not seems harmful and no actual
      test break. This small change make the code simpler so I'm keeping it.
      6ff6eb33f353
    • Pierre-Yves David's avatar
      config: use the new '_unset' value for 'configbool' · b39dafe681df
      Pierre-Yves David authored
      This should let 'configbool' delegate all special processing of the default
      config value to the main 'config' method.
      
      The default value for bool (False) is still enforced in this method if no other
      default were passed.
      b39dafe681df
    • Pierre-Yves David's avatar
      config: explicitly track the use of the standard default value · 4a3f1d362e5f
      Pierre-Yves David authored
      We introduce a small object used to detect that no specific default value has
      been passed to 'ui.config'. We need this explicit special value since "None" is
      a valid and common default value.
      
      The end goal here is to make progress on a centralised and explicit declaration
      of the available config option. A first good usecase for this are "default"
      value.  Before starting looking further down this alley we needs to rework the
      handling of default value in the 'ui' object to have all configxyz methods going
      through the same logic. This is the first changeset on this trek.
      4a3f1d362e5f
  2. Jun 20, 2017
    • Martin von Zweigbergk's avatar
      clonebundle: update hook arguments (BC) · 067173e3c8a6
      Martin von Zweigbergk authored
      By calling applybundle() with 'clonebundles' and the url instead of
      calling processbundle(), the hooks will get different arguments:
      HG_SOURCE will be 'clonebundles' instead of 'bundle2' and HG_URL will
      be the url instead of 'bundle2'. This is consistent with the bundle1
      behavior and seems like a bug fix, but I'm marking it BC anyway.
      067173e3c8a6
  3. Jun 11, 2017
    • Sean Farley's avatar
      commands: move checkconflict to bookmarks module · 4f0a7f604449
      Sean Farley authored
      Again, commands.bookmark is getting too large. checkconflict already has
      a lot of state and putting it in the bmstore makes more sense than
      having it as a closure. This also allows extensions a place to override
      this behavior.
      
      While we're here, add a documentation string because, well, we should be
      documenting more of our methods.
      4f0a7f604449
    • Sean Farley's avatar
      commands: move checkformat to bookmarks module · 70661eeb8ddb
      Sean Farley authored
      commands.bookmark has grown quite large with two closures already. Let's
      split this up (and in the process allow extensions to override the
      default behavior).
      70661eeb8ddb
  4. Jun 20, 2017
    • Danek Duvall's avatar
      tests: tell pip not to check for a newer version · b5305a499dfc
      Danek Duvall authored
      pip will check to see if it's the latest version, and complain if it isn't.
      The --no-index flag implies the --disable-pip-version-check flag, and makes
      the warning (and any associated network activity) go away.
      b5305a499dfc
  5. Apr 22, 2017
  6. Jun 17, 2017
  7. Apr 22, 2017
  8. Jun 20, 2017
  9. Jun 19, 2017
  10. Jun 04, 2017
    • Gregory Szorc's avatar
      tests: removed ReportedTest exception · 750c3b1bb8a3
      Gregory Szorc authored
      The only call site called addFailure before raising, which is
      exactly what the failure exception handler does. So this
      complexity is not needed.
      
      We have test coverage of this "server failed to start" scenario
      and nothing appeared to change.
      750c3b1bb8a3
    • Gregory Szorc's avatar
      tests: remove support for warned tests · 5af78c524f34
      Gregory Szorc authored
      The previous changeset removed the last caller of addWarn(). So,
      we rip out that method and all the code related to tracking warned
      tests in the results system.
      
      There was even a comment saying we may want to fold warned tests into
      the "failed" state, which is what the previous changeset did.
      5af78c524f34
  11. Jun 20, 2017
  12. Jun 15, 2017
  13. Jun 20, 2017
  14. Jun 04, 2017
  15. Jun 16, 2017
  16. Jun 15, 2017
    • Martin von Zweigbergk's avatar
      exchange: create transaction for bundle1 unbundling earlier · febd6bfa770d
      Martin von Zweigbergk authored
      changegroup.apply() currently creates a transation if there isn't
      already one. Having the callers of that method pass in an existing
      transaction seems a little cleaner. To do that, we need to make sure
      all callers have a transaction. Since the transaction name is used as
      a hook argument (HG_TXNNAME), we need to match the name from
      changegroup.apply().
      febd6bfa770d
  17. Jun 19, 2017
Loading