第一次checkout文件,tortoisesvn会把用户名密码保存起来供以后使用。可是如果用的是多个svn的服务器,从另外一个svn服务器上checkout文件的时候可能会有问题。直接报403错误。
网上查了一下,有说要删除C:\Documents and Settings\[user]\Application Data\Subversion里面的文件,俺删除了也不管用。
其实很简单。
鼠标右键,tortoiseSVN,settings,saved data,点一下authentication data后边的clear即可。
标签归档:subversion
jquery的find的filter的区别
filter will select a certain subset (zero or more) of the already
selected elements.
jquery的filter将在一组已经选取的元素里面选择
find will select a set of (zero or more) elements that are descendants
of the already selected elements.
jquery的find将在一组已经选取的元素的子节点里面选择
Here is an example:
示例如下
<div class="peanuts"> <p class="elephants"></p> </div> <div class="elephants"> <p></p> </div>
$(‘div’).filter(‘.elephants’); // <-- selects the second div, because it has class="elephants" $('div').find('.elephants'); // <-- selects the first paragraph, because it has class="elephants" * Note that these two examples are very simple and would probably be better written as ... $('div.elephants'); ... and ... $('div .elephants');
subversion “Propfind 302 found” error
svn服务出了问题,可以checkout,已经存在的文件,可以修改,提交,但是新加的文件add后不能commit。
报错说什么”Propfind xxx 302 found”
Adding: D:\workspace\test\New Text Document.txt
Error: Commit failed (details follow):
Error: PROPFIND request failed on ‘/svn/test/New%20Text%20Document.txt’
Error: PROPFIND of ‘/svn/test/New%20Text%20Document.txt’: 302 Found (http://svn.test.com)
google了一下,说是启用了ErrorDocument 404 handler 就会遇到这个问题,需要禁用Subversion目录特殊的404 error handling,
解决方法是添加
ErrorDocument 404 default
到svn的Location立面
改了之后,httpd.conf里面的svn配置大概如下:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
# Uncomment this to enable the repository,
DAV svn
# Set this to the path to your repository
SVNParentPath /data/svn_repository/
# The following allows for basic http authentication. Basic authentication
# should not be considered secure for any particularly rigorous definition of
# secure.
# to create a passwd file #按下面的步骤创建Apache用户验证文件
# # rm -f /etc/apache2/dav_svn.passwd
# # htpasswd2 -c /etc/apache2/dav_svn.passwd dwhedon
# New password:
# Re-type new password:
# Adding password for user dwhedon
#
# Uncomment the following 3 lines to enable Basic Authentication
AuthType Basic
AuthName “Subversion Repository”
AuthUserFile conf/extra/svnpasswd.file
# Uncomment the following line to enable Authz Authentication
AuthzSVNAccessFile conf/extra/dav_svn.authz
# The following three lines allow anonymous read, but make
# committers authenticate themselves.
#
#允许匿名访问,不允许Commit,不能与AuthzSVNAccessFile同时使用
Require valid-user
#
ErrorDocument 404 default