svn修订版本关键字(Subversion Rrvision keywords)

来源:互联网 发布:计算机模拟考试软件 编辑:程序博客网 时间:2024/05/16 04:48

Subversion客户端可以理解一些修订版本关键字,这些关键字可以用来代替--revision (r)的数字参数,这会被Subversion解释到特定修订版本号:

HEAD

版本库中最新的(或者是“最年轻的”)版本。

The latest (or “youngest”) revision in the repository


BASE

工作拷贝中一个条目的修订版本号,如果这个版本在本地修改了,则“BASE版本”就是这个条目在本地未修改的版本。

The revision number of an item in a working copy. If the item has been locally modified, this refers to the way the item appears without those local modifications. 


COMMITTED

项目最近修改的修订版本,与BASE相同或更早。

The most recent revision prior to, or equal to, BASE, in which an item changed. 

PREV

一个项目最后修改版本之前的那个版本,技术上可以认为是COMMITTED -1。

The revision immediately before the last revision in which an item changed. Technically, this boils down to(归结为) COMMITTED-1. 

因而可以从描述中得到,关键字PREVBASECOMMITTED只在引用工作拷贝路径时使用,而不能用于版本库URL,而关键字HEAD则可以用于两种路径类型。
As can be derived from their descriptions, the PREV, BASE, and COMMITTED revision keywords are used only when referring to a working copy path—they don't apply to repository URLs. HEAD, on the other hand, can be used in conjunction with both of these path types. 



来自http://svnbook.red-bean.com/
0 0