开发者

Pre-Commit Hook - Validate Filename

开发者 https://www.devze.com 2023-03-20 04:11 出处:网络
im trying to validate a filename on first commit. In the repository i have this files: change1.sql c开发者_开发技巧hange2.sql

im trying to validate a filename on first commit. In the repository i have this files: change1.sql c开发者_开发技巧hange2.sql [...]

Users cant create files whit the same filename. How can i validate this in pre-commit?

Please help.


try

$SVNLOOK info -t "$TXN" "$REPOS" > /var/log/lastcommit$TXN.log
$SVNLOOK changed -t "$TXN" "$REPOS" >> /var/log/lastcommit$TXN.log

so lastcommit100-3f.log would contain:

root
2011-05-21 09:23:48 +0000 (Sat, 21 May 2011)
31
Meldung an ERM schicken.TASK-78
U   enexus-release-management/JavaSource/org/enexus/PreCommitServlet.java
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号