SVN关键字configuration

SVN关键字configuration,第1张

概述SVN关键字configuration

在我之前的问题之后,我想从命令行提交时自动replaceSVN关键字。 例如

/** * $LastChangedDate$ */

会变成

/** * $LastChangedDate: 2006-07-22 21:42:37 -0700 (Sat,22 Jul 2006) $ */

我有我的〜/ .subversion /configuration文件如下(注意杂项部分enable-auto-props = yes和自动道具部分* .java值)

### This file configures varIoUs clIEnt-sIDe behaviors. ### ### The commented-out examples below are intended to demonstrate ### how to use this file. ### Section for authentication and authorization customizations. [auth] ### Set password stores used by Subversion. They should be ### delimited by spaces or commas. The order of values determines ### the order in which password stores are used. ### ValID password stores: ### gnome-keyring (Unix-like systems) ### kwallet (Unix-like systems) ### keychain (Mac OS X) ### windows-cryptoAPI (windows) # password-stores = keychain # password-stores = windows-cryptoAPI #else # password-stores = gnome-keyring,kwallet ### ### Set KWallet wallet used by Subversion. If empty or unset,### then the default network wallet will be used. # kwallet-wallet = ### ### Include PID (Process ID) in Subversion application name when ### using KWallet. It defaults to 'no'. # kwallet-svn-application-name-with-pID = yes ### ### The rest of this section in this file has been deprecated. ### Both 'store-passwords' and 'store-auth-creds' can Now be ### specifIEd in the 'servers' file in your config directory. ### Anything specifIEd in this section is overrIDden by settings ### specifIEd in the 'servers' file. ### ### Set store-passwords to 'no' to avoID storing passwords in the ### auth/ area of your config directory. It defaults to 'yes',### but Subversion will never save your password to disk in ### plaintext unless you tell it to (see the 'servers' file). ### Note that this option only prevents saving of *new* passwords; ### it doesn't invalIDate existing passwords. (To do that,remove ### the cache files by hand as described in the Subversion book.) # store-passwords = no ### Set store-auth-creds to 'no' to avoID storing any subversion ### credentials in the auth/ area of your config directory. ### It defaults to 'yes'. Note that this option only prevents ### saving of *new* credentials; it doesn't invalIDate existing ### caches. (To do that,remove the cache files by hand.) # store-auth-creds = no ### Section for configuring external helper applications. [helpers] ### Set editor-cmd to the command used to invoke your text editor. ### This will overrIDe the environment variables that Subversion ### examines by default to find this information ($EDITOR,### et al). # editor-cmd = editor (vi,emacs,notepad,etc.) ### Set diff-cmd to the absolute path of your 'diff' program. ### This will overrIDe the compile-time default,which is to use ### Subversion's internal diff implementation. # diff-cmd = diff_program (diff,gdiff,etc.) ### Set diff3-cmd to the absolute path of your 'diff3' program. ### This will overrIDe the compile-time default,which is to use ### Subversion's internal diff3 implementation. # diff3-cmd = diff3_program (diff3,gdiff3,etc.) ### Set diff3-has-program-arg to 'yes' if your 'diff3' program ### accepts the '--diff-program' option. # diff3-has-program-arg = [yes | no] ### Set merge-tool-cmd to the command used to invoke your external ### merging tool of choice. Subversion will pass 4 arguments to ### the specifIEd command: base theirs mine merged # merge-tool-cmd = merge_command ### Section for configuring tunnel agents. [tunnels] ### Configure svn protocol tunnel schemes here. By default,only ### the 'ssh' scheme is defined. You can define other schemes to ### be used with 'svn+scheme://hostname/path' URLs. A scheme ### deFinition is simply a command,optionally prefixed by an ### environment variable name which can overrIDe the command if it ### is defined. The command (or environment variable) may contain ### arguments,using standard shell quoting for arguments with ### spaces. The command will be invoked as: ### <command> <hostname> svnserve -t ### (If the URL includes a username,then the hostname will be ### passed to the tunnel agent as <user>@<hostname>.) If the ### built-in ssh scheme were not predefined,it Could be defined ### as: # ssh = $SVN_SSH ssh -q ### If you wanted to define a new 'rsh' scheme,to be used with ### 'svn+rsh:' URLs,you Could do so as follows: # rsh = rsh ### Or,if you wanted to specify a full path and arguments: # rsh = /path/to/rsh -l myusername ### On windows,if you are specifying a full path to a command,### use a forward slash (/) or a paired backslash (\\) as the ### path separator. A single backslash will be treated as an ### escape for the following character. ### Section for configuring miscelleneous Subversion options. [miscellany] ### Set global-ignores to a set of whitespace-delimited globs ### which Subversion will ignore in its 'status' output,and ### while importing or adding files and directorIEs. ### '*' matches leading dots,eg '*.rej' matches '.foo.rej'. # global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo # *.rej *~ #*# .#* .*.swp .DS_Store ### Set log-enCoding to the default enCoding for log messages # log-enCoding = latin1 ### Set use-commit-times to make checkout/update/switch/revert ### put last-committed timestamps on every file touched. # use-commit-times = yes ### Set no-unlock to prevent 'svn commit' from automatically ### releasing locks on files. # no-unlock = yes ### Set mime-types-file to a MIME type registry file,used to ### provIDe hints to Subversion's MIME type auto-detection ### algorithm. # mime-types-file = /path/to/mime.types ### Set preserved-conflict-file-exts to a whitespace-delimited ### List of patterns matching file extensions which should be ### preserved in generated conflict file names. By default,### conflict files use custom extensions. # preserved-conflict-file-exts = doc ppt xls od? ### Set enable-auto-props to 'yes' to enable automatic propertIEs ### for 'svn add' and 'svn import',it defaults to 'no'. ### automatic propertIEs are defined in the section 'auto-props'. enable-auto-props = yes ### Set interactive-conflicts to 'no' to disable interactive ### conflict resolution prompting. It defaults to 'yes'. # interactive-conflicts = no ### Section for configuring automatic propertIEs. [auto-props] ### The format of the entrIEs is: ### file-name-pattern = propname[=value][;propname[=value]...] ### The file-name-pattern can contain wildcards (such as '*' and ### '?'). All entrIEs which match (case-insensitively) will be ### applIEd to the file. Note that auto-props functionality ### must be enabled,which is typically done by setting the ### 'enable-auto-props' option. # *.c = svn:eol-native # *.cpp = svn:eol-native # *.h = svn:keywords=Author Date ID Rev URL;svn:eol-native # *.dsp = svn:eol-CRLF # *.dsw = svn:eol-CRLF # *.sh = svn:eol-native;svn:executable # *.txt = svn:eol-native;svn:keywords=Author Date ID Rev URL; # *.png = svn:mime-type=image/png # *.jpg = svn:mime-type=image/jpeg *.java = svn:keywords=LastChangedDate LastChangedRevision LastChangedBy headURL # Makefile = svn:eol-native

但是,如果我对Java源文件进行更改,然后执行svn commit $LastChangedDate$未被replace。 我错过了什么?

Clearcase – 查看何时创build视图

Verpatch.exe错误

当主版本控制不可访问时,使用单独的版本控制系统进行更改

如何设置git和maven一起工作?

你如何设置github版本控制一个两队?

获取无限的“撤消堆栈”而不提交到存储库?

有一个准系统的windows版本控制系统,只适合一个人吗?

使用TortoiseHg的资源库浏览器

我怎样才能testing我的Bash脚本在旧版本的Bash?

开源项目上git仓库的最佳实践

从http://svnbook.red-bean.com/en/1.8/svn.advanced.props.HTML#svn.advanced.props.auto :

svn:auto-props属性与运行时配置类似,可以在添加或导入文件时自动设置文件的属性。

你可以检查什么自动道具适用于一个文件或目录,然后添加到回购如下所示:

svn propget svn:auto-props -v --show-inherited-props <yourfile>

添加后检查道具有效:

svn propList -v <yourfile>

总结

以上是内存溢出为你收集整理的SVN关键字configuration全部内容,希望文章能够帮你解决SVN关键字configuration所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/langs/1154596.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-01
下一篇2022-06-01

发表评论

登录后才能评论

评论列表(0条)

    保存