1

Suppose you have this SVN structure:

\app
\app\trunk\
\app\trunk\file1
\app\trunk\file2
\app\branches\
\app\branches\branch1\file1
\app\branches\branch2\file1
\app\branches\branch2\file2
\app\tags\

Suppose we created two new branches for two deployments/releases of our application. Over time, the files under these branches will increase the used space of our local machine where Tortoise SVN is installed. Is there a way to configure Tortoise so when we do an "SVN Update" on the "branches" folder, we just get the first level, meaning we just bring the "branch1" and "branch2" folders onto our local machine, and not the contents (ie: "file1", "file2")? And then use another SVN command to pull files for specific branch folders?

EDIT:

To elaborate a little on this, we have random files for specific tasks, that are more related to the migration/deployment, such as business requirements, testing plans, testing scripts, testing validation output. We don't want these files getting mixed into the rest of the source code because they are only relevant for the development of that branch. But we still want to track them. They will definitely increase the disk space.

4

1 回答 1

1

通常不会检出分支文件夹...您会检出其中一个分支,如果您需要不同的分支,您可以在该工作副本中进行 svn 切换,或者检出其中的第二个分支自己的工作空间。

也许您可以详细说明您要做什么?

要回答您的问题,可以只出一个目录直接子级, svn co --depth immediates http://svn.company.com/repo/branches 但这将是一件非常不标准的事情......我不确定为什么要这样做,我很好奇。

于 2013-07-28T21:02:00.960 回答