@echo off
set page_path=%cd%\xxx
echo 本次提交修改文件信息
echo -------------------------------------------------
svn status %page_path%
echo -------------------------------------------------
set YYYYmmdd=%date:~0,4%年%date:~5,2%月%date:~8,2%日
set hhmiss=%time:~0,2%点%time:~3,2%分%time:~6,2%秒
set /p svn_message=%YYYYmmdd%_%hhmiss%提交内容(日志):
:CiSvnPakge
set /p svn_ci=是否提交%page_path%文件夹(y/n):
if "%svn_ci%" == "y" (
svn ci %page_path% -m %YYYYmmdd%_%hhmiss%提交内容:%svn_message%
goto CommitEnd
) else (
if "%svn_ci%" neq "n" (
echo 输入错误!请重新输入!
goto CiSvnPakge
)
)
:CommitEnd
echo 提交完成!
:end
echo svn上传成功!
echo. & pause
svn显示文件status填写日志并上传到工作目录的脚本
最新推荐文章于 2022-05-24 17:16:29 发布