注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

Computer Science

I Pressed My Words Here. Will You Read ?

 
 
 

日志

 
 

SVN Properties  

2013-02-26 11:39:29|  分类: 读书笔记 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
书名:Version Control with Subversion
豆瓣评分:8.0分(61人评价)
博主评价:
未评价很差较差还行推荐力荐
来自豆瓣读书资源
《SVN》page 55
There are some restrictions on the names you can use for properties. A property name must start with a letter, a colon (:), or an underscore (_); after that, you can also use digits, hyphens (-), and periods (.).3

svn propset
svn propedit
svn propget

svn:date
svn:author
svn:log
svn:mergeinfo

svn:mine-type
svn:eol-style         end-of-line(EOF)
" For example, the usual line-ending token used by software on the Windows platform is a pair of ASCII control characters—a carriage return (CR) followed by a line feed (LF). Unix software, however, just uses the LF character to denote the end of a line."
  • Native
  • CRLF
  • LF
  • CR
svn:keywords
  • Date
  • Revision
  • Author
  • HeadURL
  • Id
  • Header
"Or perhaps any files that match *.cpp should have svn:eol-style set to native, and svn:keywords set to Id. "

svn:excutable

svn:igonre (不会对子目录的文件生效,故要在文件所在目录下执行 svn propset svn:ignore filename .,对于多个文件,则只能使用svn propedit svn:ignore .来操作,以免后面的覆盖前面的设置。)
$ svn propset svn:ignore -F .cvsignore .
property 'svn:ignore' set on '.'
$

svn:needs-lock
带有此属性的文件,只有被l锁定(lock)的情况下才能被修改。否则,只读。
"If that property is attached to a file (regardless of its value, which is irrelevant), Subversion will try to use filesystem-level permissions to make the file read-only—unless, of course, the user has explicitly locked the file. When a lock token is present (as a result of using svn lock), the file becomes read/write. When the lock is released, the file becomes read-only again.“


svn:externals
当需要从多个版本控制仓库(Repository) checkout文件到一个项目中。可以使用此属性定义本地目录地址和仓库地址的对应关系。以便他人checkout时不做同样的操作。
 "An externals definition is a mapping of a local directory to the URL—and ideally a particular revision—of a versioned directory. "
“Keep this in mind when defining file externals. If you need the external to refer to a certain revision of a file you will not be able to modify the external. If you want to be able to modify the external, you cannot specify a revision other than the HEAD revision, which is implied if no revision is specified.“
computerScience推荐阅读:
  • SVN2012-05-11 14:07:32
  评论这张
 
阅读(5)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017