有时候命令行提交某个文件夹下的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.