Phi*_*ing 4 svn windows command-line svn-checkout
我正在尝试检查在修订版401中从我的SVN中删除的项目.该项目现已不存在,并且已完全替换为重写代码,但我想要结帐以便我可以参考在重写时处理旧代码的一小部分.
据我所知,这应该像检查旧路径和最后一个好的修订版(400)一样简单.但是当我尝试这个时,我得到一个错误,因为它正在尝试使用最新版本:
C:\Users\couling\workspace>svn checkout --revision=400 https://svn.domain.com/repos/trunk/OldProject
Error validating server certificate for 'https://svn.domain.com:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: svn.domain.com
- Valid: from Tue, 11 Dec 2012 15:03:33 GMT until Wed, 11 Dec 2013 15:03:33 GMT
- Issuer: Personal Certificate, Foomy Whatsit, Blah, Blah, GB
- Fingerprint: 01:02:03:04:05:06:07:08:09:10:11:12:13:14:15:16:17:18:19:20
(R)eject, accept (t)emporarily or accept (p)ermanently? t
svn: '/repos/!svn/bc/1418/trunk/OldProject' path not found
C:\Users\couling\workspace>
Run Code Online (Sandbox Code Playgroud)
我可以通过Web浏览器轻松浏览到修订版400的文件夹,因此在最坏的情况下我仍然可以查看代码,但我更愿意为我的IDE提供所有源文件的副本.
作为参考,我正在使用此版本的客户端:
C:\Users\couling\workspace>svn --version
svn, version 1.6.16 (r1073529)
compiled Mar 8 2011, 11:47:41
Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
Run Code Online (Sandbox Code Playgroud)
如何查看现已删除的文件夹?
编辑
为了消除疑问....上面的checkout命令使用语法,--revision=400因为这恰好是我在发布之前编写命令的最后一种方式.这是有效的语法,因为svn命令使用与GNU getopt_long兼容的库.我使用的版本和以下都是同义词-r 400 -r400 --revision 400 --revision=400.getopt库将不同的变体都缩减为单个结果.
因为它发生的原因是我在发布之前使用的最后一个命令是我经历了所有变体以确认它与此问题无关.他们都有相同的结果.
svn co --depth=infinity https://svn.domain.com/repos/trunk/OldProject@400
请参阅"SVNBook | Peg和Operative Revisions".
| 归档时间: |
|
| 查看次数: |
783 次 |
| 最近记录: |