mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:55: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
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue