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.
This commit is contained in:
Martin v. Löwis 2011-03-21 10:30:07 +01:00
parent 197f7f6859
commit ce5d0e22fc
1 changed files with 7 additions and 2 deletions

View File

@ -978,8 +978,13 @@ svnversion_init(void)
return; return;
python = strstr(headurl, "/python/"); python = strstr(headurl, "/python/");
if (!python) if (!python) {
Py_FatalError("subversion keywords missing"); *patchlevel_revision = '\0';
strcpy(branch, "");
strcpy(shortbranch, "unknown");
svn_revision = "";
return;
}
br_start = python + 8; br_start = python + 8;
br_end = strchr(br_start, '/'); br_end = strchr(br_start, '/');