Skip to content
Snippets Groups Projects
  1. Feb 22, 2025
  2. May 02, 2022
  3. Nov 24, 2020
  4. Nov 23, 2020
  5. Oct 07, 2020
  6. Oct 05, 2019
  7. Sep 08, 2019
    • Pierre-Yves David's avatar
      changegroup: move message about added changes to transaction summary · d7304434390f
      Pierre-Yves David authored
      Before that, applying multiple changegroups in the same transaction issued the
      message multiple time. This result in a confusing output:
      
          adding changesets
          adding manifests
          adding file changes
          added 32768 changesets with 60829 changes to 2668 files
          adding changesets
          adding manifests
          adding file changes
          added 8192 changesets with 16885 changes to 1553 files
          adding changesets
          adding manifests
          adding file changes
          added 1020 changesets with 1799 changes to 536 files
          adding changesets
          adding manifests
          ...
      
      Instead, we now only issue the message once at the end of the transaction,
      summing up all added changesets, changes and files. The line is identical, but
      happens sightly later in the output.
      
      There are other suboptimal behavior around issue multiple changegroup (eg:
      progress bar). We'll cover them later.
      
      This impact of lot of test as one would expect, but a two pass check show they
      are just the order change we expected.
      
      To deal with "under the hood" bundle application by internal code, we had to
      take a slightly hacky move. We could clean that up with a more official way to
      enter "under the hood" section, however I want to keep this series simple to get
      it landed. This kind of change have a very high bit rot rate since it impact a
      lot of test output.
      d7304434390f
  8. Sep 04, 2018
  9. Aug 29, 2018
    • Boris Feld's avatar
      phase: report number of non-public changeset alongside the new range · 89630d0b3e23
      Boris Feld authored
      When interacting with non-publishing repository or bundle, it is useful to
      have some information about the phase of the changeset we just pulled.
      
      This changeset updates the "new changesets MIN:MAX" output to also includes
      phases information for non-public changesets. Displaying extra data about
      non-public changesets means the output for exchange with publishing repository
      (the default) is unaffected.
      89630d0b3e23
  10. Apr 04, 2018
  11. Dec 11, 2017
    • Matt Harbison's avatar
      tests: remove (glob) annotations that were only for '\' matches · 4441705b7111
      Matt Harbison authored
      # skip-blame because this was mechanically rewritten the following script.  I
      ran it on both *.t and *.py, but none of the *.py changes were proper.  All *.t
      ones appear to be, and they run without addition failures on both Windows and
      Linux.
      
        import argparse
        import os
        import re
      
        ap = argparse.ArgumentParser()
        ap.add_argument('path', nargs='+')
        opts = ap.parse_args()
      
        globre = re.compile(r'^(.*) \(glob\)(.*)$')
      
        for p in opts.path:
            tmp = p + '.tmp'
            with open(p, 'rb') as src, open(tmp, 'wb') as dst:
                for line in src:
                    m = globre.match(line)
                    if not m or '$LOCALIP' in line or '*' in line:
                        dst.write(line)
                        continue
                    if '?' in line[:-3] or ('?' in line[:-3] and line[-3:] != '(?)'):
                        dst.write(line)
                        continue
                    dst.write(m.group(1) + m.group(2) + '\n')
            os.unlink(p)
            os.rename(tmp, p)
      4441705b7111
  12. Oct 12, 2017
    • Denis Laxalde's avatar
      transaction-summary: show the range of new revisions upon pull/unbundle (BC) · eb586ed5d8ce
      Denis Laxalde authored
      Upon pull or unbundle, we display a message with the range of new revisions
      fetched. This revision range could readily be used after a pull to look out
      what's new with 'hg log'. The algorithm takes care of filtering "obsolete"
      revisions that might be present in transaction's "changes" but should not be
      displayed to the end user.
      eb586ed5d8ce
  13. Aug 07, 2017
    • Yuya Nishihara's avatar
      ssh: unban the use of pipe character in user@host:port string · 3fee7f7d2da0
      Yuya Nishihara authored
      This vulnerability was fixed by the previous patch and there were more ways
      to exploit than using '|shellcmd'. So it doesn't make sense to reject only
      pipe character.
      
      Test cases are updated to actually try to exploit the bug. As the SSH bridge
      of git/svn subrepos are not managed by our code, the tests for non-hg subrepos
      are just removed.
      
      This may be folded into the original patches.
      4.3.1
      3fee7f7d2da0
  14. Jul 31, 2017
  15. Jun 28, 2017
  16. Nov 03, 2016
    • Pierre-Yves David's avatar
      tests: merge 'test-push-hook-lock.t' into 'test-push.t' · e58acb4fc510
      Pierre-Yves David authored
      That test file is very small and is merge with the new 'test-push.t'. No logic
      is changed.
      
      We don't register this as a copy because is actually a "ypoc" merging two file
      together without replacing the destination and Mercurial cannot express that.
      e58acb4fc510
    • Pierre-Yves David's avatar
      tests: merge 'test-push-validation.t' into 'test-push.t' · 0269ab4f4371
      Pierre-Yves David authored
      That test file is very small and is merge with the new 'test-push.t'. No logic
      is changed but repository name are update to avoid collision.
      
      We don't register this as a copy because is actually a "ypoc" merging two file
      together without replacing the destination and Mercurial cannot express that.
      0269ab4f4371
    • Pierre-Yves David's avatar
      test: rename 'test-push-r.t' to 'test-push.t' · a8d2071c3373
      Pierre-Yves David authored
      We do not have a simple test for 'hg push' but we have multiple tiny tests for
      various aspect of it. We'll unify them into a single file, and we start with
      'test-push-r.t'. The code is unchanged but we renamed the repository used to
      avoid collision with other tests we'll import in coming changesets.
      
      Test timing for the record:
      
      start   end     cuser   csys    real      Test
        1.850   2.640   0.650   0.090   0.790   test-push-validation.t
        2.640   3.520   0.760   0.090   0.880   test-push-hook-lock.t
        0.000   1.850   1.560   0.210   1.850   test-push-r.t
      a8d2071c3373
    • Pierre-Yves David's avatar
      tests: simplify command script in 'test-push-r.t' · 24ea47037186
      Pierre-Yves David authored
      I came across this code by chance. The script of this test is a bit messy with a
      lot of unnecessary intermediate commands. We simplify the script and unify
      repository access through '-R'.
      
      In the process the update after the unbundle is dropped as it does not add
      anything to the tests.
      24ea47037186
  17. Jun 10, 2012
    • kiilerix's avatar
      tests: add missing trailing 'cd ..' · f2719b387380
      kiilerix authored
      Many tests didn't change back from subdirectories at the end of the tests ...
      and they don't have to. The missing 'cd ..' could always be added when another
      test case is added to the test file.
      
      This change do that tests (99.5%) consistently end up in $TESTDIR where they
      started, thus making it simpler to extend them or move them around.
      f2719b387380
  18. Apr 03, 2012
  19. Apr 30, 2011
  20. Sep 14, 2010
  21. Dec 01, 2006
  22. Mar 12, 2006
  23. Feb 14, 2006
Loading