Wildcard bug? Or user error? Continued from svn mailing list

32 views
Skip to first unread message

Nathan Hartman

unread,
Sep 4, 2018, 12:02:13 PM9/4/18
to TortoiseSVN
Originally posted to Subversion's user mailing list but moving this here because it appears to be a TortoiseSVN issue.

I'm experiencing an issue with wildcards when using the command line svn client installed with TortoiseSVN 1.10.1, Build 28295 - 64 Bit, 2018/07/15 12:14:12, on Windows 10 Home 1803 build 17134.254.

The problem is that when I use a wildcard (i.e., the '*'), svn only "sees" the first letter of the first matching filename.

For example:

E:\workspace\BSP>dir *.h
 Volume in drive E is WORK
 Volume Serial Number is D28A-433E

 Directory of E:\workspace\BSP

09/03/2018  04:12 PM               828 BSP-Global.h
09/03/2018  04:12 PM               568 BSP-Main.h
09/03/2018  04:12 PM               632 DigitalInputs.h
09/03/2018  04:12 PM             8,528 DigitalInputsAutoGen.h
09/03/2018  04:12 PM               731 DigitalOutputs.h
09/03/2018  04:12 PM            10,073 DigitalOutputsAutoGen.h
09/03/2018  04:12 PM               502 DmaChannels.h
               7 File(s)         21,862 bytes
               0 Dir(s)     250,642,432 bytes free

Now issue a command using a wildcard:

E:\workspace\BSP>svn rm *.h
svn: E200005: Use --force to override this restriction (local modifications may be lost)
svn: E200005: 'E:\workspace\BSP\B' is not under version control

Notice that Subversion thinks I referred to E:\workspace\BSP\B. There is no file named "B" here (neither with nor without .h extension). It sees BSP-Global.h but only the first letter, which is a B.

Also, if I issue a command that issues warnings rather than errors (e.g., svn add) with a wildcard, the first filename gets truncated to one letter but remaining filenames are not truncated:

E:\workspace\Software>dir a*.h
 Volume in drive E is WORK
 Volume Serial Number is D28A-433E

 Directory of E:\workspace\Software

09/04/2018  11:38 AM               469 Asm_glb.h
09/04/2018  11:38 AM             1,513 Asm_graph.h
09/04/2018  11:38 AM            14,165 Asm_hdr.h
09/04/2018  11:38 AM             3,010 Asm_rec.h
               4 File(s)         19,157 bytes
               0 Dir(s)     511,717,376 bytes free

E:\workspace\Software>svn add a*.h
svn: warning: W155010: 'E:\workspace\Software\A' not found
svn: warning: W150002: 'E:\workspace\Software\Asm_graph.h' is already under version control
svn: warning: W150002: 'E:\workspace\Software\Asm_hdr.h' is already under version control
svn: warning: W150002: 'E:\workspace\Software\Asm_rec.h' is already under version control
svn: E200009: Could not add all targets because some targets are already versioned
svn: E200009: Could not add all targets because some targets don't exist
svn: E200009: Illegal target for the requested operation

Again, the first warning refers to a file called "A" but there is no such file here. "Asm_glb.h" is truncated to just "A".

This problem is not related to the repository; I experimented with working copies coming from different repositories, all of which work when accessed from other clients on other machines. In fact the svn add example above comes from a different repo than the svn rm example earlier.

I do not have any other svn client installed on this Windows machine.

Branko Čibej suggested that there may be something wrong with the setargv.obj linked with this build.


Stefan

unread,
Sep 5, 2018, 2:15:03 PM9/5/18
to TortoiseSVN
this seems to be a bug in the windows sdk:

quote: We have fixed the problem in an upcoming windows update.

So it seems you have to wait for that windows update to get this fixed...

Stefan

Nathan Hartman

unread,
Sep 6, 2018, 10:15:20 AM9/6/18
to TortoiseSVN
Thank you for your reply and for finding the above.

I hope the Windows update that fixes it comes soon -- that post was from three months ago!

Reply all
Reply to author
Forward
0 new messages