May 18, 2009

Deleting The Dreaded _vti_cnf Folders Created by FrontPage

-- if you want to only see the folders named _vti_cnf:
get-childitem -recurse -force -filter "_vti_cnf"

-- remove all folders named _vti_cnf with prompt:
Get-ChildItem $RootDir "_vti_cnf" -force -recurse | Remove-Item

-- remove all folders named _vti_cnf without prompt:
Get-ChildItem $RootDir "_vti_cnf" -force -recurse | Remove-Item -recurse
Get-ChildItem $RootDir ".svn" -force -recurse | Remove-Item -recurse

Removing .svn files with TortoiseSVN

Once in awhile I run into working copy folders from Subversion that I know longer want under version control. I want to “unversion” them.  Usually I do some kind of find and delete on all the .svn related folders but there is an easier way if you have TortoiseSVN installed.

You should be familiar with the “Export” command.  This will make a copy of the files in a new location without all those pesky .svn folders.   If you want to ‘unversion’ something but don’t want a copy - simply do an “export” and when Tortoise asks for the “folder to export to” simply select the same folder your working copy is in! Tortoise will proceed to remove all the .svn folders.

May 17, 2009

Subversion and TortoiseSVN tips and tricks

Here is a list of Subversion and TortoiseSVN tips and tricks I collected during adoption of Subversion in couple of development teams.