mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 12:56:14 +02:00
fixed AV when parsing empty messages in SVN log xml
added asking for confirmation on empty message r17175 initialized author to '(no author)' (used in anonymous repositories) fixed commit messages (writing them to a temp file and using --file switch) fixed some AVs in parsing SVN log XML fixed saving of checked status in SVNSettingsForm git-svn-id: trunk@17176 -
This commit is contained in:
parent
362311dc41
commit
9d2926b3f7
@ -396,11 +396,12 @@ begin
|
||||
|
||||
//message
|
||||
if NodeName = 'msg' then
|
||||
LogItem.Msg:=ReplaceLineEndings(tmpNode.FirstChild.NodeValue, LineEnding);
|
||||
if Assigned(tmpNode.FirstChild) then
|
||||
LogItem.Msg:=ReplaceLineEndings(tmpNode.FirstChild.NodeValue, LineEnding);
|
||||
end;
|
||||
|
||||
ActionNode := tmpNode.FirstChild;
|
||||
if Assigned(ActionNode.Attributes) then
|
||||
if Assigned(ActionNode) and Assigned(ActionNode.Attributes) then
|
||||
repeat
|
||||
|
||||
//attributes
|
||||
|
@ -106,6 +106,11 @@ var
|
||||
StatusItem : PSVNStatusItem;
|
||||
FileName: string;
|
||||
begin
|
||||
if SVNCommitMsgMemo.Text = '' then
|
||||
if MessageDlg ('No message set.', 'Do you wish to continue?', mtConfirmation,
|
||||
[mbYes, mbNo],0) <> mrYes then
|
||||
exit;
|
||||
|
||||
//commit the checked files
|
||||
CmdLine := SVNExecutable + ' commit --force-log ';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user