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

Re: Committing file makes it unreadable by group and other

From: Dave Lawrence <dlawrence_at_ad-holdings.co.uk>
Date: Fri, 30 May 2008 16:00:05 +0100

Jean-Marc van Leerdam wrote:
> Hi Bob,
>
> On 30/05/2008, Hucker, Bob <bhucker_at_bayareanewsgroup.com> wrote:
>> When I commit a file, it sets the permissions on my local copy (on a
>> Windows file system) in such a way that cygwin shows the file as not
>> readable by group or other. Why?

Is it that the permissions are inherited from the parent directory?

> The file handling is done by the subversion libraries, not TSVN
> itself. When using cygwin, you should also be using a cygwin
> subversion client. Mixing a native windows client (TSVN) with cygwin
> can give you exactly the issue you are reporting.

I disagree. By that argument you should be using a Cygwin text editor
aswell. People use Cygwin so they can mix Unix tools (typically gcc
etc) and Windows tools (typically editors, version control etc) in the
same environment. We use TortoiseSVN, a Windows text editor, and a
Windows difference viewer, but all our build process happens in Cygwin.
  If I wanted a 100% unix environment I'd use Linux.

>> I constantly have to issue the command "chmod -R og+r <dirname>" to get
>> my permissions right so that my local Apache server on the PC will read
>> the files correctly.
>>
>
> Looks like files are being created with a 'rwx------' permission
> instead of 'rwxr--r--'. In unix you control this with the UMASK
> environment variable. I have no experience with cygwin, so I don't
> know if there is such a thing as a umask equivalent available. But if
> there is, you should make sure that it is set to default to group and
> world readable
>
My files are always checked out with drwxr-xr-x+ using TSVN. Note that
if you do use the Cygwin command line client for whatever reason (and
this should occur in a *different* working copy) you will need to set
svn:executable on executable files or Cygwin will not check them out
with executable permissions.

> HTH
>
> Regards,
>
> Jean-Marc
>
> ----------------
> ___
> // \\ @@ "De Chelonian Mobile"
> / \_/ \/._) TortoiseSVN
> <\_/_\_/ / The coolest Interface to (Sub)Version Control
> /_/ \_\ Check out http://tortoisesvn.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-05-30 17:00:37 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

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