diff options
author | wiz <wiz@pkgsrc.org> | 2018-01-10 19:32:13 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2018-01-10 19:32:13 +0000 |
commit | 8c7f5b3f55431d06b758679887ff2c09842b3628 (patch) | |
tree | 098839abb5d4f2b3c2bc03182eeaa7c99d0b09be /devel | |
parent | f74a9836812e350c7d808a79fdd54b27b8e13c1c (diff) | |
download | pkgsrc-8c7f5b3f55431d06b758679887ff2c09842b3628.tar.gz |
py-mercurial: update to 4.4.2.
Add upstream patch to fix a test case.
Mercurial 4.4.2 (2017-12-01)
This is a regularly-scheduled bugfix release.
1.1. Notable changes
1.1.1. Stricter command option parsing
Mercurial can now optionally parse "early" options (-R/--repository,
--cwd, --config, --debugger, and --profile) more strictly, for more
secure integration with tools that invoke 'hg' commands. Setting
HGPLAIN=+strictflags will parse these options more strictly, which
prevents them from being injected as arguments to other flags.
1.2. Bug fixes
'hg amend' now correctly handles deleted and removed files, as
well as subrepos. (issue5732, issue5677)
largefiles now correctly handles dropped standin files when
updating largefiles.
Fixed an issue with deleting symlinks to directories when
ui.origbackuppath is set. (issue5731)
1.3. Performance improvements
Improved performance in path conflict checking introduced in
Mercurial 4.4. (issue5716)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-mercurial/Makefile | 6 | ||||
-rw-r--r-- | devel/py-mercurial/Makefile.version | 7 | ||||
-rw-r--r-- | devel/py-mercurial/distinfo | 12 | ||||
-rw-r--r-- | devel/py-mercurial/patches/patch-tests_list-tree.py | 35 | ||||
-rw-r--r-- | devel/py-mercurial/patches/patch-tests_test-largefiles-misc.t | 17 |
5 files changed, 65 insertions, 12 deletions
diff --git a/devel/py-mercurial/Makefile b/devel/py-mercurial/Makefile index eaef2eb6a9d..755cb6b2e1f 100644 --- a/devel/py-mercurial/Makefile +++ b/devel/py-mercurial/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2017/12/08 21:24:26 joerg Exp $ +# $NetBSD: Makefile,v 1.20 2018/01/10 19:32:13 wiz Exp $ DISTNAME= mercurial-${VERSION} PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -24,10 +24,10 @@ INSTALLATION_DIRS+= share/doc/mercurial .include "Makefile.version" # Known test failures: -# test-status-color.t: -# https://bz.mercurial-scm.org/show_bug.cgi?id=5698 # test-run-tests.t: # https://bz.mercurial-scm.org/show_bug.cgi?id=5735 +# test-status-color.t: +# https://bz.mercurial-scm.org/show_bug.cgi?id=5698 do-test: cd ${WRKSRC} && make tests PYTHON=${PYTHONBIN} TESTFLAGS=${_MAKE_JOBS:Q} diff --git a/devel/py-mercurial/Makefile.version b/devel/py-mercurial/Makefile.version index 091d88af2e9..2c5b7c0844a 100644 --- a/devel/py-mercurial/Makefile.version +++ b/devel/py-mercurial/Makefile.version @@ -1,10 +1,9 @@ -# $NetBSD: Makefile.version,v 1.54 2017/11/23 20:44:47 wiz Exp $ +# $NetBSD: Makefile.version,v 1.55 2018/01/10 19:32:13 wiz Exp $ -VERSION= 4.4.1 +VERSION= 4.4.2 -PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # not yet ported as of 3.9 +PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # not yet ported as of 4.3 # see also https://www.mercurial-scm.org/wiki/SupportedPythonVersions -# 3.x support is not planned for the near future # # the following setup argument was requested when compiling # for python-3.x diff --git a/devel/py-mercurial/distinfo b/devel/py-mercurial/distinfo index aa0a1a7bc0e..f80ead729ab 100644 --- a/devel/py-mercurial/distinfo +++ b/devel/py-mercurial/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.56 2017/11/23 20:44:47 wiz Exp $ +$NetBSD: distinfo,v 1.57 2018/01/10 19:32:13 wiz Exp $ -SHA1 (mercurial-4.4.1.tar.gz) = 99fedcebccdb53f67aefaba5cdade9e84d79cf7e -RMD160 (mercurial-4.4.1.tar.gz) = 7f7affb0e86e096f60a8cdec1fd16ac2037e9087 -SHA512 (mercurial-4.4.1.tar.gz) = 4c87adb6d3d30f7f9211eee64df727aefdac246be3ca9e3af412b76c32b76d701b19e00ca339168446ee5e20fad2ffc24f0c87438b6bda954560108235ab14a8 -Size (mercurial-4.4.1.tar.gz) = 5636532 bytes +SHA1 (mercurial-4.4.2.tar.gz) = df543ee5bfef9ac224e2b3c108d3d2df234b043f +RMD160 (mercurial-4.4.2.tar.gz) = 34c671ff1f2034c548c65a293fa563013a79482e +SHA512 (mercurial-4.4.2.tar.gz) = 3d1d103689eac4f50cc1005be44144b37d75ebfac3ff3b4fc90d6f41fbee46e107a168d04f2c366ce7cca2733ea4e5b5127df462af8e253f61a72f8938833993 +Size (mercurial-4.4.2.tar.gz) = 5647013 bytes +SHA1 (patch-tests_list-tree.py) = be9749aa09490efa28cb7cc9231fa3acf85afc7d +SHA1 (patch-tests_test-largefiles-misc.t) = f05ab87c76b51fe2a784a86d872d8e19bde30193 diff --git a/devel/py-mercurial/patches/patch-tests_list-tree.py b/devel/py-mercurial/patches/patch-tests_list-tree.py new file mode 100644 index 00000000000..5bdb77b3811 --- /dev/null +++ b/devel/py-mercurial/patches/patch-tests_list-tree.py @@ -0,0 +1,35 @@ +$NetBSD: patch-tests_list-tree.py,v 1.1 2018/01/10 19:32:13 wiz Exp $ + +From upstream: +tests: write and use a custom helper script to avoid find's -printf. + +--- tests/list-tree.py.orig 2018-01-10 14:21:58.440677374 +0000 ++++ tests/list-tree.py +@@ -0,0 +1,27 @@ ++from __future__ import ( ++ absolute_import, ++ print_function, ++) ++ ++import argparse ++import os ++ ++ap = argparse.ArgumentParser() ++ap.add_argument('path', nargs='+') ++opts = ap.parse_args() ++ ++def gather(): ++ for p in opts.path: ++ if not os.path.exists(p): ++ return ++ if os.path.isdir(p): ++ yield p + os.path.sep ++ for dirpath, dirs, files in os.walk(p): ++ for d in dirs: ++ yield os.path.join(dirpath, d) + os.path.sep ++ for f in files: ++ yield os.path.join(dirpath, f) ++ else: ++ yield p ++ ++print('\n'.join(sorted(gather()))) diff --git a/devel/py-mercurial/patches/patch-tests_test-largefiles-misc.t b/devel/py-mercurial/patches/patch-tests_test-largefiles-misc.t new file mode 100644 index 00000000000..eccbd2231ea --- /dev/null +++ b/devel/py-mercurial/patches/patch-tests_test-largefiles-misc.t @@ -0,0 +1,17 @@ +$NetBSD: patch-tests_test-largefiles-misc.t,v 1.1 2018/01/10 19:32:13 wiz Exp $ + +From upstream: +tests: write and use a custom helper script to avoid find's -printf. + +--- tests/test-largefiles-misc.t.orig 2017-12-01 19:49:46.000000000 +0000 ++++ tests/test-largefiles-misc.t +@@ -1095,8 +1095,7 @@ largefiles (issue4547) + Move (and then undo) a directory move with only largefiles. + + $ listtree() { +- > find $@ \( -type d -printf "%p/\n" -o -type f -printf "%p\n" \) \ +- > -a -name .hg -prune | sort ++ > $PYTHON $TESTDIR/list-tree.py $@ + > } + + $ cd subrepo-root |