Skip to content
Snippets Groups Projects
  1. Dec 28, 2020
  2. Jan 31, 2021
  3. 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
  4. Jan 11, 2021
  5. Nov 23, 2020
  6. Jan 08, 2021
  7. Dec 13, 2020
  8. 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
  9. Jan 08, 2021
  10. Dec 13, 2020
  11. Dec 24, 2020
  12. Dec 18, 2020
  13. Dec 21, 2020
  14. Nov 21, 2020
  15. May 08, 2020
  16. Dec 09, 2020
  17. Oct 27, 2020
  18. Dec 11, 2020
  19. Dec 09, 2020
    • muxator's avatar
      gitdirstate: do not crash on hg status with an unreadable dir and no .hgignore · d2ab8d80
      muxator authored
      Now it is possible to invoke hg status in a repo where there is an unreadable
      directory and no .hgignore without crashing.
      
      This probably uncovers another (albeit minor) bug: the "Permission denied"
      message is printed twice.
      d2ab8d80
    • muxator's avatar
      tests: document hg status crash with an unreadable dir and no .hgignore · d27df9cf
      muxator authored
      If a repo has no .hgignore (this happens frequently on repositories that come
      from a git clone, which tend to have a .gitignore but no .hgignore), and a
      directory is not readable by the current user (for example, for a ownership or
      persmission problem), hg-git causes a crash in hg status instead of printing an
      error message.
      
      An almost complete stack trace is:
      
      $ hg status
      ...
      Traceback (most recent call last):
        File "/opt/mercurial/hg-git/hggit/gitdirstate.py", line 99, in _ignore
          fp = open(files[0], 'rb')
      FileNotFoundError: [Errno 2] No such file or directory: b'/tmp/example/.hgignore'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/opt/mercurial/hg-git/hggit/gitdirstate.py", line 182, in _finddotgitignores
          entries = util.listdir(join(nd), stat=True, skip=skip)
      PermissionError: [Errno 13] Permission denied: '/tmp/example/not_readable'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        [...]
        File "/opt/mercurial/hg-git/hggit/gitdirstate.py", line 102, in _ignore
          fns = self._finddotgitignores()
        File "/opt/mercurial/hg-git/hggit/gitdirstate.py", line 185, in _finddotgitignores
          fwarn(nd, inst.strerror)
        File "/opt/mercurial/hg-git/hggit/gitdirstate.py", line 128, in fwarn
          self._ui.warn(b'%s: %s\n' % (self.pathto(f), msg))
      TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
      d27df9cf
  20. Nov 24, 2020
  21. Nov 22, 2020
  22. Nov 21, 2020
  23. Aug 07, 2020
  24. Aug 04, 2018
    • Dan Villiom Podlaski Christiansen's avatar
      debuggitdir: add new command · 9e47dd10
      Dan Villiom Podlaski Christiansen authored
      This is useful for interacting with the Git repository directly,
      either from shell scripts, the terminal, or perhaps an alias like
      this:
      
      [alias]
      git=!GIT_DIR=$(hg debuggitdir) git "$@"
      
      ...and with that, you can easily access features not offered by
      Dulwich such as `hg git gc`.
      9e47dd10
  25. Oct 23, 2020
  26. Jul 12, 2020
Loading