Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mercurial
hg-git
Commits
22ef5852f949
Commit
22ef5852
authored
Oct 28, 2022
by
Dan Villiom Podlaski Christiansen
Browse files
compat: drop support for Mercurial 5.3
parent
fe6ede857c6f
Pipeline
#58095
failed with stages
in 27 minutes and 7 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
22ef5852
...
...
@@ -58,7 +58,6 @@
-
&supported-versions
PYTHON
:
"
3.9"
HG
:
-
"
5.3"
-
"
5.4"
-
"
5.5"
-
"
5.6"
...
...
@@ -94,10 +93,10 @@
artifacts
:
*test-artifacts
parallel
:
matrix
:
-
ALPINE
:
"
3.11
"
-
ALPINE
:
"
latest
"
DULWICH
:
-
"
0.19.3"
-
"
0.19.11"
-
"
0.20.3"
-
"
0.20.5"
-
ALPINE
:
...
...
@@ -98,9 +97,11 @@
DULWICH
:
-
"
0.19.3"
-
"
0.19.11"
-
"
0.20.3"
-
"
0.20.5"
-
ALPINE
:
-
"
3.12"
-
"
3.13"
-
"
3.14"
-
"
3.15"
-
"
3.16"
...
...
NEWS.rst
View file @
22ef5852
...
...
@@ -27,7 +27,7 @@
default:pushurl = git+ssh://git@github.com/example
default:hg-git.publish = yes
This release requires Mercurial 5.
3
or later and Python 3.7 or later.
This release requires Mercurial 5.
4
or later and Python 3.7 or later.
hg-git 1.0.2 (unreleased)
=========================
...
...
README.rst
View file @
22ef5852
...
...
@@ -29,7 +29,7 @@
binary dependencies, and you do not need to have Git installed on your
system. The only dependencies are:
* Mercurial 5.
3
* Mercurial 5.
4
* Dulwich 0.19.3
* Python 3.7
...
...
hggit/__init__.py
View file @
22ef5852
...
...
@@ -163,8 +163,8 @@
b
'collections'
,
}
testedwith
=
b
'
5.3
5.4 5.5 5.6 5.7 5.8 5.9 6.0 6.1 6.2 6.3'
minimumhgversion
=
b
'5.
3
'
testedwith
=
b
'5.4 5.5 5.6 5.7 5.8 5.9 6.0 6.1 6.2 6.3'
minimumhgversion
=
b
'5.
4
'
buglink
=
b
'https://foss.heptapod.net/mercurial/hg-git/issues'
eh
=
exthelper
.
exthelper
()
...
...
hggit/commands.py
View file @
22ef5852
...
...
@@ -23,7 +23,6 @@
)
# local modules
from
.
import
compat
from
.
import
verify
eh
=
exthelper
.
exthelper
()
...
...
@@ -125,7 +124,7 @@
opts
=
pycompat
.
byteskwargs
(
opts
)
# check for various unimplemented arguments
c
ompat
.
check_incompatible_arguments
(
c
mdutil
.
check_incompatible_arguments
(
opts
,
b
'git'
,
[
...
...
hggit/compat.py
View file @
22ef5852
...
...
@@ -3,7 +3,6 @@
import
functools
from
mercurial
import
(
cmdutil
,
node
,
ui
,
util
as
hgutil
,
...
...
@@ -92,14 +91,3 @@
# added in dulwich 0.20.3; just create a dummy class for catching
class
HTTPUnauthorized
(
Exception
):
pass
# added in 5.3 but changed in 5.4, so always use our implementation
def
check_incompatible_arguments
(
opts
,
first
,
others
):
"""abort if the first argument is given along with any of the others
Unlike check_at_most_one_arg(), `others` are not mutually exclusive
among themselves, and they're passed as a single collection.
"""
for
other
in
others
:
cmdutil
.
check_at_most_one_arg
(
opts
,
first
,
other
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment