本文介绍了Subversion分支没有规范的目录结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Subversion存储库,我想创建一个分支,但是该存储库不具有 / trunk
, /分支和 / tags
-它只包含 / trunk
中的所有内容
I have a subversion repository, and I would like to create a branch, but the repository does not have the canonical directory structure of /trunk
, /branches
and /tags
- it just has everything that should be in /trunk
, in the root folder.
是我搞砸了,还是有某种方法可以纠正目录结构(或在现有目录结构中创建分支)?
Am I screwed, or is there some way to correct the directory structure (or to create a branch within the existing directory structure)?
推荐答案
尝试以下方法
$ svn mkdir $REPO/{trunk,tags,branches}
$ for f in $(svn ls $REPO |grep -v 'trunk/$\|tags/$\|branches/$'); do
` svn mv "$f" $REPO/trunk
` done
$ svn cp $REPO/trunk $REPO/branches/branch0
这篇关于Subversion分支没有规范的目录结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!