Facundo Batista schrieb: > Georg Brandl wrote: > >> Of course, we could also setup a svn pre-commit hook that rejects trailing >> whitespace >:-> > > I was about to suggest a mail to python-checkins when a bad whitespace > is detected, but had no idea that a pre-commit check existed in SVN. > > It'd be great if the system won't let you commit if whitespace is bad.
Well, there are editors that don't intelligently strip whitespace, so that people using them would be constantly pained by such a hook. Things like two-space indents or tabs, however, should really be rejected IMO. Stripping the trailing whitespace automatically on checkin would also be fine, but I don't think that kind of thing is possible with SVN (also, it would mean that your WC is out of date after checkin). Geog -- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com