]> granicus.if.org Git - python/commitdiff
Set subversion version identification to empty strings if this is not a subversion
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 21 Mar 2011 09:30:07 +0000 (10:30 +0100)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 21 Mar 2011 09:30:07 +0000 (10:30 +0100)
checkout (but a mercurial one). Closes #11579. Closes #11421.
Patch by Senthil Kumaran.

Python/sysmodule.c

index 4598a3ce7472df19d926fd71d1f344f6fc5fb3b2..eb548b4f85763eb4b37fccb16f1a9eea5cc786f8 100644 (file)
@@ -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, '/');