[darcs-devel] [issue1334] Whitespace cleanup after Darcs 2.2.1.
Trent Buck
bugs at darcs.net
Wed Jan 28 23:26:46 UTC 2009
New submission from Trent Buck <trentbuck at gmail.com>:
Eric Kow <kowey at darcs.net> writes:
> When darcs 2.2.1 comes out, I suggest that somebody submit a big bang
> whitespace patch bundle against its tag, and that we update the policy
> suite to test for trailing whitespace.
This can be done as an Emacs batch command:
find [a-z]*/ \( -name \*.hs -o -name \*.lhs \) -exec \
emacs --batch -q --no-site-file {} \
-f universal-argument -f whitespace-cleanup -f save-buffer \;
Note that the above command only performs replacement within Haskell
files, not the TeX sources nor test scripts.
I suggest that you then commit each directory as a separate patch, to
reduce the huuuuuuge merge conflict pain that you will get. (This is a
compromise; recording each file separately would be better for merging
but bloat the change log amazingly).
find [a-z]*/ -depth -type d -exec \
darcs record -am "Whitespace cleanup in {}." {} \;
Note the -depth above ensures that "per directory" doesn't record child
dirs, by recording those children first (depth-first search).
Finally, the glob [a-z]*/ is a kludgy way of saying "find . -name _darcs
-prune -o ...".
----------
messages: 7240
nosy: dmitry.kurochkin, kowey, simon, thorkilnaur, twb
status: unread
title: Whitespace cleanup after Darcs 2.2.1.
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1334>
__________________________________
More information about the darcs-devel
mailing list