[SOLVED] How to find which commit broken things ?
[SOLVED] How to find which commit broken things ?
Hello, i need help from the skilled ones !
I want to find which commit broken CoverArt(ID3 Tag) parsing between UMS 6.0.1 and 6.1.0
How can i do that ?
Thanks in advance for the helpful souls
I want to find which commit broken CoverArt(ID3 Tag) parsing between UMS 6.0.1 and 6.1.0
How can i do that ?
Thanks in advance for the helpful souls

Last edited by Sami32 on Fri Jun 17, 2016 7:41 am, edited 1 time in total.
Re: How to find which commit broken things ?
If you use Windows you can use UMSBuilder to build UMS, you can modify it to stop it automatically pulling the latest version, then pick which commit you want to build using TortoiseGit. That's pretty much how I do it
Re: How to find which commit broken things ?
Thanks for the tip, i didn't know about TortoiseGit, but i need the code source for UMS 6.0.1 ? i have only the executable, so where could i get the source ?
Or i need to take the actual source code and take off all the commits since 6.0.1 ? anyway i don't know how to do that...
How i need to proceed ?
EDIT : I just find now how to that on Github
but i don't know yet how to modify it to stop it automatically pulling the latest version...
P.S. Could be possible to detect automatically the subjets beginning with http:// or have BUY and delete all these SPAMs ?!
Or i need to take the actual source code and take off all the commits since 6.0.1 ? anyway i don't know how to do that...
How i need to proceed ?
EDIT : I just find now how to that on Github

P.S. Could be possible to detect automatically the subjets beginning with http:// or have BUY and delete all these SPAMs ?!
Re: How to find which commit broken things ?
In the UMSBuilder package, you can edit "Build for Windows.bat" and replace it with this:
and that will make it build the code in the "Code" folder without updating it first. Then if you have TortoiseGit installed, you can right-click the Code folder, go to TortoiseGit in the context menu, then in the submenu click "Show log". Then you can scroll through that list and when you see the commit you want to build, right-click it in the list and click "Switch/checkout to this..." and click ok. Now you're at that commit. If you just want a specific version then instead of going to "Show log" you can go to "Switch/Checkout..." and click the "tag" option in that window, then select the version you want.
Code: Select all
@ECHO OFF
SET JAVA_HOME=%CD%\JDK-1.7.80
SET M2_HOME=%CD%\Maven-3.2.5
SET M2=%M2_HOME%\bin
Set PATH=%M2%;%JAVA_HOME%\bin;%PATH%
IF EXIST "%CD%\Code" GOTO MAVEN
:GIT_CLONE
CALL java -jar jgit-cli.jar clone https://github.com/UniversalMediaServer/UniversalMediaServer.git Code
GOTO MAVEN
:MAVEN
CD Code
CALL mvn external:install
rem CALL mvn clean
call mvn -P windows package
CD..
MOVE /Y code\target\UMS*-setup.exe "%CD%\UMS.exe"
rd /s/q "code\target\antrun"
rd /s/q "code\target\archive-tmp"
rd /s/q "code\target\classes"
rd /s/q "code\target\generated-sources"
rd /s/q "code\target\generated-test-sources"
rd /s/q "code\target\maven-archiver"
rd /s/q "code\target\surefire-reports"
rd /s/q "code\target\test-classes"
del /q "code\target\extra.nsh"
del /q "code\target\project.nsh"
del /q "code\target\UMS.exe"
del /q "code\target\ums.jar"
del /q "code\target\ums-*.jar"
pause
Re: How to find which commit broken things ?
Thank you very much
i will try this today.
But i was trying to do it with Buildv2.bat, that far more difficult for me to understand, because i thinked that maybe it will be even more easy without the need to install again one more software ?
Do you know what i need to change in Buildv2.bat to make it working ?
EDIT : Infidel script by the way 
viewtopic.php?f=25&t=1782&p=25627&hilit ... der#p27285

But i was trying to do it with Buildv2.bat, that far more difficult for me to understand, because i thinked that maybe it will be even more easy without the need to install again one more software ?
Do you know what i need to change in Buildv2.bat to make it working ?
Code: Select all
:clone
git clone https://github.com/UniversalMediaServer/UniversalMediaServer.git
cd "%source%"
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
cd ..
exit /b

viewtopic.php?f=25&t=1782&p=25627&hilit ... der#p27285
Last edited by Sami32 on Fri Jun 17, 2016 7:53 am, edited 2 times in total.
Re: How to find which commit broken things ?
Cool, I don't have Buildv2.bat, I think Skeptical maintains that package