From: Martin v. Löwis Date: Mon, 21 Mar 2011 09:30:07 +0000 (+0100) Subject: Set subversion version identification to empty strings if this is not a subversion X-Git-Tag: v2.5.6c1~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce5d0e22fc307a22bf8410dbdd6b4f0190f36fab;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 4598a3ce7472..eb548b4f8576 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, '/');