This is an automated email from the ASF dual-hosted git repository.

chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new 7210234a1 [KYUUBI #4187][FOLLOWUP] Windows build-info script supports 
revision time
7210234a1 is described below

commit 7210234a1c94ee7d822f9b9923e5bb4e62479bb0
Author: sychen <[email protected]>
AuthorDate: Mon Jul 10 12:27:22 2023 +0800

    [KYUUBI #4187][FOLLOWUP] Windows build-info script supports revision time
    
    ### _Why are the changes needed?_
    followup : #4187
    
    ### _How was this patch tested?_
    - [ ] Add some test cases that check the changes thoroughly including 
negative and positive cases if possible
    
    - [ ] Add screenshots for manual tests if appropriate
    
    - [ ] [Run 
test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests)
 locally before make a pull request
    
    Closes #5032 from cxzl25/PR_4187_followup.
    
    Closes #4187
    
    f0b6c89df [sychen] cmd revision_time
    
    Authored-by: sychen <[email protected]>
    Signed-off-by: Cheng Pan <[email protected]>
---
 build/kyuubi-build-info.cmd | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/build/kyuubi-build-info.cmd b/build/kyuubi-build-info.cmd
index 7717b48e4..d9e8e6c6a 100755
--- a/build/kyuubi-build-info.cmd
+++ b/build/kyuubi-build-info.cmd
@@ -36,6 +36,7 @@ echo kyuubi_trino_version=%~9
 echo user=%username%
 
 FOR /F %%i IN ('git rev-parse HEAD') DO SET "revision=%%i"
+FOR /F "delims=" %%i IN ('git show -s --format^=%%ci HEAD') DO SET 
"revision_time=%%i"
 FOR /F %%i IN ('git rev-parse --abbrev-ref HEAD') DO SET "branch=%%i"
 FOR /F %%i IN ('git config --get remote.origin.url') DO SET "url=%%i"
 
@@ -44,6 +45,7 @@ FOR /f %%i IN ("%TIME%") DO SET current_time=%%i
 set date=%current_date%_%current_time%
 
 echo revision=%revision%
+echo revision_time=%revision_time%
 echo branch=%branch%
 echo date=%date%
 echo url=%url%

Reply via email to