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

Re: Need to adjust based on svn:execute

From: Buddy Burden <buddy_at_thinkgeek.com>
Date: 2005-02-12 02:22:02 CET

Robert,

> Would it be too intrusive to use a separate tool like rsync to keep
> the Linux-hosted working copy and the Windows-writable one?

But that still wouldn't get the execute bits right, since the rsync would be
going from Windows to Linux.

> $ svn -R propget svn:executable * | sed -nre s/'^(.*) - \*$'/'\1'/p | xargs
> echo chmod a+x

Yep, that looks like what I was trying to figure out. I hoped there was a
slightly more compact way, but this'll do.

> I hope that's a useful starting point, at least.

Quite, thank you! I eventually came up with this:

svn -R propget svn:executable | awk -F' - ' '$2 == "*" { print $1 }' | each
'chmod +x {}'

where "each" is a home-grown command I have to take a list of file names and
run a command on each one. The advantage of xargs over each is that xargs
would run chmod once, whereas each will run it once per file (actually, that's
not an advantage _all_ the time, but it probably would be here). The
advantage of each is that it correctly handles filenames with spaces, which
xargs apparently doesn't (at least on my machine).

So thanx for the nudge in the right direction.

                -- Buddy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Feb 12 02:24:24 2005

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

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