You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Rall <dl...@collab.net> on 2007/06/22 19:33:43 UTC
[Issue 2798] svn_load_dirs.pl: Set "svn:executable" only for newly added (executable) files.
Mark wrote:
> svn_load_dirs.pl will set "svn:executable" on any executable plain
> file, even those that have not changed (MD5). This triggers the file
> to be processed as an addition to the repository and copied from the
> import directory into the staging working copy. This behavior seem
> unintentional (or at least inconsistent) since all other properties
> (via the -p option) are set only for newly added files. More
> importantly, it will trigger a failure if the target in the staging
> working copy is read-only. (That issue coming in another post.)
Mark, I don't know a lot about this script, but what about the "if"
case corresponding to the "else" block that you moved the "set
executable" code snippet into -- in the following sub-conditional:
if ($new_digest ne $del_digest)
{
print "U $source_path\n";
$upd_files{$source_path} = $del_info;
}
...wouldn't we also want to set the "svn:executable" property?
Re: [Issue 2798] svn_load_dirs.pl: Set "svn:executable" only for
newly added (executable) files.
Posted by Mark Reibert <sv...@reibert.com>.
On Fri, 2007-06-22 at 12:33 -0700, Daniel Rall wrote:
> Mark wrote:
>
> > svn_load_dirs.pl will set "svn:executable" on any executable plain
> > file, even those that have not changed (MD5). This triggers the file
> > to be processed as an addition to the repository and copied from the
> > import directory into the staging working copy. This behavior seem
> > unintentional (or at least inconsistent) since all other properties
> > (via the -p option) are set only for newly added files. More
> > importantly, it will trigger a failure if the target in the staging
> > working copy is read-only. (That issue coming in another post.)
>
> Mark, I don't know a lot about this script, but what about the "if"
That makes two of us! ;-)
> case corresponding to the "else" block that you moved the "set
> executable" code snippet into -- in the following sub-conditional:
>
> if ($new_digest ne $del_digest)
> {
> print "U $source_path\n";
> $upd_files{$source_path} = $del_info;
> }
>
> ...wouldn't we also want to set the "svn:executable" property?
I think that is certainly a defensible argument, however I chose not to
go that route as properties that can be set via the "-p" command-line
argument are applied only to newly added files. Also, in the
if ($source_is_exe) ...
block, the executable file is pushed onto the @add_files list causing it
to be processed as a newly added file. Just sort of another hint the
intent was to do this for new files only.
--
----------------------
Mark S. Reibert, Ph.D.
svn@reibert.com
----------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org