1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-16 19:19:09 +00:00

(svn r21856) -Fix (r21840): Don't fail tag detection on hg repositories that use mercurial queues. Add some safety against tags and branches with spaces as well.

This commit is contained in:
michi_cc
2011-01-19 17:10:52 +00:00
parent 3f9fa65a42
commit 22922414eb
2 changed files with 9 additions and 9 deletions

View File

@@ -253,10 +253,10 @@ Function DetermineSVNVersion()
Set oExec = WshShell.Exec("hg id -t")
If Err.Number = 0 Then
line = oExec.StdOut.ReadLine()
If Len(line) > 0 And line <> "tip" Then
If Len(line) > 0 And Right(line, 3) <> "tip" Then
version = line
branch = ""
End If ' Len(line) > 0 And line <> "tip"
End If ' Len(line) > 0 And Right(line, 3) <> "tip"
End If ' Err.Number = 0
Err.Clear