svn diff fileURL > patchName.patch (打diff包)
Svn changelist是一个对本地副本库修改的文件进行分组的命令,他可以作为其它命令的参数,但是它仅仅是本地副本库的一个分组,不能在库中传播与其它用户分享。
C:\Documents and Settings\ >svn help changelist
changelist (cl): Associate (or dissociate) changelist CLNAME with the named file
s.
usage: 1. changelist CLNAME TARGET...
Valid options:
使用实例:
1、工作副本下
$ svn status
M integer.c
M mathops.c
$
2、使用svn changelist
$ svn changelist math-fixes integer.c mathops.c
Path 'integer.c' is now a member of changelist 'math-fixes'.
Path 'mathops.c' is now a member of changelist 'math-fixes'.
$ svn status
--- Changelist 'math-fixes':
M integer.c
M mathops.c
$
3、changelist添加删除
$ svn changelist --remove button.c
Path 'button.c' is no longer a member of a changelist.
$ svn changelist ui-fix button.c
Path 'button.c' is now a member of changelist 'ui-fix'.
$
$ svn changelist ui-fix button.c
svn: warning: Removing 'button.c' from changelist 'math-fixes'.
Path 'button.c' is now a member of changelist 'ui-fix'.
$ svn status
--- Changelist 'ui-fix':
button.c
--- Changelist 'math-fixes':
M integer.c
M mathops.c
$
4、changelist作为参数
$ svn diff --changelist math-fixes
Index: integer.c
===================================================================
--- integer.c (revision 1157)
+++ integer.c (working copy)
…
Index: mathops.c
===================================================================
--- mathops.c (revision 1157)
+++ mathops.c (working copy)
…
$