diff Python/sysmodule.c @ 68801:f9763c363cc3 2.5

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.
author Martin v. Löwis <martin@v.loewis.de>
date Mon, 21 Mar 2011 10:30:07 +0100
parents d67b5d953b45
children b99c94261225
line wrap: on
line diff
--- a/Python/sysmodule.c	Sat Mar 19 16:20:06 2011 -0700
+++ b/Python/sysmodule.c	Mon Mar 21 10:30:07 2011 +0100
@@ -978,8 +978,13 @@
 		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, '/');