我们正在为具有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命令。
谢谢你的帮助。
如果User1已经有工作副本并希望返回到以前的某个修订版,则必须使用update
,而不是checkout
>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.