[Python-checkins] r88818 - python/branches/release25-maint/Python/sysmodule.c
martin.v.loewis
python-checkins at python.org
Sun Apr 17 22:36:17 CEST 2011
Author: martin.v.loewis
Date: Sun Apr 17 22:36:17 2011
New Revision: 88818
Log:
hg f9763c363cc3 by Martin v. Löwis
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.
Modified:
python/branches/release25-maint/Python/sysmodule.c
Modified: python/branches/release25-maint/Python/sysmodule.c
==============================================================================
--- python/branches/release25-maint/Python/sysmodule.c (original)
+++ python/branches/release25-maint/Python/sysmodule.c Sun Apr 17 22:36:17 2011
@@ -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, '/');
More information about the Python-checkins
mailing list