我试图在windows服务器上设置一个svn后提交钩子,这样每次提交时,它都会连接到我的bug跟踪网站上的一个现有项目。
由于没有预先为windows编写的后提交钩子(或者至少我还没有找到适合我的需要的),所以我尝试为自己编写批处理文件。
SET REPOS=%1
SET REV=%2
SET SVNLOOK="C:\Program Files (x86)\VisualSVN Server\bin\svnlook.exe"
SET PROJECT=3
%SVNLOOK% log -r %REV% "%REPOS%" > COMMIT_MSG
SET /p
在将java文件提交到eclipse中的svn时,我取消了process.But,当我再次将java文件提交到svn时,我从Eclipse中得到了以下错误。
某些资源未恢复。
svn: Error restoring text for '/path/..of/that/file'
我已经在Eclipse中尝试了Team的Cleanup选项
可能是一个愚蠢的问题:
我想还原上一次提交。我有它的哈希表。我有:
git revert <bad hash>
我得到了:
Revert "message of the last commit I am reverting"
This reverts commit 421357bf17ae...etc.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts