summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-03-21 09:30:07 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-03-21 09:30:07 (GMT)
commitce5d0e22fc307a22bf8410dbdd6b4f0190f36fab (patch)
tree9eda3f4ef53b2156ba89308d522cf1833d301096
parent197f7f68597755cbf7ba5b48299794f3c99d4923 (diff)
downloadcpython-ce5d0e22fc307a22bf8410dbdd6b4f0190f36fab.zip
cpython-ce5d0e22fc307a22bf8410dbdd6b4f0190f36fab.tar.gz
cpython-ce5d0e22fc307a22bf8410dbdd6b4f0190f36fab.tar.bz2
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.
-rw-r--r--Python/sysmodule.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 4598a3c..eb548b4 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, '/');