diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c +++ b/mercurial/cext/revlog.c @@ -497,7 +497,7 @@ if (self->format_version != format_v1) { PyErr_Format(PyExc_RuntimeError, "version header should go in the docket, not the " - "index: %lu", + "index: %d", header); return NULL; }