[PATCH] conventient mq.bat command for Windows users

Petr Kodl petrkodl at gmail.com
Thu Oct 2 09:54:50 CDT 2008


# HG changeset patch
# User Petr Kodl <petrkodl at gmail.com>
# Date 1222959229 14400
# Node ID 440f6c2ba61b6f01a773e8415c4bb5846b497221
# Parent  f62d5661cdb5cb87c4b44549cc90cb157b71b782
conventient mq.bat command for Windows users

Allows to access underlying mercurial queue repository.
This is something that can be easily achieved with alias under sane Unix shell,
however in CMD.exe world we are stucked with batch file.

diff -r f62d5661cdb5 -r 440f6c2ba61b contrib/win32/mq.bat
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/win32/mq.bat	Thu Oct 02 10:53:49 2008 -0400
@@ -0,0 +1,10 @@
+ at ECHO off
+REM Windows equivalent of mq alias for Unix shell
+REM placing mq.bat into same folder as installed hg.exe
+REM allows to use mq commands to manipulate mercurial
+REM queue in current repository.
+setlocal
+FOR /F %%i IN ('hg root') DO SET ROOT=%%i
+hg -R %ROOT%\.hg\patches %*
+endlocal
+


More information about the Mercurial-devel mailing list