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

Re: Ignoring all files in a directory

From: Michael Diers <mdiers_at_elego.de>
Date: Fri, 22 May 2009 20:57:46 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Eric Lilja wrote:
> Hello again, Konstantin!
>
> Konstantin Kolinko wrote:
>> Hm. I expected this to work properly, but it added quotes to the value.
>>
>> You can write value of the property to a file, and use
>> $ svn propset svn:ignore --file filename .
>
> Yes, this method does indeed work. Any ideas why '*' didn't work,
> because it sounds like it should?

Eric,

are you perhaps on Windows, using CMD.EXE and a native Subversion
command line client?

The most concise command sequence I could come up with is this:

C:\wc\trial> echo * | svn ps svn:ignore -F - .

On Windows, wildcard expansion of parameters is _not_ performed by the
shell (CMD.EXE), but the called program, depending on the low-level
runtime library it is linked to.

The example below illustrates this using CMD, Cygwin's svn.exe and
VisualSVN Server's svn.exe (linked to MS C runtime) on Vista. Note the
different behaviour of the C runtimes.

C:\wc\trial> dir /b
bar
foo

C:\trial> echo *
*

C:\wc\trial> svn ps svn:ignore * .
svn: Cannot set 'svn:ignore' on a file ('bar')

C:\wc\trial> svn ps svn:ignore "*" .
svn: Cannot set 'svn:ignore' on a file ('bar')

C:\wc\trial> svn ps svn:ignore '*' .
property 'svn:ignore' set on '.'

C:\wc\trial> svn pg svn:ignore
'*'

C:\wc\trial> echo * | svn ps svn:ignore -F - .
property 'svn:ignore' set on '.'

C:\wc\trial> svn pg svn:ignore .
*

C:\wc\trial> \cygwin\bin\svn ps svn:ignore * .
svn: Cannot set 'svn:ignore' on a file ('foo')

C:\wc\trial> \cygwin\bin\svn ps svn:ignore "*" .
property 'svn:ignore' set on '.'

C:\wc\trial> \cygwin\bin\svn pg svn:ignore
*

C:\wc\trial> \cygwin\bin\svn ps svn:ignore '*' .
property 'svn:ignore' set on '.'

C:\wc\trial> \cygwin\bin\svn pg svn:ignore
*

- --
Michael Diers, Software Developer

elego Software Solutions GmbH, http://www.elego.de
Gustav-Meyer-Allee 25, Building 12 - BIG, 13355 Berlin, Germany

fon +49 30 2345 8696, fax +49 30 2345 8695, mobile +49 177 2345 865

Geschäftsführer Olaf Wagner, Sitz Berlin, AG Charlottenburg HRB 77719
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)

iEYEAREDAAYFAkoW9akACgkQcEKlWnqVgz384ACgoWyLSHOKuVU/dJ1aewNrXrcQ
EssAoJ5G4vAw6vxoAp1JHJZN8LuTL4/s
=qpO0
-----END PGP SIGNATURE-----

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2352972

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-22 20:59:13 CEST

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

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