Skip to content
Snippets Groups Projects
  1. Dec 26, 2020
    • Dan Villiom Podlaski Christiansen's avatar
      push & pull: consolidate invalid path handling, default to skipping · b46639f3
      Dan Villiom Podlaski Christiansen authored
      The current behaviour is quite unhelpful, given that it either allows
      you to abort the conversion or generate a bogus repository. As an
      example, GitHub rejects anything with a `.git` in it.
      
      Instead, the new default is to issue a warning and simply discard the
      dangerous files. Although this might cause problems down the line, I'd
      much rather have those problems than just have hg-git give up.
      
      As an example of such a bogus repository, look no further than this
      one. c43c02cc803a committed some tests from Dulwich with nested Git
      repositories, and a061dce264b7 renamed them. Prior to this change,
      hg-git could not push its own repository to GitHub.
      
      Further more, Mercurial disallows paths containing carriage return
      (CR) and newline (NL) characters; as noted in the original Mercurial
      bug report that enabled this behaviour,[1] such paths appear for
      folder icons on macOS. This was reported on the list by Uwe Brauer.[2]
      
      Since Mercurial simply cannot store these files, we always either skip
      them or abort the conversion.
      
      [1] https://bz.mercurial-scm.org/show_bug.cgi?id=352
      [2] https://groups.google.com/g/hg-git/c/Rz3oRzrMS3Q/m/RRq4AIMsBAAJ
      b46639f3
  2. Dec 22, 2020
  3. Oct 23, 2020
  4. Feb 05, 2021
  5. Feb 06, 2021
  6. Feb 02, 2021
  7. Dec 10, 2020
  8. Jan 29, 2021
  9. Jan 28, 2021
  10. Feb 01, 2021
  11. Jan 28, 2021
  12. Dec 28, 2020
  13. Jan 31, 2021
  14. Sep 03, 2019
    • Georges Racinet's avatar
      auth: use a ~/.git-credentials file if it exists to fetch credentials · 031b90d7
      Georges Racinet authored
      In some situations we code the plain auth-less uri in the hgrc paths
      section (for convenience) and want to use a centrally-stored
      credentials file.
      
      Though it is possible to use the hgrc [auth] section, it would be also
      nice to access .git-credentials (still usefull for git direct access),
      avoiding double maintenance of credentials.
      
      This probably does not cover all possible situations with git
      credentials handling but it provides a working base.
      
      closes #305
      031b90d7
  15. Jan 11, 2021
  16. Nov 23, 2020
  17. Jan 08, 2021
  18. Dec 13, 2020
  19. Dec 23, 2020
    • Dan Villiom Podlaski Christiansen's avatar
      windows: scp-style "URIs" are not local · 61f99905
      Dan Villiom Podlaski Christiansen authored
      GitLab and GitHub output something like this for the SSH location:
      
        git@github.com:hg-git/hg-git.github.com.git
      
      Previously, cloning and pulling from them on Windows didn't work, as
      the path was reinterpreted as a local path, made absolute and then
      saved into `.hgrc`. The same happened on pull, even if you corrected
      the definition.
      
      I've adjust `test-networking.t` to use this type of path instead of
      the `git+ssh://` scheme, as it's more likely to break.
      
      Fixes #335.
      61f99905
  20. Jan 08, 2021
  21. Dec 13, 2020
  22. Dec 24, 2020
  23. Dec 18, 2020
Loading