[PATCH 07 of 10 V2] revlog: use the native implementation of issnapshot

Yuya Nishihara yuya at tcha.org
Fri Dec 21 23:11:57 EST 2018


On Fri, 21 Dec 2018 12:47:10 +0100, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1545366458 -3600
> #      Fri Dec 21 05:27:38 2018 +0100
> # Node ID 4b515705427c5ce7f4d55611738ab7f62662dc6b
> # Parent  d15f3f46ca1e52f06d5b8f3f77c5e2e02912aaa9
> # EXP-Topic sparse-revlog
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 4b515705427c
> revlog: use the native implementation of issnapshot

> +static PyObject *index_issnapshot(indexObject *self, PyObject *value)
> +{
> +	long rev;
> +	int issnap;
> +
> +	if (!pylong_to_long(value, &rev)) {
> +		return NULL;

It should validate the range of the input rev.


More information about the Mercurial-devel mailing list