Commit 22ef5852 authored by Dan Villiom Podlaski Christiansen's avatar 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
......@@ -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"
......
......@@ -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)
=========================
......
......@@ -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
......
......@@ -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()
......
......@@ -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
compat.check_incompatible_arguments(
cmdutil.check_incompatible_arguments(
opts,
b'git',
[
......
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment