java - 如何使用提交时间 checkout 文件

标签 java svnkit

我写了一个使用 SVNKit 的 java 程序。 checkout 文件的时间戳是系统时间,而不是提交时间。如何使用提交时间 checkout 文件。

最佳答案

ISVNOptions#setUseCommitTimes() .从那里:

Enables or disables the commit-times option. The commit-times option makes checkout/update/switch/revert operations put last-committed timestamps on every file they touch.

This option corresponds to the 'use-commit-times' option that can be found in the SVN's config file under the [miscellany] section.

关于java - 如何使用提交时间 checkout 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8382595/

相关文章:

java - 双数据类型格式化

java - SVNKit 内存泄漏 : SVNLog. run() 创建永远不会被杀死的线程

java - 如何获取 SVN 存储库的 "realm"值?

java - 在 SVNKit 中解析 URL

java - 在 spring-boot 中将 hashmap 转换为 json 字符串

java - 我怎样才能把它变成 Java 正则表达式?

java - FileWriter方法只写最后一行

java - 如何使用软件(不是 Zxing)在 Android 上可靠地解码 PDF417 条形码?

java - svnkit:如何以编程方式将 'svn status' 的精确结果作为字符串获取?

java - 在没有 Atlassian Fisheye 的情况下以编程方式检索 SVN 提交