SVN导出有修订历史记录问题

发布于 2024-07-15 21:50:24 字数 425 浏览 4 评论 0原文

我需要向我们的客户提供 SVN 存储库中单个子目录的转储以及修订历史记录(如果可能)。 我知道您可以进行转储,但我不相信您可以告诉它隔离存储库中的单个子目录。 如果我导出,我只会得到头部或单个修订版,这不是我需要的。 有没有办法实现这一点,或者只是不支持?

编辑:

我需要的是所有修订历史记录和每个文件的更改。

编辑:

看起来 rmeador 的解决方案有一个警告。 在将加载命令执行到空白存储库时,我收到有关修订版或文件不存在的神秘错误。 svnadmin load 似乎很困惑,因为“trunk”目录的创建被 svndumpfilter 过滤掉了。 因此创建“trunk/MySubDirecory”失败。 在目标空仓库上手动为“trunk”执行 svn add/commit,然后执行“svnadmin load”解决了这个问题。

I need to provide our clients with a dump of a single sub directory in our SVN repository along with the revision history if possible. I know that you can do a dump but I don't believe you can tell it to isolate a single sub directory in the repo. If I export i'll only get the head or a single revision, this is not what I need. Is there anyway to achieve this, or is this just not supported?

Edit:

What I need is all the revision history and the changes to every file.

Edit:

It looks like rmeador's solution worked with one caveat. I was getting a cryptic error about a revision or file doesn't exist when executing the load command into a blank repo. svnadmin load seemed to get confused because creation of the "trunk" directory got filtered out by svndumpfilter. Therefore creating "trunk/MySubDirecory" fails. Doing a svn add/commit manually for "trunk" on the target empty repo and then doing a "svnadmin load" solved this problem.

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

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

发布评论

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

评论(2

影子是时光的心 2024-07-22 21:50:24

可以使用 过滤转储文件以仅包含一个子目录svndumpfilter。 然后可以将这样的转储文件加载到新的存储库中,并且它将完美地工作,就好像存储库一直是该目录一样。

It is possible to filter a dump file to only contain one subdirectory using svndumpfilter. Such a dump file can then be loaded into a new repository and it will work perfectly fine, as if the repo had always been that directory.

毅然前行 2024-07-22 21:50:24

我在搜索上面的答案时发现了这个

http: //daveharris.wordpress.com/2008/08/05/svn-dump-parts-of-a-repository/

希望这对某人有帮助。

I found this while searching the answer above

http://daveharris.wordpress.com/2008/08/05/svn-dump-parts-of-a-repository/

Hope this helps someone.

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