[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Bug report: Add and then delete a file

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-10-25 22:45:12 CEST

On 25/10/2007, Bruce Mahfood <kbmahf@gmail.com> wrote:
> Hello, I have checked all the areas that I am supposed to check and
> have not seen this bug reported. I have downloaded the latest build
> (TortoiseSVN-1.4.5.10425-win32-svn-1.4.5.msi) and installed that, but
> still see the issue. Here it is:
>
> I created a folder inside an existing checked out folder structure
> and put a file into it. I then right clicked on the folder and chose
> TortoiseSVN -> Add. This brought up a dialog showing both the folder
> and the file inside it with the checkboxes checked. I clicked OK and
> then saw a dialog saying that they were added. Ok.
>
> Then I decided I didn't want this folder and file any longer. I right
> clicked on the folder and chose TortoiseSVN but there was no Delete
> option.

The correct choice would be 'revert'. You want to undo an add which
has not yet been committed. 'Delete' is used to remove an item which
is already in the repository.

> The Add option was there, which I believe shouldn't have
> been there in this context.

Yes it should, because you might want to add more files. 'Add' for a
versioned (or newly added) folder will give you a list of files within
that folder which have not yet been added.

> I then went to the file and right
> clicked choosing TortoiseSVN to see neither a Delete or Add option.

Also correct. You can't add anything within a file, you can't delete
an object not yet added to the repository. Use revert instead and all
will be well.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Oct 25 22:45:19 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.