.

SVN set UUID

You can easily change your UUID of your repository.

To find the UUID of you checked out repository, right click the folder -> properties -> SubVersion … and look for “Repository UUID”

Then run the following command from the command prompt:

 svnadmin setuuid <repository> <new UUID>

e.g:     S:\Files\Repositories>svnadmin setuuid MyRepo  d8ece4bc-fc4d-b140-bb39-c38023ea6b9b

 

svn location formats

file:///C:/Repositories/ProgramX/trunk

file://machineNameHere/C$/repos/ProjectY

 

 

enable AnkhSVN in Visual Studio

For VS2012 (and probably others too)
Go to: Tools -> Options -> Source Control -> Plug-In Selection
Then choose “AnkhSVN”

Partially delete subversion history

For what ever reason you might want to remove older versions from svn history.

If e.g. your repository is at version 100 and you want to remove all history below version 90,
then you do it as follow:

svnadmin dump C:\Files\Repositories\Bitlink -r90:HEAD > svn.dump
or
svnadmin dump C:\Files\Repositories\Bitlink -r90:100 > svn.dump
svnadmin create C:\Files\Repositories\BitlinkNew
svnadmin load C:\Files\Repositories\BitlinkNew < svn.dump

All version below 90 are gone now.
The repository is now either at head or version 100 respectively of the method you chose above.

Getting rid of all svn files (for good!) in a svn folder

You can get rid of all svn files in a svn folder (If you never want to reference the repository again)
Simply run the following batch file from the parent folder where you want to start deleting from.

PLEASE NOTE: You will DELETE ALL SVN FILES from this directory onwards
- all child directories etc

copy & paste the code below in a file such as: “deletesvndata.bat” and run from the folder where you want to start removing the SVN files.

———————————-

rd /s _svn
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d .svn') do (
  rd /s /q "%%i"
)

———————————–

if you rather use _svn format (than .svn) use this:

———————————–

rd /s _svn
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d _svn') do (
  rd /s /q "%%i"
)

———————————–

Disclaimer: This will wipe out your svn related files
THERE IS NO UNDO
so BACKUP FIRST!!
and use this
AT YOUR OWN RISK!

log out of svn

C:\> svn  log –xml  svn://[SVN_ADDRESS_HERE]:[SVN_PORT_HERE]/MyProject –username [USERNAME_HERE] –password [PASSWORD_HERE]