[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] hook script for log message newline enforcement

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-03-03 23:35:29 CET

kfogel@collab.net writes:

> def fix_up_rev(fs, revnum):
> "Fix up the log message for revision REVNUM in FS."
> log_message = svn.fs.svn_fs_revision_prop(fs, revnum, 'svn:log')
> if log_message is not None:
> log_message = log_message.rstrip() + "\n"
> svn.fs.svn_fs_change_rev_prop(fs, revnum, "svn:log", log_message)

When used with --all-revs does it take long to rewrite, say, 100,000
revision properties? How about checking if log_message[-1] is already
'\n' and skipping the change?

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 3 23:35:46 2006

This is an archived mail posted to the Subversion Dev mailing list.