You've already forked lazarus-ccr
fpsvnsync: fixed adding file with spaces.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@295 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
<CONFIG>
|
<CONFIG>
|
||||||
<ProjectOptions>
|
<ProjectOptions>
|
||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
<Version Value="5"/>
|
<Version Value="6"/>
|
||||||
<General>
|
<General>
|
||||||
<SessionStorage Value="InProjectDir"/>
|
<SessionStorage Value="InProjectDir"/>
|
||||||
<MainUnit Value="0"/>
|
<MainUnit Value="0"/>
|
||||||
@ -21,6 +21,7 @@
|
|||||||
<local>
|
<local>
|
||||||
<FormatVersion Value="1"/>
|
<FormatVersion Value="1"/>
|
||||||
<LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
|
<LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
|
||||||
|
<WorkingDirectory Value="C:\lazarus\lazmirror"/>
|
||||||
</local>
|
</local>
|
||||||
</RunParams>
|
</RunParams>
|
||||||
<RequiredPackages Count="2">
|
<RequiredPackages Count="2">
|
||||||
|
@ -74,7 +74,7 @@ var
|
|||||||
SourceHead: integer;
|
SourceHead: integer;
|
||||||
Revision: integer;
|
Revision: integer;
|
||||||
XmlOutput: TMemoryStream;
|
XmlOutput: TMemoryStream;
|
||||||
SvnResult: LongInt;
|
//SvnResult: LongInt;
|
||||||
SvnLog: TSvnLog;
|
SvnLog: TSvnLog;
|
||||||
SubPath: string;
|
SubPath: string;
|
||||||
DestRoot: string;
|
DestRoot: string;
|
||||||
@ -105,7 +105,7 @@ var
|
|||||||
writeln(format('Updating %s to revision %s', [UpdatePath, RevisionStr]));
|
writeln(format('Updating %s to revision %s', [UpdatePath, RevisionStr]));
|
||||||
Command := Format('up -r%s %s', [RevisionStr, UpdatePath]);
|
Command := Format('up -r%s %s', [RevisionStr, UpdatePath]);
|
||||||
writeln('svn ', Command);
|
writeln('svn ', Command);
|
||||||
SvnResult := ExecuteSvnCommand(Command);
|
writeln('Result: ', ExecuteSvnCommand(Command));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure GetDiff;
|
procedure GetDiff;
|
||||||
@ -117,7 +117,7 @@ var
|
|||||||
Command := Format('diff -c%d %s', [Revision, FSourceWC+SubPath]);
|
Command := Format('diff -c%d %s', [Revision, FSourceWC+SubPath]);
|
||||||
writeln('svn ', Command);
|
writeln('svn ', Command);
|
||||||
XmlOutput.Clear;
|
XmlOutput.Clear;
|
||||||
SvnResult := ExecuteSvnCommand(Command, XmlOutput);
|
ExecuteSvnCommand(Command, XmlOutput);
|
||||||
XmlOutput.Position := 0;
|
XmlOutput.Position := 0;
|
||||||
Diff := TStringList.Create;
|
Diff := TStringList.Create;
|
||||||
Diff.LoadFromStream(XmlOutput);
|
Diff.LoadFromStream(XmlOutput);
|
||||||
@ -163,7 +163,7 @@ var
|
|||||||
if LogPath.Action in [caModify, caAdd] then begin
|
if LogPath.Action in [caModify, caAdd] then begin
|
||||||
SourceFile := FSourceWC + LogPath.Path;
|
SourceFile := FSourceWC + LogPath.Path;
|
||||||
if LogPath.CopyFromPath<>'' then begin
|
if LogPath.CopyFromPath<>'' then begin
|
||||||
Command := format('copy -r%d %s%s %s',
|
Command := format('copy -r%d "%s%s""%s"',
|
||||||
[LogPath.CopyFromRevision,
|
[LogPath.CopyFromRevision,
|
||||||
DestRoot, LogPath.CopyFromPath, DestFile]);
|
DestRoot, LogPath.CopyFromPath, DestFile]);
|
||||||
writeln('svn '+ Command);
|
writeln('svn '+ Command);
|
||||||
@ -175,8 +175,9 @@ var
|
|||||||
else
|
else
|
||||||
CopyFile(SourceFile, DestFile, true);
|
CopyFile(SourceFile, DestFile, true);
|
||||||
if LogPath.Action=caAdd then begin
|
if LogPath.Action=caAdd then begin
|
||||||
writeln('svn add '+ DestFile);
|
Command := format('svn add "%s"', [DestFile]);
|
||||||
writeln('Result: ',ExecuteSvnCommand('add '+DestFile));
|
writeln(Command);
|
||||||
|
writeln('Result: ',ExecuteSvnCommand(Command));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -215,13 +216,13 @@ var
|
|||||||
writeln(DestProp.Properties.Text);
|
writeln(DestProp.Properties.Text);
|
||||||
|
|
||||||
for j:=0 to DestProp.Properties.Count-1 do begin
|
for j:=0 to DestProp.Properties.Count-1 do begin
|
||||||
Command := format('propdel %s %s',
|
Command := format('propdel %s "%s"',
|
||||||
[DestProp.Properties.Names[j], DestProp.FileName]);
|
[DestProp.Properties.Names[j], DestProp.FileName]);
|
||||||
writeln('svn ', Command);
|
writeln('svn ', Command);
|
||||||
writeln('svn result: ', ExecuteSvnCommand(Command));
|
writeln('svn result: ', ExecuteSvnCommand(Command));
|
||||||
end;
|
end;
|
||||||
for j:=0 to SourceProp.Properties.Count-1 do begin
|
for j:=0 to SourceProp.Properties.Count-1 do begin
|
||||||
Command := format('propset %s "%s" %s',
|
Command := format('propset %s "%s" "%s"',
|
||||||
[SourceProp.Properties.Names[j],
|
[SourceProp.Properties.Names[j],
|
||||||
SourceProp.Properties.ValueFromIndex[j],
|
SourceProp.Properties.ValueFromIndex[j],
|
||||||
DestProp.FileName]);
|
DestProp.FileName]);
|
||||||
@ -292,7 +293,7 @@ var
|
|||||||
Message.SaveToFile(MessageFile);
|
Message.SaveToFile(MessageFile);
|
||||||
writeln(Message.Text);
|
writeln(Message.Text);
|
||||||
Message.Free;
|
Message.Free;
|
||||||
Command := Format('commit -F "%s" %s', [MessageFile, FDestWC+LogEntry.CommonPath]);
|
Command := Format('commit -F "%s" "%s"', [MessageFile, FDestWC+LogEntry.CommonPath]);
|
||||||
writeln('svn ', Command);
|
writeln('svn ', Command);
|
||||||
writeln('svn commit result: ', ExecuteSvnCommand(Command));
|
writeln('svn commit result: ', ExecuteSvnCommand(Command));
|
||||||
DeleteFile(MessageFile);
|
DeleteFile(MessageFile);
|
||||||
@ -327,7 +328,7 @@ begin
|
|||||||
CopyChanges;
|
CopyChanges;
|
||||||
//GetDiff;
|
//GetDiff;
|
||||||
ApplyPropChanges;
|
ApplyPropChanges;
|
||||||
CommitChanges;
|
//CommitChanges;
|
||||||
|
|
||||||
writeln;
|
writeln;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user