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

Re: Fwd: [PATCH] Fix for `svn patch` changing permissions of patched files

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 22 Nov 2013 10:06:12 +0000

Cathy Fitzpatrick <cathy_at_cathyjf.com> writes:

> First, `svn patch` is different from some other svn commands in that
> it always sets mode 600 on the file regardless of umask or anything
> else.

I see patch setting permissions according to umask. Why are you seeing
something different? Which version of Subversion are you using?

svnadmin create repo
svn import -mm repo/format file://`pwd`/repo/f
svn co file://`pwd`/repo wc
echo xx >> wc/f
(cd wc && svn diff) > p
svn revert -R wc

Now

$ ls -l wc/f
-rw-r--r-- 1 pm pm 2 Nov 22 10:03 wc/f
$ (umask 070 && svn patch p wc)
U wc/f
$ ls -l wc/f
-rw----rw- 1 pm pm 5 Nov 22 10:00 wc/f

I get that behaviour with 1.7, 1.8 and trunk.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2013-11-22 11:07:02 CET

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.