Mailinglist Archive: zypp-devel (84 mails)
| < Previous | Next > |
Re: [zypp-devel] Is it possible to strip trailing whitespace on svn commit?
- From: Michael Matz <matz@xxxxxxx>
- Date: Wed, 6 Aug 2008 18:25:29 +0200 (CEST)
- Message-id: <Pine.LNX.4.64.0808061814220.6093@xxxxxxxxxxxxx>
Hi,
On Wed, 6 Aug 2008, Michael Andres wrote:
That wouldn't work. If the finally committed data is not the same data
that also was send by the user an update will immediately create a merge
conflict. What needs to happen is that the committer local files are
without trailing whitespace before starting to commit. There are hooks
for _rejecting_ commits based on content, we could misuse that. Quite
unforgiving, though.
Ciao,
Michael.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
On Wed, 6 Aug 2008, Michael Andres wrote:
We sometimes create large diffs, just because some editors leave
trailing whitespace garbage in the source files, and some don't.
Can't we strip trailing whitespace on commit? I guess svn has some
sophisticated-hook for this?
That wouldn't work. If the finally committed data is not the same data
that also was send by the user an update will immediately create a merge
conflict. What needs to happen is that the committer local files are
without trailing whitespace before starting to commit. There are hooks
for _rejecting_ commits based on content, we could misuse that. Quite
unforgiving, though.
Ciao,
Michael.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |