2
0
Эх сурвалжийг харах

* last char of prefix should be a /

git-svn-id: trunk@196 -
florian 20 жил өмнө
parent
commit
68350b00fa
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      utils/svn2cl.pp

+ 5 - 0
utils/svn2cl.pp

@@ -118,6 +118,11 @@ begin
                     maxequal:=j;
                 end;
 
+              { test/p1.pas test/p2.pas should use the prefix test/ instead of test/p }
+              if maxequal<65535 then
+                while (maxequal>0) and (paths[0][maxequal]<>'/') do
+                  dec(maxequal);
+
               { generate prefix }
               pathtemp:='  * '+copy(paths[0],1,maxequal)+': ';
               for i:=0 to paths.Count-1 do