SVN Delete using template?

I migrate the VSS repository to SVN and inadvertently included all the _vti_cnf, * .scc files in the first registration. I would like to remove them from SVN. (Not always, of course, only in HEAD). This application is quite large, and the search and deletion of these files in a folder by folder will be performed forever.

Suggestions? There must be some obvious way to do this, but the proximity of the weekend is interfering with my higher brain functions.

+4
source share
5 answers

Jonas' answer should be well reflected. Perhaps you are having conflicts because you are deleting them at the file system level, bypassing Subversion control?

If you can use TortoiseSVN , the following works for me (= I get the necessary commands in the context menu):

  • Open the search box
  • Search for all junk files
  • Select them from the list.
  • Right click
  • Choose TortoiseSVN> Delete
  • Commit changes

Done!

Usually a disclaimer when providing recommendations for version control, be careful backups, I do not take any responsibility, etc.

+4
source

On the Windows command line, you can perform a recursive search for files using the "for" and call "svn delete" for each corresponding file,

C:\> for /r %i in (abc*def.sql) do svn delete %i 

NB: remember that in the batch file you will need to replace% i with %% i.

To find out about all the other flags that you can use with "for" (this is a Swiss army knife for searching and parsing), use the help command,

 C:\> help for 
+3
source

If you are using Linux or Mac OS, you can go with find , for example

 $ find . -type d -name "_vti_cnf" -exec svn delete {} \; 

I am no longer an SVN user (and never used VSS), so you can change the command line first and / or try with -print .

+2
source

Can't you just grep (or some other operation that finds the files) * .scc files in the extracted version, delete them and then commit them?

+1
source

Or use PowerShell:

 Foreach ($file in Get-Childitem * -include "*.txt") { svn del $file.name } 

where * .txt is a wildcard and * indicates the current directory where to look for files to be deleted

0
source

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