Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-4797

Executable file modes are reset when updating a file with no svn:executable property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.9.9
    • None
    • cmdline client
    • None

    Description

      The command-line client resets +x flags on files it updates, if they lack an svn:executable flag.

      As demonstrated here:

      $ 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sinuspi Sinus Pi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: