diff mercurial/parsers.c @ 17606:318fb32b980e

pathencode: new C module with fast encodedir() function Not yet used (will be enabled in a later patch). This patch is a stripped down version of patches originally created by Bryan O'Sullivan <bryano@fb.com>
author Adrian Buehlmann <adrian@cadifra.com>
date Tue, 18 Sep 2012 11:43:30 +0200
parents 511dfb34b412
children 9535a0dc41f2
line wrap: on
line diff
--- a/mercurial/parsers.c	Tue Sep 18 07:58:50 2012 +0200
+++ b/mercurial/parsers.c	Tue Sep 18 11:43:30 2012 +0200
@@ -1506,11 +1506,14 @@
 
 static char parsers_doc[] = "Efficient content parsing.";
 
+PyObject *encodedir(PyObject *self, PyObject *args);
+
 static PyMethodDef methods[] = {
 	{"pack_dirstate", pack_dirstate, METH_VARARGS, "pack a dirstate\n"},
 	{"parse_manifest", parse_manifest, METH_VARARGS, "parse a manifest\n"},
 	{"parse_dirstate", parse_dirstate, METH_VARARGS, "parse a dirstate\n"},
 	{"parse_index2", parse_index2, METH_VARARGS, "parse a revlog index\n"},
+	{"encodedir", encodedir, METH_VARARGS, "encodedir a path\n"},
 	{NULL, NULL}
 };