patchupdate.py: Extract revision information directly from patch subject.

This commit is contained in:
Sebastian Lackner
2014-11-15 10:01:12 +01:00
parent dc05c7f163
commit 723bc23e50
5 changed files with 292 additions and 282 deletions

View File

@@ -1,4 +1,4 @@
From 378c383c738f097fd6fa81badca0cde5c6858970 Mon Sep 17 00:00:00 2001
From 6661529d2422f99287336b764fe7a5b61484b8ad Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Thu, 29 May 2014 23:43:45 +0200
Subject: loader: Add commandline option --patches to show the patch list.
@@ -6,8 +6,8 @@ Subject: loader: Add commandline option --patches to show the patch list.
---
dlls/ntdll/misc.c | 8 ++++++++
dlls/ntdll/ntdll.spec | 1 +
loader/main.c | 32 +++++++++++++++++++++++++++++++-
3 files changed, 40 insertions(+), 1 deletion(-)
loader/main.c | 36 +++++++++++++++++++++++++++++++++++-
3 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/misc.c b/dlls/ntdll/misc.c
index ad1b43b..1f985e7 100644
@@ -41,7 +41,7 @@ index 7e95969..f9483aa 100644
@ cdecl wine_get_host_version(ptr ptr) NTDLL_wine_get_host_version
diff --git a/loader/main.c b/loader/main.c
index ac67290..db9a176 100644
index ac67290..b1df463 100644
--- a/loader/main.c
+++ b/loader/main.c
@@ -89,7 +89,8 @@ static void check_command_line( int argc, char *argv[] )
@@ -54,7 +54,7 @@ index ac67290..db9a176 100644
if (argc <= 1)
{
@@ -106,6 +107,35 @@ static void check_command_line( int argc, char *argv[] )
@@ -106,6 +107,39 @@ static void check_command_line( int argc, char *argv[] )
printf( "%s\n", wine_get_build_id() );
exit(0);
}
@@ -64,6 +64,7 @@ index ac67290..db9a176 100644
+ {
+ const char *author;
+ const char *subject;
+ int revision;
+ }
+ *next, *cur = wine_get_patches();
+
@@ -72,17 +73,20 @@ index ac67290..db9a176 100644
+ next = cur + 1;
+ while (next->author)
+ {
+ if (strcmp(cur->author, next->author)) break;
+ if (strcmp( cur->author, next->author )) break;
+ next++;
+ }
+
+ printf("%s (%d):\n", cur->author, next - cur);
+ printf( "%s (%d):\n", cur->author, next - cur );
+ while (cur < next)
+ {
+ printf(" %s\n", cur->subject);
+ printf( " %s", cur->subject );
+ if (cur->revision != 1)
+ printf( " [rev %d]", cur->revision );
+ printf( "\n" );
+ cur++;
+ }
+ printf("\n");
+ printf( "\n" );
+ }
+
+ exit(0);