You've already forked lazarus-ccr
added TLogEntry.DisplayDate
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@117 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -146,6 +146,7 @@ type
|
||||
FMessage: string;
|
||||
FRevision: integer;
|
||||
function GetCommonPath: string;
|
||||
function GetDisplayDate: string;
|
||||
function GetLogPath(index: integer): TLogPath;
|
||||
function GetLogPathCount: integer;
|
||||
procedure LoadFromNode(ANode: TDOMElement);
|
||||
@ -157,6 +158,7 @@ type
|
||||
property Author: string read FAuthor write FAuthor;
|
||||
property CommonPath: string read GetCommonPath;
|
||||
property Date: string read FDate write FDate;
|
||||
property DisplayDate: string read GetDisplayDate;
|
||||
property Message: string read FMessage write FMessage;
|
||||
property Path[index: integer] :TLogPath read GetLogPath;
|
||||
property PathCount: integer read GetLogPathCount;
|
||||
@ -460,12 +462,18 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function TLogEntry.GetDisplayDate: string;
|
||||
begin
|
||||
Result := Copy(FDate, 1, 10) + ' ' + Copy(FDate,12,8);
|
||||
end;
|
||||
|
||||
function TLogEntry.GetFileList(const BaseDir: string = ''): TStrings;
|
||||
var
|
||||
i: integer;
|
||||
begin
|
||||
Result := TStringList.Create;
|
||||
for i:= 0 to PathCount -1 do
|
||||
if Path[i].Action in [caModify, caAdd] then
|
||||
Result.Add(BaseDir + Path[i].Path);
|
||||
end;
|
||||
|
||||
@ -596,7 +604,7 @@ begin
|
||||
Lines := TStringList.Create;
|
||||
try
|
||||
Lines.LoadFromStream(s);
|
||||
writeln(Lines.Text);
|
||||
//writeln(Lines.Text);
|
||||
i := 0;
|
||||
while (i<Lines.Count) do begin
|
||||
Line := Lines[i];
|
||||
|
@ -92,6 +92,8 @@ begin
|
||||
end;
|
||||
ReadOutput;
|
||||
Result := SvnProcess.ExitStatus;
|
||||
if Result<>0 then
|
||||
Raise Exception.Create('Svn ' + Command + ' failed.');
|
||||
finally
|
||||
SvnProcess.Free;
|
||||
end;
|
||||
|
@ -114,6 +114,8 @@ begin
|
||||
AssertEquals('Wrong log author', 'vincents', LogEntry.Author);
|
||||
AssertEquals('Wrong log date',
|
||||
'2007-02-20T10:57:42.928052Z', LogEntry.Date);
|
||||
AssertEquals('Wrong log display date',
|
||||
'2007-02-20 10:57:42', LogEntry.DisplayDate);
|
||||
AssertEquals('Wrong log message',
|
||||
'TAChart: added icon, added to make bigide', LogEntry.Message);
|
||||
finally
|
||||
|
Reference in New Issue
Block a user