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

Re: Proposal: Undo add

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-10-26 10:45:51 CEST

On 26/10/2007, Valérie et Vincent <vincent.dupaquis@laposte.net> wrote:
> My personnal experience is that generally it is the very first kind of
> issues people are facing.
>
> For instance, you add all your project files, and suddenly you figure
> out that tons of .lst, .obj, map and so on files are to be commited too
> (he wants to make things well) !
>
> Then after deleting them as usual (through the explorer), you prepare
> for your first commit, which will fail !

How does it fail? I just tried that. If you enable the missing files
for commit, they are silently reverted anyway.

> The beginner has then to recover from a complete mess, which could
> discourage him (if he is alone, without anyone being able to help him !).
>
> I would say that may be the best would be to ignore a file which has
> been added and which cannot be found, by the way if it is not present
> anymore ... But may be it is something relevant to svn instead ?

That's a good thought too. If files/folders marked for Add are missing
at commit time they show up in the commit dialog as missing, but it is
not obvious what to do next. If you tick the box to enable them for
commit then they are silently reverted at commit time. That's a useful
behaviour, but the implementation seems counter-intuitive. The context
menu offers 'Revert', which I think could be 'Undo add', and 'delete'
which also does the job, but generates an error message when it tries
to delete the non-existent file. The 'Delete' context menu entry
doesn't really make sense for a missing item.

How about silently reverting added files which are missing, and remove
them from the commit list. There is no data loss because the files
don't exist anyway. If the files really should be added, the result is
no worse than if you forgot to add it in the first place.

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 Fri Oct 26 10:46:04 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.