]> granicus.if.org Git - python/commitdiff
Added quick hack for bzr
authorChristian Heimes <christian@cheimes.de>
Mon, 24 Mar 2008 19:57:42 +0000 (19:57 +0000)
committerChristian Heimes <christian@cheimes.de>
Mon, 24 Mar 2008 19:57:42 +0000 (19:57 +0000)
Python/sysmodule.c

index 385969f8e2b125a85adc0010636af16fdbdf1552..94f15255b286e4d8363207cf8125ae602fb03778 100644 (file)
@@ -1063,8 +1063,15 @@ svnversion_init(void)
                return;
 
        python = strstr(headurl, "/python/");
-       if (!python)
+       if (!python) {
+               /* XXX quick hack to get bzr working */
+               *patchlevel_revision = '\0';
+               strcpy(branch, "");
+               strcpy(shortbranch, "unknown");
+               svn_revision = "";
+               return
                Py_FatalError("subversion keywords missing");
+       }
 
        br_start = python + 8;
        br_end = strchr(br_start, '/');