Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 68801:f9763c363cc3 2.5
Set subversion version identification to empty strings if this is not a subversion
checkout (but a mercurial one). Closes #11579. Closes #11421.
Patch by Senthil Kumaran.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Mon, 21 Mar 2011 10:30:07 +0100 |
| parents | d67b5d953b45 |
| children | b99c94261225 |
comparison
equal
deleted
inserted
replaced
| 68695:cc959f114739 | 68801:f9763c363cc3 |
|---|---|
| 976 | 976 |
| 977 if (svn_initialized) | 977 if (svn_initialized) |
| 978 return; | 978 return; |
| 979 | 979 |
| 980 python = strstr(headurl, "/python/"); | 980 python = strstr(headurl, "/python/"); |
| 981 if (!python) | 981 if (!python) { |
| 982 Py_FatalError("subversion keywords missing"); | 982 *patchlevel_revision = '\0'; |
| 983 strcpy(branch, ""); | |
| 984 strcpy(shortbranch, "unknown"); | |
| 985 svn_revision = ""; | |
| 986 return; | |
| 987 } | |
| 983 | 988 |
| 984 br_start = python + 8; | 989 br_start = python + 8; |
| 985 br_end = strchr(br_start, '/'); | 990 br_end = strchr(br_start, '/'); |
| 986 assert(br_end); | 991 assert(br_end); |
| 987 | 992 |
