我想要在深层路径中找到一个文件。 a/b/c/d.py
,是否可以使用单线程csh或bash脚本来执行以下操作?如果一个班轮是不可能的,我怎么用脚本来做呢?如何查看给定路径字符串的每个祖先目录?
# a b c directories do not exist in local working copy at the
# beginning, and they contain other files and directories
svn up a --depth empty
svn up a/b --depth empty
svn up a/b/c --depth empty
svn up a/b/c/d.py --depth empty
想象使用
someAliasOrScript a/b/c/d.py
编辑:我使用的是SVN 1.7.1,我不能更新到最新的1.9.5
svn的一个/ B/C /d.py跳过'a/b/c/d.py' 冲突摘要: 跳过的路径:1
我内新签出的工作副本根目录
> svn info
Path: .
Working Copy Root Path: xxx
URL: xxx
Repository Root: xxx
Repository UUID: xxx
Revision: xxx
Node Kind: directory
Schedule: normal
Depth: empty
Last Changed Author: xxx
Last Changed Rev: xxx
Last Changed Date: xxx
然后我试图SVN 1.9.5为好,误差
Skipped 'a/b/c/d.py'
svn: E155007: None of the targets are working copies
你试过跑'SVN更新PATH-TO-FILe'?它应该没有任何特殊的脚本。我不明白你为什么问这个问题。 – bahrep
它没有工作,所以我问了这个问题,是的,我试过了,看到更新的信息。 – Shuman