subversion-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sinus Pi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SVN-4797) Executable file modes are reset when updating a file with no svn:executable property
Date Fri, 14 Dec 2018 01:23:00 GMT

     [ https://issues.apache.org/jira/browse/SVN-4797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sinus Pi updated SVN-4797:
--------------------------
    Description: 
The command-line client resets +x flags on files it updates, if they lack an svn:executable
flag.

As demonstrated here:
{noformat}
$ echo Test file >foo
$ svn add foo
A         foo
$ svn commit foo -m test
Adding         foo
Transmitting file data .done
Committing transaction...
Committed revision 101.
$ ls -al foo
-rw-rw-r-- 1 usr grp 10 Dec 13 17:24 foo
$ chmod a+x foo
$ ls -al foo
-rwxrwxr-x 1 usr grp 10 Dec 13 17:24 foo
   ^--^--^--- file is executable as much as it can get.

... the file was edited and committed in a second working copy ...

$ svn up foo
Updating 'foo':
U    foo
Updated to revision 102.
$ ls -al foo
-rw-rw-r-- 1 usr grp 17 Dec 13 17:26 foo
   ^--^--^--- file is executable no more.{noformat}

> Executable file modes are reset when updating a file with no svn:executable property
> ------------------------------------------------------------------------------------
>
>                 Key: SVN-4797
>                 URL: https://issues.apache.org/jira/browse/SVN-4797
>             Project: Subversion
>          Issue Type: Bug
>          Components: cmdline client
>    Affects Versions: 1.9.9
>            Reporter: Sinus Pi
>            Priority: Minor
>
> The command-line client resets +x flags on files it updates, if they lack an svn:executable
flag.
> As demonstrated here:
> {noformat}
> $ echo Test file >foo
> $ svn add foo
> A         foo
> $ svn commit foo -m test
> Adding         foo
> Transmitting file data .done
> Committing transaction...
> Committed revision 101.
> $ ls -al foo
> -rw-rw-r-- 1 usr grp 10 Dec 13 17:24 foo
> $ chmod a+x foo
> $ ls -al foo
> -rwxrwxr-x 1 usr grp 10 Dec 13 17:24 foo
>    ^--^--^--- file is executable as much as it can get.
> ... the file was edited and committed in a second working copy ...
> $ svn up foo
> Updating 'foo':
> U    foo
> Updated to revision 102.
> $ ls -al foo
> -rw-rw-r-- 1 usr grp 17 Dec 13 17:26 foo
>    ^--^--^--- file is executable no more.{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message