在 Subversion 中,如何验证所有内容是否已成功加载到存储库中?
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
工作目录顶层的 svn status 会显示所有未提交的文件。至于
svn import
,当你运行它时,它通常会输出它导入的文件列表,这应该可以让你很好地了解它是否有效。我会说“相信你的工具会按照他们所说的去做”(即 svn import 将导入所有这些文件,相信我),但如果你真的想确定你可以导出从您的工作副本或存储库到其他地方,即从工作副本目录:
然后在此目录和原始目录上运行 diff 实用程序。如果您尚未进行任何更改,它们应该是副本。
svn status
in the top level of the working directory will show you all files that aren't committed. As forsvn 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: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.
使用 svn status 命令,您可以列出不在下面的文件版本控制。
Using the svn status command you can list the files that are not under version control.