문제

How to do a post commit hook checkout a particular svn path checked in.

Right now I am only able to checkout when any file in the repository path is committed. But how to add filter to check only the particular path(/Mobile/Node/trunk) in the repository is committed.

Do I need to do the filter in pre-commit hook?

도움이 되었습니까?

해결책

I found the solution in the below link and it worked. Why is my post-commit hook conditional statement not working when I check to see if a particular branch was committed?

svnlook dirs-changed %1 -r %2 | findstr /b /i "branches/dev"

IF %ERRORLEVEL% EQU 0 (
    pushd <path-to-working-copy>
    svn update --username <repo-username> --password <repo-password>
)

in the place of "branches/dev". I replaced with my path "/Mobile/Node/trunk"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top