Skip to content
Snippets Groups Projects
  1. 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
    • Matt Harbison's avatar
      check-code: drop the rules for adding (glob) for Windows paths · 5feb782c7a95
      Matt Harbison authored
      I'll probably resurrect at least some of these as replacement patterns to switch
      '\' to '/' when creating tests at some point.  But since this subset of globs
      isn't needed anymore after dfae14354660, and the rules are blocking the glob
      removal, just drop them for now.  It probably isn't worth turning them into
      checks for unnecessary globs being present.
      5feb782c7a95
    • Matt Harbison's avatar
      run-tests: stop automatically adding a (glob) for bundle backup lines · 0432e54f4dbe
      Matt Harbison authored
      This is the first step to dropping the existing globs for '\' matches, now that
      it is handled automatically.  Instead of just dropping it, this pattern is now
      used to convert to '/' paths, to reduce the amount of manual cleanup required
      when creating tests on Windows.
      0432e54f4dbe
  2. Dec 07, 2017
  3. Dec 12, 2017
  4. Dec 11, 2017
  5. Dec 10, 2017
  6. Dec 09, 2017
  7. Dec 08, 2017
    • Matt Harbison's avatar
      lfs: restore the local blob store after a repo upgrade · b0ba1539af01
      Matt Harbison authored
      This also ends up testing the local extension wrapping for dstrepo during
      upgrade, which was fixed in 06987c6971be.
      b0ba1539af01
    • Matt Harbison's avatar
      lfs: override walk() in lfsvfs · 79968f91ad0c
      Matt Harbison authored
      In order to fix the missing lfs store after an upgrade, I attempted to walk the
      store vfs to hardlink to the upgraded repo's store.  But the custom join()
      clashes with the default walk() implementation.  First, 'path=None' blew up in
      the regex matcher, because it wanted a string.  But even if that is fixed, the
      join to walk the root of the vfs wouldn't match the required xx/xx...xx pattern.
      
      The first cut of this was a copy/paste/tweak of the base implementation, but
      this version of walk() hides the internal directories, and treats the vfs as a
      flat store.  I think this makes sense because most vfs methods call join() on
      input paths, which wants the simple oid format.  It also relieves the caller
      from having to deal with bogus files/directories in the store.
      79968f91ad0c
    • Matt Harbison's avatar
      tests: add coverage for preserving 'lfs' requirement on repo upgrade · b2f628dd99c3
      Matt Harbison authored
      The test also shows that the local blob store is erroneously lost.
      b2f628dd99c3
    • Matt Harbison's avatar
      test-upgrade-repo: glob away timing values · 6699825f1242
      Matt Harbison authored
      6699825f1242
  8. Dec 09, 2017
Loading