Author: dreimer
Date: Tue Jun 19 00:18:34 2007
New Revision: 27227
URL:
http://svn.reactos.org/svn/reactos?rev=27227&view=rev
Log:
Added ability to the SVN Client to show the recent online and offline Revision Number to
compare. This takes ~10 seconds, so my plan to add it to main menu was canceled. But as
"svn status" is has a nice place.
Modified:
trunk/tools/RosBE-Windows/Root/Help.cmd
trunk/tools/RosBE-Windows/Root/SVN.cmd
Modified: trunk/tools/RosBE-Windows/Root/Help.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Help.cmd?…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/Help.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/Help.cmd Tue Jun 19 00:18:34 2007
@@ -26,7 +26,7 @@
echo help [COMMAND] - Display the available commands or help on a
echo specific command.
echo svn [OPTIONS] - Create, Update or clean up your ReactOS Source
- echo Tree.
+ echo Tree or show the Status.
echo config [OPTIONS]- Configures the way, ReactOS will be built.
echo.
echo basedir - Switch back to the ReactOS source directory.
@@ -64,10 +64,12 @@
echo Usage: svn [OPTIONS]
echo Creates, Updates or cleans up your ReactOS Source Tree.
echo.
- echo update - Updates to HEAD Revision or to a specific one when
- echo second parameter specifies one.
- echo create - Creates a new ReactOS Tree.
+ echo update - Updates to HEAD Revision or to a specific one when
+ echo second parameter specifies one.
+ echo create - Creates a new ReactOS Tree.
echo cleanup - Cleans up and fixes errors in Tree.
+ echo status - Shows Actual offline Revision Number and online HEAD
+ echo Revision Number.
goto :EOF
)
if "%1" == "config" (
Modified: trunk/tools/RosBE-Windows/Root/SVN.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/SVN.cmd?r…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/SVN.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/SVN.cmd Tue Jun 19 00:18:34 2007
@@ -36,6 +36,20 @@
goto :SVN
)
)
+if "%1" == "status" (
+ title Status
+ call "%ROSBEBASEDIR%\Tools\svn.exe" info %_ROSSOURCEDIR% >
"%ROSBEBASEDIR%\x.tmp"
+ echo Recent Offline Revision:
+ call "%ROSBEBASEDIR%\Tools\grep.exe" Revision:
%ROSBEBASEDIR%\x.tmp|"%ROSBEBASEDIR%\Tools\cut.exe" -d " " -f 2
+ del "%ROSBEBASEDIR%\x.tmp"
+
+ call "%ROSBEBASEDIR%\Tools\svn.exe" info
svn://svn.reactos.org/reactos/trunk/reactos > "%ROSBEBASEDIR%\x.tmp"
+ echo Online HEAD Revision:
+ call "%ROSBEBASEDIR%\Tools\grep.exe" Revision:
%ROSBEBASEDIR%\x.tmp|"%ROSBEBASEDIR%\Tools\cut.exe" -d " " -f 2
+ del "%ROSBEBASEDIR%\x.tmp"
+ goto :ExitSVN
+)
+
if not "%1" == "" (
echo Unknown parameter specified. Try 'help [COMMAND]'.
goto :ExitSVN