Remove deprecated option cygwin-copy
This commit is contained in:
parent
d45d53ff39
commit
df2ff5ec70
3 changed files with 2 additions and 18 deletions
|
@ -4,10 +4,6 @@ import os
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
|
||||||
'cygwin',
|
|
||||||
[pytest.param(True, marks=pytest.mark.deprecated), False],
|
|
||||||
ids=['cygwin', 'no-cygwin'])
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'setting, expect_link, pre_existing', [
|
'setting, expect_link, pre_existing', [
|
||||||
(None, True, None),
|
(None, True, None),
|
||||||
|
@ -26,14 +22,11 @@ import pytest
|
||||||
@pytest.mark.usefixtures('ds1_copy')
|
@pytest.mark.usefixtures('ds1_copy')
|
||||||
def test_alt_copy(
|
def test_alt_copy(
|
||||||
runner, yadm_cmd, paths, tst_sys,
|
runner, yadm_cmd, paths, tst_sys,
|
||||||
setting, expect_link, pre_existing,
|
setting, expect_link, pre_existing):
|
||||||
cygwin):
|
|
||||||
"""Test yadm.alt-copy"""
|
"""Test yadm.alt-copy"""
|
||||||
|
|
||||||
option = 'yadm.cygwin-copy' if cygwin else 'yadm.alt-copy'
|
|
||||||
|
|
||||||
if setting is not None:
|
if setting is not None:
|
||||||
os.system(' '.join(yadm_cmd('config', option, str(setting))))
|
os.system(' '.join(yadm_cmd('config', 'yadm.alt-copy', str(setting))))
|
||||||
|
|
||||||
expected_content = f'test_alt_copy##os.{tst_sys}'
|
expected_content = f'test_alt_copy##os.{tst_sys}'
|
||||||
|
|
||||||
|
|
3
yadm
3
yadm
|
@ -514,9 +514,6 @@ function alt() {
|
||||||
local do_copy=0
|
local do_copy=0
|
||||||
[ "$(config --bool yadm.alt-copy)" == "true" ] && do_copy=1
|
[ "$(config --bool yadm.alt-copy)" == "true" ] && do_copy=1
|
||||||
|
|
||||||
# deprecated yadm.cygwin-copy option (to be removed)
|
|
||||||
[ "$(config --bool yadm.cygwin-copy)" == "true" ] && do_copy=1
|
|
||||||
|
|
||||||
cd_work "Alternates" || return
|
cd_work "Alternates" || return
|
||||||
|
|
||||||
# determine all tracked files
|
# determine all tracked files
|
||||||
|
|
6
yadm.1
6
yadm.1
|
@ -372,12 +372,6 @@ The following is the full list of supported configurations:
|
||||||
If set to "true", alternate files will be copies instead of symbolic links.
|
If set to "true", alternate files will be copies instead of symbolic links.
|
||||||
This might be desirable, because some systems may not properly support
|
This might be desirable, because some systems may not properly support
|
||||||
symlinks.
|
symlinks.
|
||||||
|
|
||||||
NOTE: The deprecated
|
|
||||||
.I yadm.cygwin-copy
|
|
||||||
option used by older versions of yadm has been replaced by
|
|
||||||
.IR yadm.alt-copy .
|
|
||||||
The old option will be removed in the next version of yadm.
|
|
||||||
.TP
|
.TP
|
||||||
.B yadm.auto-alt
|
.B yadm.auto-alt
|
||||||
Disable the automatic linking described in the section ALTERNATES. If disabled,
|
Disable the automatic linking described in the section ALTERNATES. If disabled,
|
||||||
|
|
Loading…
Reference in a new issue