You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Janosch Scharlipp <ja...@isys-vision.de> on 2010/02/07 19:40:19 UTC

Problems setting svn:ignore property to "*" via windows command line

Hi, i am trying to set the svn:ignore property of a specific folder to "*",
so that all files and folders inside this folder are beeing ignored by svn.
Somehow i don't get this done, i tried lots of different aproaches, but it
always seems as if the pattern is beeing expanded, so that either the
command fails, or the property it beeing set to the wrong value.

Target folder> svn propset svn:ignore * .
( command is executed on all contents of . with property value ".svn" (??))

Target folder> svn propset svn:ignore "*" .
( same result)

Target folder> svn propset svn:ignore "\*" .
( error: "\xxx is not a working copy" )

Target folder> svn propset svn:ignore "^*" .
(no expansion takes place, but property is set to "^*")

...

What would be the way to do what i want? Why is this so difficult? Where
does the expansion take place, is it the command line, or is ist svn? If it
is svn, should the property value not be used without expansion?

Janosch

Re: AW: Problems setting svn:ignore property to "*" via windows command line

Posted by Stein Somers <ss...@opnet.com>.
On 09/02/2010 12:51, Janosch Scharlipp wrote:
> Is the runtime part of the final program, or is it available as a dll in my
> os ready to be loaded on program startup?

In build lingo, that sounds: is the runtime statically linked or 
dynamically linked? It depends on how the subversion source code was 
built and packaged. I bet the configuration files/makefiles default to 
some direction (so the subject is somewhat relevant on this list) but I 
couldn't find any /MT or /MD. Either way, it's the responsibility of the 
supplier of the subversion package, like Collabnet, SlikSVN... to cook 
something that works from the source code.

> Can i find out, what type of runtime is beeing used

For Windows, dependencywalker.com is great. If the runtime is 
dynamically linked, it will show something like msvcrt*.dll is used.

But if I were you, I would use the workaround suggested in this thread 
and not try to talk sense into Windows. Maybe you can fool it by passing 
a unicode * character or so.

-- 
Stein

AW: Problems setting svn:ignore property to "*" via windows command line

Posted by Janosch Scharlipp <ja...@isys-vision.de>.
Hi,
Ok, i see (and learned something about the execution of programms compiled
from c source code).

Is the runtime part of the final program, or is it available as a dll in my
os ready to be loaded on program startup?
Can i find out, what type of runtime is beeing used, shouldn't there be
documentend, how i can escape characters like the star, to prevent
expansion?

Janosch


-----Ursprüngliche Nachricht-----
Von: Stefan Sperling [mailto:stsp@elego.de] 
Gesendet: Dienstag, 9. Februar 2010 11:40
An: Janosch Scharlipp
Cc: users@subversion.apache.org
Betreff: Re: Problems setting svn:ignore property to "*" via windows command
line

On Tue, Feb 09, 2010 at 11:27:21AM +0100, Janosch Scharlipp wrote:
> 
> Thanks for your answers, but still i think this is not as it should be.
> If the parameter is expanded by the shell, or as if it was the shell, 
> then the shell escaping mechanism (^ on windows) should work.
> If parameter expansion takes place deeper in the program itself, then 
> it should know, that this parameter should not be expanded.

As far as I understand the link I gave you, the behaviour depends on the
implementation of the shell, and the C runtime (which, in case you didn't
know, includes start-up code for a C program which runs before the main()
function of the program, i.e. before the program itself takes control).

So this behaviour is beyond Subversion's control. Subversion receives a list
of arguments in its main method, including a list of paths to operate on.
This list may have been expanded either by your shell or by the C runtime,
depending on which shell and runtime you are using.
But Subversion itself has nothing to do with it.

I agree that the situation is not as it should be. But you'll need to talk
to the vendors who provide your shell and your C runtime to sort this out,
not to us.

Stefan

Re: Problems setting svn:ignore property to "*" via windows command line

Posted by Stefan Sperling <st...@elego.de>.
On Tue, Feb 09, 2010 at 11:27:21AM +0100, Janosch Scharlipp wrote:
> 
> Thanks for your answers, but still i think this is not as it should be.
> If the parameter is expanded by the shell, or as if it was the shell, then
> the shell escaping mechanism (^ on windows) should work.
> If parameter expansion takes place deeper in the program itself, then it
> should know, that this parameter should not be expanded.

As far as I understand the link I gave you, the behaviour depends
on the implementation of the shell, and the C runtime (which, in case
you didn't know, includes start-up code for a C program which runs
before the main() function of the program, i.e. before the program
itself takes control).

So this behaviour is beyond Subversion's control. Subversion receives
a list of arguments in its main method, including a list of paths to
operate on. This list may have been expanded either by your shell or
by the C runtime, depending on which shell and runtime you are using.
But Subversion itself has nothing to do with it.

I agree that the situation is not as it should be. But you'll need
to talk to the vendors who provide your shell and your C runtime to
sort this out, not to us.

Stefan

Re: AW: Problems setting svn:ignore property to "*" via windows command line

Posted by Felix Gilcher <fe...@bitextender.com>.
On Feb 9, 2010, at 11:27 AM, Janosch Scharlipp wrote:

> 
> Thanks for your answers, but still i think this is not as it should be.
> If the parameter is expanded by the shell, or as if it was the shell, then
> the shell escaping mechanism (^ on windows) should work.
> If parameter expansion takes place deeper in the program itself, then it
> should know, that this parameter should not be expanded.

