Skip to content
Snippets Groups Projects
  1. Jun 21, 2017
  2. Jun 20, 2017
  3. Jun 21, 2017
    • Jun Wu's avatar
      shelve: allow unlimited shelved changes per name · 4107eb8a5648
      Jun Wu authored
      Previously, there is a 100 changes limit per name (bookmark or named
      branch). And the user will get "too many shelved changes named %s" when they
      are trying to shelve the 101th change. I hit that error message today.
      
      This limit was introduced by the shelve extension since the beginning.
      The function generating the names was called "gennames", under
      "getshelvename".
      
      There is another "gennames" under "backupfilename":
      
          def backupfilename(self):
              def gennames(base):
                  yield base
                  base, ext = base.rsplit('.', 1)
                  for i in itertools.count(1):
                      yield '%s-%d.%s' % (base, i, ext)
      
      "itertools.count" is an endless counter.
      
      Since the other "gennames" generates unlimited number of names, and the
      changeset introducing the limit (49d4919d21c2) does not say why the limit
      is useful. It seems safe to just remove the limit.
      
      The format "%02d" was kept intentionally so existing shelved changes won't
      break.
      4107eb8a5648
  4. Jun 17, 2017
  5. 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
  6. 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
  7. 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
  8. Apr 22, 2017
  9. Jun 17, 2017
  10. Apr 22, 2017
  11. Jun 20, 2017
  12. Jun 19, 2017
  13. 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
  14. Jun 20, 2017
  15. Jun 15, 2017
  16. Jun 20, 2017
Loading