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

RE: 'svn status' problems with wildcards (Windows)

From: Matt Blais <mblais1_at_yummage.com>
Date: 2003-08-14 16:22:00 CEST

> > # Are we confused yet??
>
> Hate to say it, but you seem to be -- about how wildcards work. :-)

Actually I think my confusion is due to the counter-intuitive behavior
of 'svn st':

If you invoke 'svn st' without any args, it appears to list all
"repository items" in .svn (including 'svn delete'ed items no longer
present in the wc);

But when invoked with a wildcard path, 'svn st' appears to only find
items that currently exist in the wc. While this difference in behavior
is perhaps 'logical', it is certainly subtle, and confusing to those who
do not understand the underlying mechanism.

This is apart from the bug causing it to choke on a non-repository dir.

> -----Original Message-----
> From: cmpilato@localhost.localdomain
> [mailto:cmpilato@localhost.localdomain] On Behalf Of
> cmpilato@collab.net
> Sent: Wednesday, August 13, 2003 10:09 AM
> To: Matt Blais
> Cc: 'Subversion Dev'
> Subject: Re: 'svn status' problems with wildcards (Windows)
>
>
> "Matt Blais" <mblais1@yummage.com> writes:
>
> > # Here's what we're working with:
> >
> > N:\NAV\Devel> ls tmp*
> > tmp.183
> > tmp2.183
> > tmpAIRP.3bj
> > tmpAIRP.cpp
> > tmpOAP.3bj
> > tmpOAP.cpp
> > tmpSTPP.3bj
> > tmpSTPP.cpp
> >
> > tmp: # Notice this 'tmp' is a dir
> > devel
> > wnav.h
> >
> >
> > # The next cmd should catch the tmp* files as well as
> > # the 'tmp' dir, but appears to only be processing the dir:
> >
> > N:\NAV\Devel> svn delete tmp*.*
> > svn: Path is not a working copy directory
> > svn: 'tmp' is not a working copy
>
> Are you sure it's not just hitting this first and failing
> before trying to move on to the other tmp* files?
>
> > # Notice this cmd works OK here, but DOESN'T work
> > # later after marking the files for deletion:
> >
> > N:\NAV\Devel> svn st tmp*.cpp
> > tmpAIRP.cpp
> > tmpOAP.cpp
> > tmpSTPP.cpp
> >
> > N:\NAV\Devel> svn delete tmp*.cpp
> > D tmpAIRP.cpp
> > D tmpOAP.cpp
> > D tmpSTPP.cpp
> >
> >
> > # This cmd worked before the delete, but now it
> > # doesn't (should show the items marked for deletion)!
> > # Looks like it's only getting the 'tmp' dir again:
> >
> > N:\NAV\Devel> svn st tmp*.cpp
> > svn: The filename, directory name, or volume label syntax is
> > incorrect.
> >
> > svn: check_path: problem checking path "tmp*.cpp"
>
> Wildcards only expand to things that the system can find.
> 'svn delete' removed the working files from the working copy,
> so there's nothing left there to be expanded. The same thing
> happens in Unix, by the way.
>
> > # Still not getting the files marked for deletion:
> >
> > N:\NAV\Devel> svn st tmp*.???
> > ? tmp
> > ? tmp.183
> > ? tmp2.183
> > ? tmpAIRP.3bj
> > ? tmpOAP.3bj
> > ? tmpSTPP.3bj
>
> Again, because they aren't present for the wildcard expansion
> syntax to expand.
>
> > # Items marked for deletion show up here
> > # (no wildcards used):
> >
> > N:\NAV\Devel> svn st -q
> > M airparse.cpp
> > M data.cpp
> > M navlog.cpp
> > M switch.cpp
> > D tmpAIRP.cpp
> > D tmpOAP.cpp
> > D tmpSTPP.cpp
> > M turnpt.cpp
> >
> >
> > # Are we confused yet??
>
> Hate to say it, but you seem to be -- about how wildcards work. :-)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 14 16:23:18 2003

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

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