Well, as the referenced discussion points out the expansion depends on the runtime that the program is linked to. So the root cause is that each runtime handles expansion different, there's little the program can do. Using no expansion at all is no option either.

> 
> Janosch
> 

<snip>

> 
> See http://svn.haxx.se/users/archive-2009-05/0846.shtml
> 
> Stefan
> 
> 

--
Felix Gilcher

Bitextender GmbH
Paul-Heyse-Str. 6
D-80336 München

AW: Problems setting svn:ignore property to "*" via windows command line

Posted by Janosch Scharlipp <ja...@isys-vision.de>.
Thanks for your answers, but still i think this is not as it should be.
If the parameter is expanded by the shell, or as if it was the shell, then
the shell escaping mechanism (^ on windows) should work.
If parameter expansion takes place deeper in the program itself, then it
should know, that this parameter should not be expanded.

Janosch

-----Ursprüngliche Nachricht-----
Von: Stefan Sperling [mailto:stsp@elego.de] 
Gesendet: Sonntag, 7. Februar 2010 22:25
An: Janosch Scharlipp
Cc: users@subversion.apache.org
Betreff: Re: Problems setting svn:ignore property to "*" via windows command
line

On Sun, Feb 07, 2010 at 08:40:19PM +0100, Janosch Scharlipp wrote:
> 
> Hi, i am trying to set the svn:ignore property of a specific folder to 
> "*", so that all files and folders inside this folder are beeing ignored
by svn.
> Somehow i don't get this done, i tried lots of different aproaches, 
> but it always seems as if the pattern is beeing expanded, so that 
> either the command fails, or the property it beeing set to the wrong
value.
> 
> Target folder> svn propset svn:ignore * .
> ( command is executed on all contents of . with property value ".svn" 
> (??))
> 
> Target folder> svn propset svn:ignore "*" .
> ( same result)
> 
> Target folder> svn propset svn:ignore "\*" .
> ( error: "\xxx is not a working copy" )
> 
> Target folder> svn propset svn:ignore "^*" .
> (no expansion takes place, but property is set to "^*")
> 
> ...
> 
> What would be the way to do what i want? Why is this so difficult? 
> Where does the expansion take place, is it the command line, or is ist 
> svn? If it is svn, should the property value not be used without
expansion?

See http://svn.haxx.se/users/archive-2009-05/0846.shtml

Stefan

Re: Problems setting svn:ignore property to "*" via windows command line

Posted by Stefan Sperling <st...@elego.de>.
On Sun, Feb 07, 2010 at 08:40:19PM +0100, Janosch Scharlipp wrote:
> 
> Hi, i am trying to set the svn:ignore property of a specific folder to "*",
> so that all files and folders inside this folder are beeing ignored by svn.
> Somehow i don't get this done, i tried lots of different aproaches, but it
> always seems as if the pattern is beeing expanded, so that either the
> command fails, or the property it beeing set to the wrong value.
> 
> Target folder> svn propset svn:ignore * .
> ( command is executed on all contents of . with property value ".svn" (??))
> 
> Target folder> svn propset svn:ignore "*" .
> ( same result)
> 
> Target folder> svn propset svn:ignore "\*" .
> ( error: "\xxx is not a working copy" )
> 
> Target folder> svn propset svn:ignore "^*" .
> (no expansion takes place, but property is set to "^*")
> 
> ...
> 
> What would be the way to do what i want? Why is this so difficult? Where
> does the expansion take place, is it the command line, or is ist svn? If it
> is svn, should the property value not be used without expansion?

See http://svn.haxx.se/users/archive-2009-05/0846.shtml

Stefan

Re: Problems setting svn:ignore property to "*" via windows command line

Posted by Eric Lee <pg...@gmail.com>.
On Mon, Feb 8, 2010 at 3:40 AM, Janosch Scharlipp <
janosch.scharlipp@isys-vision.de> wrote:

>
> Hi, i am trying to set the svn:ignore property of a specific folder to "*",
> so that all files and folders inside this folder are beeing ignored by svn.
> Somehow i don't get this done, i tried lots of different aproaches, but it
> always seems as if the pattern is beeing expanded, so that either the
> command fails, or the property it beeing set to the wrong value.
>
> Target folder> svn propset svn:ignore * .
> ( command is executed on all contents of . with property value ".svn" (??))
>
> Target folder> svn propset svn:ignore "*" .
> ( same result)
>
> Target folder> svn propset svn:ignore "\*" .
> ( error: "\xxx is not a working copy" )
>
> Target folder> svn propset svn:ignore "^*" .
> (no expansion takes place, but property is set to "^*")
>
>
Janosch

Actually I don't know why. But on my windows 2000 I got this interesting
result.
I'am using svn 1.6.6 command-line.

F:\test2\tags>svn st
 M      .
?       a.txt
?       bbbb.py

F:\test2\tags>svn ps svn:ignore "*" .
property 'svn:ignore' set on '.'

F:\test2\tags>svn st
 M      .

F:\test2\tags>svn st --no-ignore
 M      .
I       a.txt
I       bbbb.py

F:\test2\tags>svn pg svn:ignore .
*

The other way to set it (or any other properties) was the svn pe
sub-command.
Personally, I use it to avoid any problems.



Regards,
Eric,

...
>
> What would be the way to do what i want? Why is this so difficult? Where
> does the expansion take place, is it the command line, or is ist svn? If it
> is svn, should the property value not be used without expansion?
>
> Janosch
>
>