SVN 不再在所有子文件夹中写入 .svn?

发布于 2024-12-29 18:25:55 字数 132 浏览 0 评论 0原文

我最近将 SVN 客户端从 1.6.9 升级到 1.7.2,转换为新格式后,我注意到每个子文件夹不再有 .svn。对于我的特定配置来说这不是很方便。

有没有办法撤消此操作或恢复到旧行为,即 CO 中的每个子文件夹都有一个 .svn ?

I recently upgraded my SVN client from 1.6.9 to 1.7.2 and after converting to the new format, I noticed that there is no longer a .svn every sub-folders. For my particular configuration this is not very convenient.

Is there a way to undo this or revert to the old behavior where each subfolder from a CO would have a .svn ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

离旧人 2025-01-05 18:25:56

让 subversion 在每个目录中写出 .svn 目录的最直接方法是将你的 subversion 降级到 1.7 系列之前的版本。 Subversion 1.6.23 是最后一个拥有你想要的行为。

另一种与 Subversion 1.7 及更高版本一起使用的方法是单独检查项目的每个子目录。例如,如果您有一个具有如下目录结构的项目:

project
`- bin
`- etc

您可以通过执行以下操作来检查它:

mkdir project
cd project
svn co svn+ssh://[email protected]/src/project/bin
svn co svn+ssh://[email protected]/src/project/etc

仅当您的目录很少且它们的组织很浅时,这才是可以容忍的。

否则,降级到较旧的颠覆是您最好的选择。

The most straightforward way to get subversion to write out .svn directories in every directory is to downgrade your subversion to a version before the 1.7 series. Subversion 1.6.23 was the last version to have the behavior you want.

Another way to accomplish this that will work with Subversion 1.7 and later is to individually check out each subdirectory of your project. For example, if you had a project with a directory structure like:

project
`- bin
`- etc

You could check it out by doing something like:

mkdir project
cd project
svn co svn+ssh://[email protected]/src/project/bin
svn co svn+ssh://[email protected]/src/project/etc

This is only tolerable if you have few directories and their organization is shallow.

Otherwise, downgrading to an older subversion is your best bet.

甚是思念 2025-01-05 18:25:55

Subversion 1.7 完全重写了 Subversion 的工作副本元数据管理系统,代号为 WC-NG。旧系统是 Subversion 最早编写的部分之一,随着时间的推移,它变得难以维护和扩展。 WC-NG 旨在立即提供性能改进,同时还支持许多未来的功能增强。

Subversion 1.7 中引入的更改的一个关键功能是将工作副本元数据存储集中到单个位置。 Subversion 1.7 工作副本在工作副本的根目录中只有一个 .svn 目录,而不是在工作副本的每个目录中都有一个 .svn 目录。该目录包括(除其他外)一个 SQLite 支持的数据库,其中包含 Subversion 该工作副本所需的所有元数据。

尽管数据以结构化格式存储,但数据之间的关系很复杂。我们强烈反对外部工具修改此数据库中保存的数据,因为此类修改可能会导致工作副本损坏。

在此处了解更多信息。

Subversion 1.7 features a complete re-write of the working copy metadata management system of Subversion, code named WC-NG. The old system was one of the first parts of Subversion written, and over time had grown difficult to maintain and extend. WC-NG is intended to provide an immediate performance improvement, while also enabling many future feature enhancements.

A key feature of the changes introduced in Subversion 1.7 is the centralization of working copy metadata storage into a single location. Instead of a .svn directory in every directory in the working copy, Subversion 1.7 working copies have just one .svn directory—in the root of the working copy. This directory includes (among other things) an SQLite-backed database which contains all of the metadata Subversion needs for that working copy.

Even though the data is stored in a structured format, the relationships between the data are complex. We highly discourage external tools from modifying the data held in this database, as such modification is likely to result in working copy corruption.

Read more here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文