PATCH: trivial clean-whitespace.pl change
Tim Yardley
liquid at haveheart.com
Thu Apr 5 22:16:46 UTC 2007
Jacques;
It is set for some of the files, but not all of them.
generically to see:
svn proplist -v *
generically to fix:
svn propset -R svn:eol-style native *
My patch did not address line endings. There doesn't seem to be any varied
line endings in the repo though.
/tmy
_____
From: memcached-bounces at lists.danga.com
[mailto:memcached-bounces at lists.danga.com] On Behalf Of Jacques Marneweck
Sent: Thursday, April 05, 2007 3:38 PM
To: Tim Yardley
Cc: memcached at lists.danga.com
Subject: Re: PATCH: trivial clean-whitespace.pl change
Hi,
Does anyone know if we have svn:eol-style set to native?
Regards
--jm
On 05 Apr 2007, at 6:11 PM, Tim Yardley wrote:
Brad;
Some of the code that's come into the tree has brought in mixed tabs and
spaces, as well as trailing spaces. Running devtools/clean-whitespace.pl
(in memcached/server) will clean that back up.
Here is a trivial patch to that script to catch the autoconf mixed tabs as
well.
$ svn diff
Index: server/devtools/clean-whitespace.pl
===================================================================
--- server/devtools/clean-whitespace.pl (revision 485)
+++ server/devtools/clean-whitespace.pl (working copy)
@@ -2,7 +2,7 @@
use strict;
use FindBin qw($Bin);
chdir "$Bin/.." or die;
-my @files = (glob("*.h"), glob("*.c"));
+my @files = (glob("*.h"), glob("*.c"), glob("*.ac"));
foreach my $f (@files) {
open(my $fh, $f) or die;
my $before = do { local $/; <$fh>; };
Files currently affected in the multithread branch:
$ svn status
M server/stats.c
M server/slabs.c
M server/memcached.c
M server/thread.c
M server/assoc.c
M server/slabs.h
M server/items.c
M server/configure.ac
/tmy
--
Jacques Marneweck
http://www.powertrip.co.za/
http://www.powertrip.co.za/blog/
#include <std/disclaimer.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070405/de67be25/attachment.htm
More information about the memcached
mailing list