Notice: this is a static mirror for historical purposes.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
146Source Integration[All Projects] Generalpublic2010-05-06 06:572010-05-06 06:57
ReporterJohnnie G. 
Assigned To 
Product Version0.13 
Target VersionFixed in Version 
Summary146: filename parsing breaks when filename contains parentheses
DescriptionThe regexp that parses the svn log, trying to get the filename, breaks when it contains a '(' character
Steps To Reproducecommit a change for a file with parentheses in it's name.
i.e. /trunk/myrepo/name(with parenthesis).txt

The check mantis for the actual commit written to the DB.
it will be "/trunk/myrepo/name"
Additional InformationI have implemented a fix that replaces the code in
SourceSVN.php: function process_svn_log

//addition start
# Handle files with parentheses in their names without matching to the whole string
$t_match_pos = strpos($t_line, ' (from ');
if ($t_match_pos!==FALSE) $t_line = substr($t_line,0,$t_match_pos);
if ( preg_match( '/^\s+([a-zA-Z])\s+(.+)/', $t_line, $t_matches ) ) {
//addition end
  switch( $t_matches[1] ) {
        case 'A': $t_action = 'add'; break;
        case 'D': $t_action = 'rm'; break;

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2010-05-06 06:57 Johnnie G. New Issue

Copyright © 2000 - 2012 MantisBT Group
Time: 0.1138 seconds.
memory usage: 8,318 KB
Powered by Mantis Bugtracker

hosted with