[SOLVED] How to find which commit broken things ?

General discussion about Universal Media Server (no support or requests)
Post Reply
User avatar
Sami32
Posts: 822
Joined: Mon Apr 11, 2016 5:09 am

[SOLVED] How to find which commit broken things ?

Post by Sami32 » Tue Jun 14, 2016 9:02 am

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 ;-)
Last edited by Sami32 on Fri Jun 17, 2016 7:41 am, edited 1 time in total.

User avatar
SubJunk
Lead Developer
Posts: 2782
Joined: Sun May 27, 2012 4:12 pm

Re: How to find which commit broken things ?

Post by SubJunk » Tue Jun 14, 2016 5:43 pm

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

User avatar
Sami32
Posts: 822
Joined: Mon Apr 11, 2016 5:09 am

Re: How to find which commit broken things ?

Post by Sami32 » Tue Jun 14, 2016 10:57 pm

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 ?!

User avatar
SubJunk
Lead Developer
Posts: 2782
Joined: Sun May 27, 2012 4:12 pm

Re: How to find which commit broken things ?

Post by SubJunk » Wed Jun 15, 2016 6:45 pm

In the UMSBuilder package, you can edit "Build for Windows.bat" and replace it with this:

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
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.

User avatar
Sami32
Posts: 822
Joined: Mon Apr 11, 2016 5:09 am

Re: How to find which commit broken things ?

Post by Sami32 » Wed Jun 15, 2016 11:09 pm

Thank you very much :D 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 ?

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
EDIT : Infidel script by the way ;)
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.

User avatar
SubJunk
Lead Developer
Posts: 2782
Joined: Sun May 27, 2012 4:12 pm

Re: How to find which commit broken things ?

Post by SubJunk » Thu Jun 16, 2016 7:53 am

Cool, I don't have Buildv2.bat, I think Skeptical maintains that package

Post Reply