在 Subversion 中,如何验证所有内容是否已成功加载到存储库中?

发布于 2024-09-14 02:26:59 字数 350 浏览 14 评论 0原文

我有一个 Subversion 存储库,但我如何判断它是否真的拥有应有的一切?

工作文件夹和我用来创建存储库的原始文件夹之间的文件和文件夹计数有很大不同,甚至考虑到每个存储库文件夹中 .svn 文件夹的内容。 (假设它们都是相同的,这可能无效。)它也不匹配我在不同服务器上创建的沙箱“练习”存储库。

我对 Subversion 还很陌生,所以我的显示器上仍然有那些保护性塑料标签,所以如果我问一个愚蠢的问题,请理解。我在手册或本网站上找不到任何相关信息。

导入和提交都说“完整”等,没有错误(此时),但我想找到一种方法来绝对确定所有内容都在那里。 30,000 多个文件中有超过 1.6 GB 的数据,所以我真的不想比较两个列表或盯着它。

I have got a Subversion repository, but how can I tell if it really has everything it's supposed to?

The file and folder counts are widely different between the Working Folder and the original folder I used to create the repository, even accounting for the contents of the .svn folder in each repository folder. (assuming they all are the same, which may not be valid.) It doesn't match the sandbox 'practice' repository I created on a different server, either.

I'm so new to Subversion that I still have those protective plastic tabs on my displays, so if I'm asking a silly question, please be understanding. I couldn't find anything for this in the manual or on this site.

The import and commits all say 'complete' and such, with no errors (at this point) but I'd like to find a way to be absolutely sure everything is in there. There's over 1.6 gigs of data in 30,000+ files, so I don't really want to compare two lists or eyeball it.

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

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

发布评论

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

评论(2

坦然微笑 2024-09-21 02:26:59

工作目录顶层的 svn status 会显示所有未提交的文件。至于svn import,当你运行它时,它通常会输出它导入的文件列表,这应该可以让你很好地了解它是否有效。

我会说“相信你的工具会按照他们所说的去做”(即 svn import 将导入所有这些文件,相信我),但如果你真的想确定你可以导出从您的工作副本或存储库到其他地方,即从工作副本目录:

svn export . ../test

然后在此目录和原始目录上运行 diff 实用程序。如果您尚未进行任何更改,它们应该是副本。

svn status in the top level of the working directory will show you all files that aren't committed. As for svn import, it will normally output the list of file it imports when you run it, which should give you a good idea on whether it worked.

I'd say "trust your tools to do what they say they do" (i.e. svn import will have imported all those files, trust me), but if you want to be really really sure you can export from your working copy or the repository to elsewhere, i.e. from the working copy directory:

svn export . ../test

And then run a diff utility on this directory and your original directory. They should be carbon copies if you haven't committed any changes yet.

眼藏柔 2024-09-21 02:26:59

使用 svn status 命令,您可以列出不在下面的文件版本控制。

svn status | grep -e ^?

Using the svn status command you can list the files that are not under version control.

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