나는 최근 http://www.noah.org/engineering/olden/svn_directory_lock.html
해당 게시물에서 특정 파이썬 스크립트가 과잉이다 영감 솔루션이이 문제를 해결,하지만 난에 대한 사전 커밋 후크에 다음을 넣어 내 repsoitory : 그래서 지금
#!/bin/sh
err() { echo ${1+"[email protected]"} 1>&2; } # stderr is sent to user
REPOS="$1"
TXN="$2"
SVNLOOK=/usr/bin/svnlook
# Make sure there is a log message.
#
$SVNLOOK log -t "$TXN" "$REPOS" | grep -q "[a-zA-Z0-9]"
if [ $? -eq 1 ]
then
err "ERROR: Must enter a log message for this commit!"
exit 1
fi
# Usage: locked_dir dir [transaction_id]
locked_dir()
{
if [ -z "$2" ]; then _tid=""; else _tid="-t $2"; fi
$SVNLOOK propget $_tid "$REPOS" lock "$1" >/dev/null 2>&1
if [ $? -eq 0 ]; then echo true; else echo false; fi
}
for d in $($SVNLOOK dirs-changed -t "$TXN" "$REPOS")
do
locked_before=$(locked_dir $d)
locked_tx=$(locked_dir $d "$TXN")
if [ $locked_before = $locked_tx -a $locked_tx = true ]
then
err "ERROR: Directory $d is locked. Delete lock before you commit."
exit 1
fi
done
# All checks passed, so allow the commit.
exit 0
, 당신은 단순히 "svn의 propset"를 사용하여 잠 그려는 디렉토리의 "잠금"속성을 만들 것을 약속 할 수 있습니다.
http://stackoverflow.com/questions/4064229/svn-lock-branch – easel