[Svnmerge] [PATCH] Indented log patch modified v2

Raman Gupta rocketraman at fastmail.fm
Wed Mar 1 11:59:54 PST 2006


Alan Barrett wrote:
> On Wed, 01 Mar 2006, Raman Gupta wrote:
>> Alan Barrett wrote:
>>> I like the log to look like this:
>>> [...]
>> Yeah, I like yours the best. Are you going to change it or am I?
> 
> Reinstating the longest_sep stuff in your patch is probably easier than
> fixing the performance issues in mine.

Attached v3 of the indent patch. It indents with the style shown by
Alan, and leaves the logic to increase the length of the separator. Here
is a modified commit log message:

Indent the merged revisions' log messages when creating the commit log
message after executing svn merge.

Patch by: Alan Barrett <apb at cequrux.com>
Reviewed by: Giovanni Bajo <rasky at develer.com>
Tweaked by: Raman Gupta <rocketraman at fastmail.fm>

* contrib/client-side/svnmerge.py
  (prefix_lines):
    New method to take a string and prepend each line of the string
      with a specified string. The lines are delimited by newlines
      characters.
  (construct_merged_log_message):
    Added indentation for each commit message. Added check for empty
    log messages, which should never happen but doesn't hurt.

Cheers,
Raman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log-indent-v3.patch
Type: text/x-patch
Size: 2090 bytes
Desc: not available
Url : /pipermail/svnmerge/attachments/20060301/674f1c31/attachment.bin 


More information about the Svnmerge mailing list