Hi Jason,

On Jun 4, 2005, at 8:21 PM, Jason E. Stewart wrote:

James Berry <[EMAIL PROTECTED]> writes:
Luckily, you can also set your svn config (for the command line
client) in ~/.subversion/config to tell it to automatically apply
these properties to files matching a pattern. I would recommend you
do this, as it is otherwise easy to forget to set the properties.


Hi James,

Thanks for pointing this out - I didn't know that you could do this in
the config file.

One thought that I have is that we don't want to really on this - if
one committer forgets to do this, then the file gets messed up.

One way or another, I think, we need to "rely" on the committers to get it right...or to recognize when it's not right and fix it. The Subversion folks say you can't "fix" it in a hook script, though you can check for properly set properties in a hook script--which might be a potential solution if the apache infrastructure folks allow us to put in the appropriate hooks.

But I think the right first step is to get all the developers to setup their config file (or equivalent for svn gui).

If it's desired, I'm happy to write a short perl script that will set
the properties we need on all the files they need to be set.

Frankly, (having done it a few times as I've learned svn) it's not too difficult. Something like:

find . -name '*.cpp' -or -name '*.hpp' | xargs svn propset svn:eol-style native

Works pretty well to set the props on all requisite files (though you want to set keywords too ;).

Secondly, I noticed that in the past the individual files use the $Log
keyword. I find this pointless because 'svn log' and 'svn blame' are
so much more useful, and it means that I have to scroll down two pages
to find the actual code.

I agree that $Log$ is worthless. Svn, in fact, doesn't support it at all. See the svn faq: http://subversion.tigris.org/faq.html#log-in- source.

I've been replacing $Log$ with $Id$ in any files I edit. I think we should probably do that globally, especially now that log is frozen with the old cvs logs (since the logs won't be updated any more with svn).

Does anyone like the $Log expansion? If not, I would like to propose
eliminating it.

Goodbye log.

Cheers,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to