2014-07-21

svn 指令小記


* To check different file names between two revisions
$svn diff -r revision1:revision2 --summarize
note that parameter '--summarize' force svn lists file names only.

ex,
user@ub1204:~/MyAnt_422$ svn diff -r 4355:4211 --summarize
M       mkandroid.sh
M       kernel_imx/build.sh
M       kernel_imx/arch/arm/mach-mx6/board-mx6q_myant.c
M       kernel_imx/drivers/video/mxc/ldb.c
M       device/fsl/sabresd_6dq/BoardConfig.mk
M       configuration

to check the different content of file, for ex, kernel_imx/drivers/video/mxc/ldb.c
$svn diff -r 4334:4316 FileName
$svn diff -r 4334:4316 kernel_imx/drivers/video/mxc/ldb.c


* To show specified file content of specified revision
svn cat -r revision FileName
svn cat -r revision FileName > redirect.txt

ex,
svn cat -r 4310 kernel_imx/drivers/video/mxc/ldb.c > temp2.txt





















沒有留言:

張貼留言