tags:

views:

23

answers:

2

Hallo all,

I'm new to tortoise. In order to avoid any unexpected consequence, I'd like ask for your tips on deleting a branch:

  1. Could I simply delete the working copy of the branch and the folder in the repository?
  2. Should the local working copy of the branch first be deleted, or the branch folder thru the repository browser be removed?

Regards, John

A: 

The SVN book ("Version Control with Subversion") explains how to delete and restore branches.

Although it suggests remote deletion like

$ svn delete http://svn.example.com/repos/calc/branches/my-calc-branch \
  -m "Removing obsolete branch of calc project."

you could also do it locally (with the TortoiseSVN > Delete command).

As mentioned in the book, you can always restore branches, so you won't get any unexpected consequences.

AndiDog
Thanks for your answer. Where could I send such a command in tortoise?
John
Right-click on the branch directory, TortoiseSVN, Delete
AndiDog
I mean, how to give such text command in tortoise?
John
TortoiseSVN is built with the subversion library, so it doesn't contain the necessary binaries (like svn.exe). You need to download them before you can execute textual commands (http://subversion.apache.org/packages.html#windows). But that's not recommended - TortoiseSVN is a GUI, why would you want to use the command line?
AndiDog
A: 

Right click on any folder, select "Repo-browser" and find your branch on the left panel. From there, you can issue a "Delete" command directly on the repository.

As far as I know, you cannot issue a delete command on the top folder of the working copy, probably because that would effectively destroy the working copy.

Álvaro G. Vicario