summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-02 17:16:56 +0000
committerrubidium <rubidium@openttd.org>2010-08-02 17:16:56 +0000
commit508fe537ffcade0425acb9ce03b15f691a2f4766 (patch)
tree13d40767fcd430db0c35ff1e27a02bd68c9d4380 /projects
parente8dc701cc42b3f92703930812594d04a32823caf (diff)
downloadopenttd-508fe537ffcade0425acb9ce03b15f691a2f4766.tar.xz
(svn r20309) -Fix [FS#3953]: Mercurial (trunk) revision detection fails when different heads are used
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/determineversion.vbs2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs
index 9d300bd60..fa4109244 100755
--- a/projects/determineversion.vbs
+++ b/projects/determineversion.vbs
@@ -249,7 +249,7 @@ Function DetermineSVNVersion()
End If ' line <> "default"
End If ' Err.Number = 0
- Set oExec = WshShell.Exec("hg log -r " & hash & ":0 -k " & Chr(34) & "svn" & Chr(34) & " -l 1 --template " & Chr(34) & "{desc}\n" & Chr(34) & " ../")
+ Set oExec = WshShell.Exec("hg log -f -k " & Chr(34) & "(svn r" & Chr(34) & " -l 1 --template " & Chr(34) & "{desc}\n" & Chr(34) & " ../")
If Err.Number = 0 Then
revision = Mid(OExec.StdOut.ReadLine(), 7)
revision = Mid(revision, 1, InStr(revision, ")") - 1)