- 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.
-
- Dec 21, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
- Nov 21, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
- May 08, 2020
-
-
Manuel Jacob authored
-
- Dec 09, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
- Oct 27, 2020
-
-
Dan Villiom Podlaski Christiansen authored
This fixes cloning using the old git protocol.
-
- Dec 11, 2020
-
-
muxator authored
-
- Dec 09, 2020
-
-
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.
-
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'
-
- Nov 24, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
- Nov 22, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
- Nov 21, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
-
- Aug 07, 2020
-
-
Manuel Jacob authored
Fixes #239.
-
- Aug 04, 2018
-
-
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`.
-
- Oct 23, 2020
-
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
-
- Jul 12, 2020
-
-
Manuel Jacob authored
This correctly handles sub-options. Before, the test case failed with: dulwich.errors.RefFormatError: refs/remotes/default:pushurl/beta
-
Manuel Jacob authored
Before, the added test case failed with “abort: git remote error: fatal: 'file://$TESTTMP/gitrepo' does not appear to be a git repository”.
-