add support for svn-1.5 entries patch by <roytam1 at yahoo dot com.hk>

See issue #2983 for more details.

svn path=/trunk/; revision=32050
This commit is contained in:
Christoph von Wittich 2008-01-30 10:29:27 +00:00
parent 8994a89463
commit f6e0124144

View file

@ -51,14 +51,15 @@ GetRev(void)
static char Unknown[] = "UNKNOWN"; static char Unknown[] = "UNKNOWN";
static char Revision[10]; /* 999999999 revisions should be enough for everyone... */ 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; FILE *fp = NULL;
char ch; char ch;
size_t count = 0, chars = 0; size_t count = 0, chars = 0;
fp = fopen(".svn/entries", "r"); fp = fopen(".svn/entries", "r");
if (fp != NULL) 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) while((ch=fgetc(fp)) != EOF)
{ {