Skip to content
Snippets Groups Projects
  1. May 04, 2020
  2. May 03, 2020
    • Manuel Jacob's avatar
      py3: byteify sources · 86feb288
      Manuel Jacob authored
      These files were byteified using hg’s contrib/byteify-strings.py:
      
      - contrib/hggitperf.py
      - hggit/compat.py
      - hggit/git2hg.py
      - hggit/gitdirstate.py
      - hggit/gitrepo.py
      - hggit/git_handler.py
      - hggit/hg2git.py
      - hggit/hgrepo.py
      - hggit/overlay.py
      - hggit/util.py
      - hggit/verify.py
      - hggit/_ssh.py
      - hggit/__init__.py
      - tests/commitextra.py
      
      Additionally, "--treat-as-kwargs opts kwargs" were passed as arguments.
      
      Some of the changes will be undone later. Because of the large amount of
      literals that should be changed in comparison to the few literals that should
      stay, it seemed better to do it this way around.
      
      Raw literals are not changed by the script. Some of them will be changed
      manually in a separate changeset.
      86feb288
    • Manuel Jacob's avatar
      tests: use $PYTHON instead of python · 0cccb888
      Manuel Jacob authored
      0cccb888
  3. Dec 23, 2019
  4. Mar 05, 2020
    • Manuel Jacob's avatar
      py3: use print as function · 7a13f6fa
      Manuel Jacob authored
      * run `find . -name "*.py" -print0 -o -path ./tests/hghave | xargs -I {} -0 2to3 --fix=print --write {}`
      * run `find . -name "*.py" -print0 -o -path ./tests/hghave | xargs -I {} -0 2to3 --doctests_only --fix=print --write {}`
      * remove extra newline at end of files introduced by last command
      * add `from __future__ import print_function` to Python files
      7a13f6fa
  5. Nov 22, 2019
  6. Mar 05, 2020
  7. Dec 22, 2019
  8. Aug 01, 2019
  9. Feb 23, 2019
  10. Dec 02, 2018
  11. Nov 29, 2017
  12. Feb 07, 2018
  13. Feb 21, 2018
  14. Feb 07, 2018
  15. Feb 06, 2018
  16. Nov 30, 2017
  17. Dec 02, 2017
  18. Sep 05, 2016
  19. Nov 24, 2017
  20. Nov 20, 2017
  21. May 15, 2015
    • Sean Farley's avatar
      fetch: mark remote HEAD as public phase · a70c1f6c
      Sean Farley authored
      To help improve the speed Mercurial operations, we shouldn't leave the whole
      repository in the draft phase. The only hueristic git has for 'public' is
      remote HEAD. Therefore, if remote HEAD exists then we use it to mark the
      corresponding local commit as public.
      
      For now, we'll put this behind a config flag for easier rollback.
      a70c1f6c
  22. Nov 02, 2017
  23. Oct 24, 2017
  24. Oct 23, 2017
  25. Aug 17, 2017
  26. Aug 04, 2017
    • Katsunori FUJIWARA's avatar
      gitdirstate: show pattern error in hgignore file as expected · cf982a23
      Katsunori FUJIWARA authored
      Before this revision, invalid pattern in hgignore file causes
      unintentional failure for UnboundLocalError of ignorefunc, if hggit is
      used with Mercurial 3.5 or later.
      
      In such case:
      
        - checking source of invalid pattern at failure uses "pats" list for
          hgignore files, but
      
        - "pats" list is empty, if ignoremod is None (= Mercurial 3.5 or later)
      
        - therefore, checking with matchmod.match() overlooks invalid pattern
      
      Then, "return ignorefunc" is executed without assignment to
      ignorefunc, and causes UnboundLocalError.
      
      To show pattern error in hgignore file as expected even with Mercurial
      3.5 or later, this revision puts '(FILE, ["include: FILE"])' tuples
      into "pats" (to avoid code duplication, putting into allpats is
      shared, too).
      
      This makes checking source of invalid pattern at failure work as
      expected for hgignore files.
      
      Fixes #197
      cf982a23
  27. Aug 10, 2017
  28. Aug 04, 2017
  29. Jul 24, 2017
  30. May 22, 2017
  31. Dec 18, 2016
    • Gregory Szorc's avatar
      tests: add tests for git.findcopiesharder · dd5afdfe
      Gregory Szorc authored
      Previously, no explicit tests existed for this feature.
      
      The added tests demonstrate that git.findcopiesharder results in
      copy metadata being added to changesets adding files that were
      unmodified by that changeset.
      dd5afdfe
Loading