From ce5d0e22fc307a22bf8410dbdd6b4f0190f36fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 21 Mar 2011 10:30:07 +0100 Subject: [PATCH] Set subversion version identification to empty strings if this is not a subversion checkout (but a mercurial one). Closes #11579. Closes #11421. Patch by Senthil Kumaran. --- Python/sysmodule.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 4598a3ce747..eb548b4f857 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -978,8 +978,13 @@ svnversion_init(void) return; python = strstr(headurl, "/python/"); - if (!python) - Py_FatalError("subversion keywords missing"); + if (!python) { + *patchlevel_revision = '\0'; + strcpy(branch, ""); + strcpy(shortbranch, "unknown"); + svn_revision = ""; + return; + } br_start = python + 8; br_end = strchr(br_start, '/');