Bash SVN还原为旧文件结构

Bash SVN还原为旧文件结构,bash,svn,Bash,Svn,我们正在为SVN团队创建一个文件部署应用程序。这是我们想要做的新场景 User creates folder1 and checks it in User creates folder2 and checks it in (rev2 now) User creates folder3 and checks it in (rev3 now) 此时,用户认为需要返回到修订版1。我们也是 svn co -r 1 用户只希望看到folder1,而不希望看到folder2和folder3。这可行吗?

我们正在为SVN团队创建一个文件部署应用程序。这是我们想要做的新场景

User creates folder1 and checks it in
User creates folder2 and checks it in (rev2 now)
User creates folder3 and checks it in (rev3 now)
此时,用户认为需要返回到修订版1。我们也是

svn co -r 1 
用户只希望看到folder1,而不希望看到folder2和folder3。这可行吗?我们正在Linux命令行上创建脚本,这样我们就不会有SVN客户端的奢侈使用。只有SVN命令


谢谢你的帮助

如果用户1已经有了工作副本,并且想要返回到以前的某个版本,他必须使用
更新
,而不是
签出

>svn help up
update (up): Bring changes from the repository into the working copy.
usage: update [PATH...]

  If no revision is given, bring working copy up-to-date with HEAD rev.
  Else synchronize working copy to revision given by -r.

svn
是一个客户端。即使是命令行。如果是新签出,他们也应该只看到Folder1。您是否正在对现有的签出位置执行co?Al G-这将对现有的签出位置执行co。repo的大小为15g,一个cron脚本rsync将数据保存在别处。因此,新签出不是一个选择,因为相对而言,它的规模很大。你不清楚“认为回到修订版1”是什么意思。这些是选项(根据这一点,答案可能会有所不同):用户希望将其本地副本的状态还原为修订版1,以便以后处理==>使用
svn diff…
(请参阅Ansgar Wiechers的评论;用户希望看到存储库的旧状态,而无需对其进行操作==>使用
svn update-r 1
代替.mliebelt-Spot-on。这正是我想要的。svn update-r将删除任何不在目标上的文件并进行还原。很抱歉,我对我的问题不够清楚。