From: Christian Heimes Date: Mon, 24 Mar 2008 19:57:42 +0000 (+0000) Subject: Added quick hack for bzr X-Git-Tag: v2.6a2~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a453c3750889da2117616f5c90e99538a14a92a;p=python Added quick hack for bzr --- diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 385969f8e2..94f15255b2 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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, '/');