Discussions  >  CollabNet Subversion Client  >  svn propset svn:ignore problem

Hide all messages in topic

All messages in topic

RE: Re: svn propset svn:ignore problem RE: Re: svn propset svn:ignore problem

Author charlesroper (OCN Member)
Full name Charles Roper
Date 2008-10-02 07:14:53 PDT
Message > Mark Phippard wrote:

> Does using '*' instead of "*" affect the situation in any way on Windows?

No, unfortunately it doesn't help.
 
> Also, another workaround would be to use 'svn propedit' instead of 'svn
> propset', or 'svn propset -F tmpfile' (where tmpfile contains only an
> asterisk character).

Yes, these work just fine. Using TortoiseSVN also works.

Charles

Re: svn propset svn:ignore problem Re: svn propset svn:ignore problem

Author cmpilato (OCN Member)
Full name C. Michael Pilato
Date 2008-10-02 06:51:25 PDT
Message Mark Phippard wrote:
> On 10/2/08 9:13 AM, "Charles Roper" <reachme@charlesr​oper.co.uk> wrote:
>
>> That looks to be the problem doesn't it. Can a work-around be implemented?
>
> When you use a wildcard, the program being called, Subversion in this case,
> never sees the wildcard. The shell expands the wild card before it runs the
> program. So it is not possible to change the behavior anywhere but the
> shell.

IIRC, that's not entirely true on Windows. Shell expansion is performed by
shell32.dll, which we link against optionally. We could stop using that
library and instead write our own wildcard expansion logic. But of course,
that comes at great cost.

Does using '*' instead of "*" affect the situation in any way on Windows?

Also, another workaround would be to use 'svn propedit' instead of 'svn
propset', or 'svn propset -F tmpfile' (where tmpfile contains only an
asterisk character).

--
C. Michael Pilato <cmpilato at collab dot net>
CollabNet <> www.collab.net <> Distributed Development On Demand
Attachments

Re: svn propset svn:ignore problem Re: svn propset svn:ignore problem

Author markphip (OCN Member)
Full name Mark Phippard
Date 2008-10-02 06:43:27 PDT
Message On 10/2/08 9:13 AM, "Charles Roper" <reachme@charlesr​oper.co.uk> wrote:

> That looks to be the problem doesn't it. Can a work-around be implemented?

When you use a wildcard, the program being called, Subversion in this case,
never sees the wildcard. The shell expands the wild card before it runs the
program. So it is not possible to change the behavior anywhere but the
shell.

Mark

RE: Re: svn propset svn:ignore problem RE: Re: svn propset svn:ignore problem

Author charlesroper (OCN Member)
Full name Charles Roper
Date 2008-10-02 06:13:24 PDT
Message That looks to be the problem doesn't it. Can a work-around be implemented?

Re: svn propset svn:ignore problem Re: svn propset svn:ignore problem

Author cmpilato (OCN Member)
Full name C. Michael Pilato
Date 2008-10-02 05:48:54 PDT
Message Charles Roper wrote:
> First things first:
>
> $ svn --version
> svn, version 1.5.2 (r32768)
> compiled Aug 28 2008, 19:05:34
>
> Now the problem:
>
> On my Vista SP1 box, if I run the following:
>
> $ svn propset svn:ignore "*" tmp/
>
> I get this:
>
> property 'svn:ignore' set on 'app'
> property 'svn:ignore' set on 'config'
> property 'svn:ignore' set on 'db'
> property 'svn:ignore' set on 'doc'
> property 'svn:ignore' set on 'lib'
> property 'svn:ignore' set on 'log'
> property 'svn:ignore' set on 'nbproject'
> property 'svn:ignore' set on 'public'
> [etc...]
>
> Which clearly isn't correct.

Found this while Googling:
https://forums.micro​soft.com/MSDN/ShowPo​st.aspx?PostID=19177​98&SiteID=1

I wasn't able to locate a general bug report about wildcard expansion in
Vista, though.

--
C. Michael Pilato <cmpilato at collab dot net>
CollabNet <> www.collab.net <> Distributed Development On Demand
Attachments

svn propset svn:ignore problem svn propset svn:ignore problem

Author charlesroper (OCN Member)
Full name Charles Roper
Date 2008-10-02 05:32:12 PDT
Message First things first:

$ svn --version
svn, version 1.5.2 (r32768)
compiled Aug 28 2008, 19:05:34

Now the problem:

On my Vista SP1 box, if I run the following:

  $ svn propset svn:ignore "*" tmp/

I get this:

  property 'svn:ignore' set on 'app'
  property 'svn:ignore' set on 'config'
  property 'svn:ignore' set on 'db'
  property 'svn:ignore' set on 'doc'
  property 'svn:ignore' set on 'lib'
  property 'svn:ignore' set on 'log'
  property 'svn:ignore' set on 'nbproject'
  property 'svn:ignore' set on 'public'
  [etc...]
  
Which clearly isn't correct.

If I run the same command on my XP SP2 box, it works as expected:

  $ svn propset svn:ignore "*" tmp/
  property 'svn:ignore' set on 'tmp'
  
Is this an issue with Vista, or is something else going on here?

Many thanks,
Charles
Messages per page: