Skip to content

Commit ce5d0e2

Browse files
committed
Set subversion version identification to empty strings if this is not a subversion
checkout (but a mercurial one). Closes python#11579. Closes python#11421. Patch by Senthil Kumaran.
1 parent 197f7f6 commit ce5d0e2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Python/sysmodule.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,8 +978,13 @@ svnversion_init(void)
978978
return;
979979

980980
python = strstr(headurl, "/python/");
981-
if (!python)
982-
Py_FatalError("subversion keywords missing");
981+
if (!python) {
982+
*patchlevel_revision = '\0';
983+
strcpy(branch, "");
984+
strcpy(shortbranch, "unknown");
985+
svn_revision = "";
986+
return;
987+
}
983988

984989
br_start = python + 8;
985990
br_end = strchr(br_start, '/');

0 commit comments

Comments
 (0)