MadMakz
/
Misc-Tools
Archived
1
0
Fork 0

Added Batch: hg-changelog generator

This commit is contained in:
MadMakz 2012-10-17 12:16:59 +02:00
parent f33eda3277
commit da8430d9ad
1 changed files with 22 additions and 0 deletions

22
BATCH/hg-changelog.bat Normal file
View File

@ -0,0 +1,22 @@
::###################################################################
:: Einfache batch zum erstellen von Changelogs aus Mercurial (HG) #
::###################################################################
@echo off
:: Vollständiger Pfad zur hg.exe. Falls "hg" im system integriert ist kann hier einfach hg eingetragen werden.
set PathToHg=""
:: Wo soll die generierte changelog.txt gespeichert werden?
set PathToStore=""
:: Seit/Bis Revision. Min = Seit #Rev (Bsp.: 11), Max = Bis #Rev (Bsp.: 60).
set /p Min="Seit Revision: "
set /p Max="Bis Revision: "
:: Style der Ausgabe. Infos: http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html#sec:template:keyword
set Template="{rev}:{date|isodate}\n{desc}\n\n"
:: Fertig.
:: No need to edit below this line
%PathToHg% log -r %Min%:%Max% --template %Template% -P %Min% > %PathToStore%\changelog-%Min%_%Max%.txt