[Python-checkins] r61851 - python/trunk/Python/sysmodule.c

christian.heimes python-checkins at python.org
Mon Mar 24 20:57:42 CET 2008


Author: christian.heimes
Date: Mon Mar 24 20:57:42 2008
New Revision: 61851

Modified:
   python/trunk/Python/sysmodule.c
Log:
Added quick hack for bzr

Modified: python/trunk/Python/sysmodule.c
==============================================================================
--- python/trunk/Python/sysmodule.c	(original)
+++ python/trunk/Python/sysmodule.c	Mon Mar 24 20:57:42 2008
@@ -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, '/');


More information about the Python-checkins mailing list