如何从 trac 树下载 svn 档案? [英] How to download an svn archive from a trac tree?
问题描述
有一个项目的 svn 服务器现已关闭,但 trac 浏览器仍然可用.有没有一种简单的方法可以像访问 svn 服务器一样访问该树?最好我只是通过 git-svn
下载整个 repo,但是当前修订版的 wget
解决方案也很棒(后者的麻烦在于简单地爬行将下载包括包裹在 html 中的 trac).
There is a project which had an svn server that is down now, but the trac-browser is still available. Is there a simple way to acces that tree as if it was an svn server? Preferably I'd just donwload the whole repo via git-svn
, but a wget
solution for the current revision would also be great (the trouble with the latter is that simply crawling will download including trac's wrapped around html).
推荐答案
根据 Trac 服务器的配置,您可能会在源浏览器的底部找到主干目录以及分支和标签子目录的zip"链接.这将为您提供给定修订版中该树的 zip 存档.
Depending on the Trac server configuration, you may find a "zip" link at the bottom of the source browser for the trunk directory and the branches and tags subdirectories. That will give you a zip archive of that tree at the given revision.
我知道我看到有人编写了一个工具来从 Trac 浏览器下载源代码树,但我似乎找不到它.可能是在 trac-dev 邮件列表中的帖子.
I know I've seen someone write a tool to download a source tree from the Trac browser, but I can't seem to find it. Might have been a post to the trac-dev mailing list.
这篇关于如何从 trac 树下载 svn 档案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!