- Dec 26, 2020
-
-
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
-
- Dec 22, 2020
-
-
Dan Villiom Podlaski Christiansen authored
The doctests are hard to read & modify.
-
Dan Villiom Podlaski Christiansen authored
-
- Oct 23, 2020
-
-
Dan Villiom Podlaski Christiansen authored
This removes all compatibility support for Python 3.5 and earlier, and adjusts our __future__ imports to enable the `generator_stop` feature, which was optional in Python 3.5 and enabled in 3.7. See <https://docs.python.org/3/library/__future__.html> for details.
-
- Feb 05, 2021
-
-
Dan Villiom Podlaski Christiansen authored
-
- Feb 06, 2021
-
-
Dan Villiom Podlaski Christiansen authored
This avoids clobbering the `git` extension, bundled with Mercurial.
-
- Feb 02, 2021
-
-
Dan Villiom Podlaski Christiansen authored
This should both be more reliable and thorough.
-
- Dec 10, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
...and while at it, don't rely on an implementation detail; rather than just creating the directory, do a proper export
-
- Jan 29, 2021
-
-
Dan Villiom Podlaski Christiansen authored
The Git documentation clearly states that slash is the only valid directory separator in a .gitignore file, but its implementation disagrees. Although lines starting with a \ may in fact be an escaped exclamation mark, this is at least an improvement.
-
- Jan 28, 2021
-
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
Something like file://c:/path specifies a remote location, I believe. At least that's the error we get.
-
- Feb 01, 2021
-
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
Oddly, this can cause Mercurial to detect the output as a TTY and colorise it, possibly due to some weird interaction with MSYS.
-
- Jan 28, 2021
-
-
Dan Villiom Podlaski Christiansen authored
When a clone aborts, Dulwich may retain some open pack file handles, preventing the files from being deleted on Windows. Properly speaking, this is a bug in either Dulwich or hg-git.
-
Dan Villiom Podlaski Christiansen authored
This is quite common on Windows.
-
Dan Villiom Podlaski Christiansen authored
-
- Dec 28, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
- Jan 31, 2021
-
-
Dan Villiom Podlaski Christiansen authored
They offer useful information about what the test is doing, and slow down the test ever so slightly with no benefit whatsoever.
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
Mercurial 5.7 changed the behaviour such that an activated bookmark during a clone lead to that being the update target. As far as I can tell, the code in hg-git always seemed to assume that this was the behaviour, but it wasn't. See <https://phab.mercurial-scm.org/D9638>.
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
Mercurial 5.7 changed the default update target. This removes it as an implicit assumption from some tests that don't actually rely on it.
-
Dan Villiom Podlaski Christiansen authored
Normally, you can't push to the currently checked out branch in a non-bare (covered? sheathed? clothed?) repository. Previously, some tests used a separate branch called not-master for that. As that affects what gets checked out in Mercurial 5.7, use a bare repository instead. Cloning such a repository is much more representative of common Git usage anyway.
-
- Sep 03, 2019
-
-
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
-
- Jan 11, 2021
-
-
Dan Villiom Podlaski Christiansen authored
hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch <name> hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m <name>
-
Dan Villiom Podlaski Christiansen authored
-
- Nov 23, 2020
-
-
Dan Villiom Podlaski Christiansen authored
Fixes #325.
-
- Jan 08, 2021
-
-
Dan Villiom Podlaski Christiansen authored
This fixes converting commits that build on obsoleted changesets.
-
Dan Villiom Podlaski Christiansen authored
-
- Dec 13, 2020
-
-
Dan Villiom Podlaski Christiansen authored
fixes #193
-
- Dec 23, 2020
-
-
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.
-
- Jan 08, 2021
-
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
-
- Dec 13, 2020
-
-
Dan Villiom Podlaski Christiansen authored
while at it, I adjusted the warnings message to be consistent with Mercurial's style: warning: not exporting bookmark 'whatever' due to invalid name See the bug for an example of the stack trace. Fixes #163
-
- Dec 24, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
- Dec 18, 2020
-
-
muxator authored
This is correct behaviour. The test's purpose is showing that next commit keeps the external behaviour.
-