简体   繁体   English

在2个日期之间提交的SVN CheckOut文件

[英]SVN CheckOut files which are committed between 2 dates

How we can checkout the files which are committed between 2 dates. 我们如何检出两个日期之间提交的文件。

I'm getting the error "svn: E195008: Revision range is not allowed" when i'm using the below option 当我使用以下选项时,出现错误“ svn:E195008:不允许修订范围”
svn co URL -r {2016-04-01}:{2016-07-22} svn co URL -r {2016-04-01}:{2016-07-22}

and we can see the log messages between 2 dates svn log URL -qv -r {2016-07-01}:{2016-07-21} like this what is the option we need to use to CO the files which are committed between 2 dates. 并且我们可以看到两个日期之间的日志消息svn log URL -qv -r {2016-07-01}:{2016-07-21}像这样,我们需要使用什么选项来CO在两次之间提交的文件2个日期。

You can't checkout 您无法结帐

  • Separate files (URL must point to directory) 单独的文件(URL必须指向目录)
  • Only "modified in revision" files, because each SVN revision is slice of history of all files, existing in repo 仅“在修订中修改”文件,因为每个SVN修订都是存储在回购中的所有文件的历史记录的一部分
  • Range of revision, because each revision is separate independent entity 修订范围,因为每个修订都是独立的独立实体

Beside the fact, that I can't see any good reasoning for such file-set as physical object ( logical object is just svn ls -qv with some post-processing) and question isn't related to VisualSVN Server (only to pure core SVN) I can't imagine, why do you not read docs?! 除了事实,我看不到任何文件集作为物理对象的合理理由( 逻辑对象只是svn ls -qv并带有一些后期处理),并且问题与VisualSVN Server不相关(仅与纯核心有关) SVN)我无法想象,为什么不阅读文档? Even svn help must show you required steps with just some actions ( TBT!!! written from mind) 即使是svn help必须通过一些操作即可向您显示所需的步骤( TBT !!!记述自头脑)

  1. Get list of all affected files and add it to changelist (by hand somehow): svn ls -v N:M ... + svn cl MYFILES --targets LIST (save list of files from ls /with numerical revision at least for START-REV/ to file, clean it, use file as source for creating changelist) 获取所有受影响文件的列表,并将其添加到变更列表(以某种方式手动添加): svn ls -v N:M ... + svn cl MYFILES --targets LIST (保存ls的文件列表/至少对于START具有数字修订) -REV /到文件,将其清理,使用文件作为创建变更列表的源)
  2. svn co BASE/URL --depth 'empty' (get empty Working Copy) svn co BASE/URL --depth 'empty' (获取空的工作副本)
  3. svn up -r M --set-depth 'infinity' -cl MYFILES (update /from nothing/ only files in changeslist, using END-REV as base) svn up -r M --set-depth 'infinity' -cl MYFILES (使用END-REV作为基础,仅从更改列表中的文件更新/从无内容/仅更新)

HTH 高温超导

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM