- Aug 03, 2020
-
-
muxator authored
Before this change, if the user's log template included a call to gitnode() to show the git commit hash, invoking "hg incoming" on a git repository that had at least one incoming change failed with: AttributeError: 'overlayrepo' object has no attribute 'githandler' Since an incoming changeset should already have well defined git commit hashes, there is no apparent reason for which "hg incoming" should not have this information already. This change is a workaround that removes any reference to the hg-git structures from the incoming changeset, thus merely avoiding the crash. Fixes #239 (#239)
-
- Aug 06, 2020
-
-
Georges Racinet authored
We don't have a dedicated CI job for hg 5.5 right now, but the stable branch plays that role for now. Excerpts from a recent succesful pipeline: tests-py2-hg-stable: env HGRCPATH= python2 hg version Mercurial Distributed SCM (version 5.5+2-3d414dce2d40) tests-py3-hg-stable: env HGRCPATH= python3 hg version Mercurial Distributed SCM (version 5.5+2-3d414dce2d40)
- Jun 12, 2020
-
-
Manuel Jacob authored
In the previous code, if lazy-importing compat failed, the except clause was executed, raising a bogus error.
-
- May 13, 2020
-
-
Georges Racinet authored
dev.heptapod.net has become foss.heptapod.net in the meanwhile
-
Georges Racinet authored
-
Georges Racinet authored
Before Mercurial 4.3, the pycompat module doesn't have enough features to support our current dual Python code. Also, the oldest version currently available in Heptapod CI happens to be 4.3. It's also a good opportunity to start using the 'minimumhgversion' field, making the extension refuse to load on unsupported version.
- May 10, 2020
-
-
Manuel Jacob authored
(folded with intermediate revision with new message by Georges Racinet) The previous conditional was wrong: in current Mercurial, 'co' is in principle not an integer. The condition on integer has been introduced for the port to py3, but does not change the fact that changelog.__contains__ is for integers. The original intent in a90fe3e8a8c3 was probably to exclude local repositories, but this had the side effect of setting `co=None` in all cases, hence affecting pulls having nothing to do with hg-git, as the new test demontstrates. What we really want is to force `co=None` only for remote Git repositories, for the reasons explained in the comment. Previous intermediate commit was cleanup: eliminate if statement with condition that is always true 'co' is never an integer. It’s always None or of type bytes. Apparently 'co' was of type int some years ago. A proper fix would require to fix the lookup() remote command or change hg to not require it e.g. when pulling with -r. For now, let’s remove the broken code and be honest about that we give up.
-
Manuel Jacob authored
-
Manuel Jacob authored
A test for a case mentioned in the comment will be added in a subsequent changeset.
-
Manuel Jacob authored
-
- May 04, 2020
-
-
Manuel Jacob authored
-
- May 08, 2020
-
-
Manuel Jacob authored
-
- Mar 06, 2020
-
-
Manuel Jacob authored
changelog.__contains__ compares the argument to integers. On Python 2, this results in a return value of False if passing in non-ints. On Python 3, this results in an exception if passing in non-ints.
-
timeless developer authored
-
Manuel Jacob authored
-
Manuel Jacob authored
-
- May 03, 2020
-
-
Manuel Jacob authored
-
- Mar 06, 2020
-
-
Manuel Jacob authored
-
- May 03, 2020
-
-
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.
-
- Nov 25, 2019
-
-
timeless developer authored
-
- Mar 05, 2020
-
-
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
-
- Nov 22, 2019
-
-
timeless developer authored
-
- Nov 12, 2019
-
-
muxator authored
Command executed: find . -name "*.py" -print0 | xargs -I {} -0 2to3 --fix=import --write {}
-
muxator authored
Before this patch: --- /opt/mercurial/hg-git/tests/test-check-pyflakes.t +++ /opt/mercurial/hg-git/tests/test-check-pyflakes.t.err @@ -17,3 +17,8 @@ > -X tests/ \ > 2>/dev/null \ > | xargs pyflakes 2>/dev/null + hggit/__init__.py:59: local variable 'e' is assigned to but never used
-
- Nov 20, 2019
-
-
Georges Racinet authored
-
- Nov 18, 2019
-
- Aug 07, 2019
-
-
Kevin Bullock authored
-
Kevin Bullock authored
-
Kevin Bullock authored
-
Kevin Bullock authored
-
- May 19, 2019
-
-
Kevin Bullock authored
-
Kevin Bullock authored
-
- May 16, 2019
-
-
Kevin Bullock authored
-
- Mar 18, 2019
-
-
Kevin Bullock authored
-
- Dec 02, 2018
-
-
Kevin Bullock authored
-
- Oct 15, 2018
-
- Feb 08, 2018
-
-
Kevin Bullock authored
-
Kevin Bullock authored
-