如何使用 Tortoise 在 SVN 存储库中包含父文件夹?
我有一个像这样的文件夹结构...
/main/project/web-app/versioned
/main/project/web-app/more-versioned
/main/project/web-app/unversioned
我将其镜像到我的 SVN 存储库中,没有将未版本化的文件夹
/main/project/web-app/versioned
/main/project/web-app/more-versioned
检出到 versioned
和 more-versioned
中,但我意识到真的我应该签出到 web-app
,因此我将其作为顶级文件夹签出并将其映射到我的本地 /main/project/web-app
文件夹。
我期望 SVN(或我用作客户端的 Tortoise)找出这是一个直接映射的父文件夹,并且让我能够提交 web-app 子文件夹中的所有更改,但是当我尝试这样做时,我收到一条消息,指出 web-app
中没有任何更改。
我需要做什么才能让 SVN 和/或 Tortoise 将我的本地 Web 应用程序文件夹及其内容映射到存储库,并忽略未版本控制的文件夹?
I have a folder structure like this...
/main/project/web-app/versioned
/main/project/web-app/more-versioned
/main/project/web-app/unversioned
I mirrored this in my SVN repository without the unversioned folder
/main/project/web-app/versioned
/main/project/web-app/more-versioned
I checked out into versioned
and more-versioned
, but I realised that really I should have checked out into web-app
, so I checked it out as a top level folder and mapped it to my local /main/project/web-app
folder.
I expected SVN (or Tortoise which I am using as a client) to figure out that this was a directly mapped parent folder and for me to be able to submit all changed in sub-folders of web-app, however when I try that I get a message saying nothing has changed in web-app
.
What do I need to do to get SVN and/or Tortoise to map my local web-app folder, and its contents, to the repository, and ignore the unversioned folder?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
/main/project/web-app
。这将为您提供一个名为web-app
的工作副本文件夹,其中包含versioned
和more-versioned
。unversioned
文件夹放入这个新创建的web-app
文件夹中。unversioned
(通过将web-app
上的svn:ignore
属性设置为unversioned
)。您使用的短语“签出进入”让我认为您在创建工作副本之前已有预先存在的目标文件夹。情况不应该如此。签出将为您创建文件夹。
/main/project/web-app
. This will give you a working copy folder, calledweb-app
, that containsversioned
andmore-versioned
.unversioned
folder into this newly createdweb-app
folder.unversioned
(by setting thesvn:ignore
property onweb-app
tounversioned
).Your use of the phrase "check out into" makes me think you have pre-existing target folders before you create your working copy. This should not be the case. Checking out will create the folder(s) for you.