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

Re: Bug during commit of not added files

From: Tobias Schäfer <tobiasschaefer_at_gmx.de>
Date: 2007-09-11 18:06:09 CEST

On Tuesday 11 September 2007 10:06:37 Simon Large wrote:
> On 11/09/2007, Matthias Bendewald <matthias.bendewald@gmx.de> wrote:
> > A very nice feature of TortoiseSVN has a bug in version 1.4.5:
> > I had to add many (about 1100) files to a repository. I checked it out,
> > copied the files where they belonged and clicked on "commit". I used
> > the checkbox "select all files" in the commit dialog and typed my
> > message. Only some of the selected files were actually committed! The
> > other files stayed in the same, not-versioned status as they were
> > before. Adding the files before committing works fine.
>
> There was a similar report a couple of months ago:
>
> http://svn.haxx.se/tsvn/archive-2007-07/0014.shtml
>
> Not sure if this is a bug, or whether it is fixed on trunk. Stefan,
> Tobias?

The reason for the behaviour is the following:

If there is a deep directory structure which you want to add to the
repository calling "commit" on the top level and "selecting all" will not
recursively add all directories. If an unversioned directory is selected
then only this directory is added, i.e. the behaviour is not recursive.
Therefore all files and directories below this previously unversioned
directory will not be added the the repository.

It works as designed by subversion, but maybe we should show a warning when
committing an unversioned folder:
"Commiting an unversioned folder will not recursively add all files and
directories. If you want to add these too, then cancel this commit and add
them first. Continue?"
Using "add" solves the problem because this adds all files and directories
by default recursively.

This warning would only appear if the directory is "unversioned" and
contains files or directories. An "added" directory would not show the
warning.

Tobias

-- 
       ___
  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 Tue Sep 11 18:03:08 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.