[Python-checkins] cpython (2.5): Set subversion version identification to empty strings if this is not a

martin.v.loewis python-checkins at python.org
Mon Mar 21 10:32:19 CET 2011


http://hg.python.org/cpython/rev/f9763c363cc3
changeset:   68801:f9763c363cc3
branch:      2.5
parent:      68695:cc959f114739
user:        Martin v. Löwis <martin at v.loewis.de>
date:        Mon Mar 21 10:30:07 2011 +0100
summary:
  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.

files:
  Python/sysmodule.c

diff --git a/Python/sysmodule.c b/Python/sysmodule.c
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -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, '/');

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list