Cornerstone问题

本文介绍了Cornerstone在执行如提交、更新等操作时如何锁定工作副本,并在遇到意外中断时如何清理未释放的锁以恢复工作副本的状态。此外,还探讨了如何通过外部定义将来自不同仓库的文件整合到一个项目中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

// Cornerstone锁

Cornerstone locks a working copy whenever it performs operations suchs as commits, updates, merges etc. Normally, these locks are released when an operation completes, regardless of the outcome of the operation.

If Cornerstone is unable to complete an operation due to interruption (e.g. the application quits unexpectedly or is force-quit) then the locks will not be released. As a result, future attempts to commit, update merge etc. will fail with an error.

The Clean command can be used to recover from such situations by cleaning up any unreleased locks in a working copy. The command is not context-sensitive and always cleans the entire working copy.

To clean a working copy:

Select the working copy to relocate in the source list.

Select the Clean item in the Working Copy menu.

Any locks held by the working copy are released and interrupted operations are completed such that the working copy has a known good state.

The Clean command does not clean a working copy's externals. You will need to use the svn cleanup command in Terminal to clean externals.




// 一个工程从不同的代码库检出所需要的文件
External Definition

Subversion allows a working copy to be constructed from folders checked out of several locations in one or more repositories through the use of external definitions.

An external definition specifies that when a folder is checked out of a repository, a sub-folder is checked out of another location. In this way, a working copy can be comprised of content from several unrelated locations.

This can be useful in a number of situations:

An organization's application may be dependent on a library shared between several projects.
Although the shared library is not located within the project's folder in the repository, it can be checked out from the shared location into the working copy using an external definition.

A project is dependent on an open source project which is managed in a publicly accessible Subversion repository.
An external definition can be used to automatically obtain the open source code into the project's working copy when checked out.

External definitions are defined using the svn:externals property. As such, they are subject to the same versioning as the folders they are defined on.

Each external definition defines the following information:

The source URL from which the external dependency will be checked out.
The revision which should be checked out.
The working copy folder (relative to the folder defining the svn:externals property) into which the external dependency will be checked out.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值