Author: cwittich
Date: Wed Jan 30 13:29:27 2008
New Revision: 32050
URL:
http://svn.reactos.org/svn/reactos?rev=32050&view=rev
Log:
add support for svn-1.5 entries patch by <roytam1 at yahoo dot com.hk>
See issue #2983 for more details.
Modified:
trunk/reactos/tools/buildno/buildno.cpp
Modified: trunk/reactos/tools/buildno/buildno.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/buildno/buildno.cpp?…
==============================================================================
--- trunk/reactos/tools/buildno/buildno.cpp (original)
+++ trunk/reactos/tools/buildno/buildno.cpp Wed Jan 30 13:29:27 2008
@@ -51,14 +51,15 @@
static char Unknown[] = "UNKNOWN";
static char Revision[10]; /* 999999999 revisions should be enough for everyone... */
- /* SVN 1.4.x */
+ /* SVN 1.4.x-1.5.x */
FILE *fp = NULL;
char ch;
size_t count = 0, chars = 0;
fp = fopen(".svn/entries", "r");
if (fp != NULL)
{
- if (fgetc(fp) == 56) /* some kind of header? */
+ ch=fgetc(fp);
+ if (ch == 56 || ch == 57) /* some kind of header? */
{
while((ch=fgetc(fp)) != EOF)
{