有時候命令行提交某個文件夾下的code時不知道會提交哪些文件,直接svn commit可能會出現多提交你未預料到的其他文件,
咋辦?
先svn status, 再svn commit.
Example :
@xalnx6:~/CTV_2K15/CTV_P2K15/TV/install$ svn status ./include/dtcp_ip ./lib/dtcp_ip/
A include/dtcp_ip
A include/dtcp_ip/dtcp_decrypt_content.h
A lib/dtcp_ip
A lib/dtcp_ip/arm-linux-gnueabihf-4.7
A lib/dtcp_ip/arm-linux-gnueabihf-4.7/libdtcp_ip.so
A lib/dtcp_ip/arm-linux-gnueabihf-4.9
A lib/dtcp_ip/arm-linux-gnueabihf-4.9/libdtcp_ip.so
@xalnx6:~/CTV_2K15/CTV_P2K15/TV/install$ svn commit ./include/dtcp_ip ./lib/dtcp_ip/ -m "[] add dtcp related file and so"
Adding include/dtcp_ip
Adding include/dtcp_ip/dtcp_decrypt_content.h
Adding lib/dtcp_ip
Adding lib/dtcp_ip/arm-linux-gnueabihf-4.7
Adding (bin) lib/dtcp_ip/arm-linux-gnueabihf-4.7/libdtcp_ip.so
Adding lib/dtcp_ip/arm-linux-gnueabihf-4.9
Adding (bin) lib/dtcp_ip/arm-linux-gnueabihf-4.9/libdtcp_ip.so
Transmitting file data ...
Committed revision 3041.