Can svn command line commit like tortoise commit

to give a little background, I need to synchronize between folder X with svnfolder Y. Folder X is the leading one, therefore, after synchronizing folder Y, it contains the exact files / folders in the form of folder X (except for folder Y it contains the folder .svn).

After synchronization, I want to pass Y through the command line. I want all new files to be executed, and all files that have been deleted, as part of the synchronization deleted in the SVN repository.

This can be done easily using the svn tortoise by checking the include unversioned files check box, but I can do this through the command line.

Is there a flag that can be used to force commit (similarly to tortoisesvn), so I donโ€™t need to use the svn add and svn delete commands (since I donโ€™t have a list of files added / deleted you cannot add / remove).

Thanks for the help,

+3
source share
1 answer

If you can do this on Linux (or, presumably, CygWin), you can get this behavior as follows:

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

Source: https://habr.com/ru/post/1751056/


All Articles