Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 46057:bfcda552492e legacy-trunk
Added quick hack for bzr
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Mon, 24 Mar 2008 19:57:42 +0000 |
| parents | 99355baa748d |
| children | c86e9dd16b8d |
line wrap: on
line diff
--- a/Python/sysmodule.c Mon Mar 24 13:54:23 2008 +0000 +++ b/Python/sysmodule.c Mon Mar 24 19:57:42 2008 +0000 @@ -1063,8 +1063,15 @@ 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, '/');
