SVN外部将源更改为目标目录

发布于 2024-07-29 16:15:15 字数 434 浏览 6 评论 0 原文

我使用的是 svn 1.6,是否可以有:?

source directory
shared\code\depends\make1.3
- contains file make.1.3

target directory
trunk\make\
- i want make.1.3 in trunk\make\

有一个从上述源外部到目标的 SVN
我尝试过

/shared/code/depends/make1.3 make

当我进行更新时出现错误:

 External failed, working copy is locked, please execute cleanup command.  

执行清理后,仍然是同样的问题。

I am using svn 1.6, is it possible to have: ?

source directory
shared\code\depends\make1.3
- contains file make.1.3

target directory
trunk\make\
- i want make.1.3 in trunk\make\

Have an SVN external from the above source to the target
I have tried

/shared/code/depends/make1.3 make

When i do an update i get error:

 External failed, working copy is locked, please execute cleanup command.  

After executing cleanup, still the same problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

成熟的代价 2024-08-05 16:15:15

该问题可能与您想要更改不相交的路径(外部引用的路径)这一事实有关,而您可能只从另一路径完成了最后一次提交。

正如 Svnbook 中提到的

Subversion 仍然只在非不相交的工作副本上真正运行。
因此,例如,如果您想要提交在一个或多个外部工作副本中所做的更改,则必须在这些工作副本上显式运行 svn commit — 在主工作副本上提交不会递归到任何外部工作副本.

您可以从新的结账中尝试相同的操作。
您必须确保不要删除/更新 make1.3 目录的内容,否则您将需要 svn revert 到原始内容(请参阅此 所以答案

The issue could be related to the fact you want to make change to a disjoint path (the one referenced by your external), whereas you may have only done your last commit from another path.

As mentioned by the Svnbook

Subversion still truly operates only on non-disjoint working copies.
So, for example, if you want to commit changes that you've made in one or more of those external working copies, you must run svn commit explicitly on those working copies—committing on the primary working copy will not recurse into any external ones.

You could try the same manip from a fresh checkout.
You must be sure to not remove/update the content of your make1.3 directory, otherwise you would need to svn revert to the original content (see this SO answer)

芸娘子的小脾气 2024-08-05 16:15:15

我找到了答案,要在单个文件上使用外部文件,请使用从源到目标目录的使用::

source directory
shared\code\depends\make1.3
- contains file make.1.3

target directory
trunk\make\
- i want make.1.3 in trunk\make\

上面

/shared/code/depends/make1.3/filename.txt filename.txt

的外部命令会将单个文件放入 trunk\make\filename.txt

I figured out the answer, to use externals on a single file use from source to target directory use:

source directory
shared\code\depends\make1.3
- contains file make.1.3

target directory
trunk\make\
- i want make.1.3 in trunk\make\

:

/shared/code/depends/make1.3/filename.txt filename.txt

the above external command will put the single file in trunk\make\filename.txt

烟织青萝梦 2024-08-05 16:15:15

谢谢你。 只是想补充一点,直到 Subversion v1.6.6(在发布时尚未发布)之前,存在一个错误,该错误阻止二进制文件以指定的 dnndeveloper 方式单独处理。

Thanks for this. Just thought to add that until Subversion v1.6.6 (as yet unreleased at time of posting) there is a bug which prevents binaries from being handled singly in the manner specified dnndeveloper.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文