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

Re: Files with trailing dots on Windows

From: John Peacock <jpeacock_at_rowman.com>
Date: 2006-02-06 16:25:37 CET

von Löwis Martin wrote:
> In the specific case, it doesn't need to list the contents
> of the directory. In fact, if you want to find out whether
> a certain file is present, listing the directory contents
> is not the smartest way. Use stat(2)/GetFileAttributesW()
> to find out whether a certain file exists.

I'm afraid you are mistaken. One of the ways that Subversion checks to
see if your working copy is up to date is to compare the files that
exist on the disk with the files that should be there (as reflected in
the .svn/entries file). NTFS will not correctly return the files which
were automatically renamed (AFAIK whether opendir() or stat() were used).

If you have a working copy in this state, it should show you an unknown
file without the trailing dots and a missing file with the trailing
dots. It isn't Subversion's fault and without negatively affecting
everyone's performance who didn't make that mistake, I really don't see
what Subversion can do to work around the limitation.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 6 16:25:42 2006

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.