简体   繁体   中英

can svn command line commit be like tortoisesvn commit

to give a little background, i am required to perform a synch between a folder X with a svnfolder Y. Folder X is the master so after the synch folder Y contains the exact same files/folders as folder X (apart from folder Y contains a .svn folder).

After the synch i want to commit Y through the command line. I want all new files to be commited and all files that were deleted as part of the synch deleted on the SVN repo.

This can be done easily using tortoise svn by checking the include unversioned files checkbox however i can seem to do it through the command line.

Is there a flag that can be used to force the commit (similar to doing on tortoisesvn) so I dont have to use the svn add & svn delete commands (as i dont have a list of the files being addedd/removed so cant do the add/delete).

Thanks for you help,

If you can do it on Linux (or, presumably, CygWin), you can get that behaviour like this:

svn status | grep '^!' | awk '{print $2}' | xargs svn rm
svn status | grep '^?' | awk '{print $2}' | xargs svn add
svn commit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM