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

"Global ignore pattern" is empty, but *.o files are still ignored

From: <roderich.schupp_at_googlemail.com>
Date: Fri, 19 Sep 2008 08:14:51 -0700 (PDT)

Hi,

this behaviour occured after a fresh installation of TSVN 1.5.3:

- Settings -> Global ignore pattern is empty
- ignore-globals setting in SVN config is still at its default value
  (i.e. setting is commented out)
- registry key \Software\Tigris.org\Subversion\Config\miscellany
\global-ignores
  doesn't exist
- no svn:ignore properties anywhere in sight

but unversioned *.o files in the working copy still get ignored (i.e.
when trying to
commit, they dont't show up in the "Changes mode" list of Tortoise).

Now do the following:
- go to Settings -> Global ignore pattern
- enter something, hit Apply
- blank out the patter entry box, hit Apply
and voila: *.o files are no longer ignored.
Further inspection shows that the above registry key now exists
with an empty string as its value.

Grepping thru the TSVN and SVN sources I think I know what's happening
here:

- the SVN working copy library has a built-in default ignore list
  (#define SVN_CONFIG__DEFAULT_GLOBAL_IGNORES) which is applied when
  there is no explicit setting (config file, registry etc)
- TSVN Settings -> Global ignore pattern actually gets/sets the above
registry key,
  but it doesn't distinguish between key doesn't exist and key's value
is an empty string -
  it shows an empty entry in both cases
- what TSVN should do instead: show the "effective" gloabl ignore
pattern, i.e.
  if the key exists, show its value, otherwise show
SVN_CONFIG__DEFAULT_GLOBAL_IGNORES

Cheers, Roderich

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-09-19 17:25:41 CEST

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