mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
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:
parent
8994a89463
commit
f6e0124144
|
@ -51,14 +51,15 @@ GetRev(void)
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue