Mercurial > hg
comparison mercurial/parsers.c @ 18430:0459c6555f69
store: implement lowerencode in C
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 12 Dec 2012 13:09:33 -0800 |
parents | 9535a0dc41f2 |
children | d1d5fdcc2d46 |
comparison
equal
deleted
inserted
replaced
18429:e9ea0f0f05e7 | 18430:0459c6555f69 |
---|---|
1506 | 1506 |
1507 static char parsers_doc[] = "Efficient content parsing."; | 1507 static char parsers_doc[] = "Efficient content parsing."; |
1508 | 1508 |
1509 PyObject *encodedir(PyObject *self, PyObject *args); | 1509 PyObject *encodedir(PyObject *self, PyObject *args); |
1510 PyObject *pathencode(PyObject *self, PyObject *args); | 1510 PyObject *pathencode(PyObject *self, PyObject *args); |
1511 PyObject *lowerencode(PyObject *self, PyObject *args); | |
1511 | 1512 |
1512 static PyMethodDef methods[] = { | 1513 static PyMethodDef methods[] = { |
1513 {"pack_dirstate", pack_dirstate, METH_VARARGS, "pack a dirstate\n"}, | 1514 {"pack_dirstate", pack_dirstate, METH_VARARGS, "pack a dirstate\n"}, |
1514 {"parse_manifest", parse_manifest, METH_VARARGS, "parse a manifest\n"}, | 1515 {"parse_manifest", parse_manifest, METH_VARARGS, "parse a manifest\n"}, |
1515 {"parse_dirstate", parse_dirstate, METH_VARARGS, "parse a dirstate\n"}, | 1516 {"parse_dirstate", parse_dirstate, METH_VARARGS, "parse a dirstate\n"}, |
1516 {"parse_index2", parse_index2, METH_VARARGS, "parse a revlog index\n"}, | 1517 {"parse_index2", parse_index2, METH_VARARGS, "parse a revlog index\n"}, |
1517 {"encodedir", encodedir, METH_VARARGS, "encodedir a path\n"}, | 1518 {"encodedir", encodedir, METH_VARARGS, "encodedir a path\n"}, |
1518 {"pathencode", pathencode, METH_VARARGS, "fncache-encode a path\n"}, | 1519 {"pathencode", pathencode, METH_VARARGS, "fncache-encode a path\n"}, |
1520 {"lowerencode", lowerencode, METH_VARARGS, "lower-encode a path\n"}, | |
1519 {NULL, NULL} | 1521 {NULL, NULL} |
1520 }; | 1522 }; |
1521 | 1523 |
1522 static void module_init(PyObject *mod) | 1524 static void module_init(PyObject *mod) |
1523 { | 1525 { |