Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r47 - branches/SOPTIM/src/tsvnWizard.pas

delphiaddinfortortoisesvn
Discussion topic

Hide all messages in topic

All messages in topic

svn commit: r47 - branches/SOPTIM/src/tsvnWizard.pas

Author otto_noll
Full name Otto Noll
Date 2009-01-09 04:24:49 PST
Message Author: otto_noll
Date: 2009-01-09 04:24:49-0800
New Revision: 47

Modified:
   branches/SOPTIM/src/​tsvnWizard.pas

Log:
Add "Log" to context menu

Modified: branches/SOPTIM/src/​tsvnWizard.pas
Url: http://delphiaddinfo​rtortoisesvn.tigris.​org/source/browse/de​lphiaddinfortortoise​svn/branches/SOPTIM/​src/tsvnWizard.pas?v​iew=diff&pathrev​=47&r1=46&r2​=47
====================​====================​====================​==================
--- branches/SOPTIM/src/​tsvnWizard.pas (original)
+++ branches/SOPTIM/src/​tsvnWizard.pas 2009-01-09 04:24:49-0800
@@ -25,7 +25,8 @@
         SVN_DIFF,
         SVN_EXPLORE,
         SVN_GRAPH,
- SVN_LOCK
+ SVN_LOCK,
+ SVN_LOG
     );
 type TTortoiseSVN = class(TNotifierObject, IOTANotifier, IOTAWizard)
 private
@@ -235,7 +236,7 @@
           MItem.Visible := True;
           PMenu.Items.Add(MItem);
           //Creating Submenu of the Popupmenu
- for J:= SVN_Add to SVN_LOCK do begin
+ for J:= SVN_Add to SVN_LOG do begin
             bmp:= TBitmap.create;
             try
               bmp.LoadFromResourceName( HInstance, getBitmapName(J) );
@@ -275,6 +276,7 @@
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_EXPLO​RE))) as TMenuItem).Enabled := false;
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_GRAPH​))) as TMenuItem).Enabled := false;
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_LOCK)​)) as TMenuItem).Enabled := false;
+ (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_LOG))​) as TMenuItem).Enabled := false;
     GetCurrentModuleFile​List(files);
     if files.Count > 0 then
     begin
@@ -286,6 +288,7 @@
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_EXPLO​RE))) as TMenuItem).Enabled := true;
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_GRAPH​))) as TMenuItem).Enabled := true;
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_LOCK)​)) as TMenuItem).Enabled := true;
+ (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_LOG))​) as TMenuItem).Enabled := true;
     end;
 end;
 
@@ -338,6 +341,8 @@
             Result:= 'revisiongraph';
         SVN_LOCK:
             Result:= 'lock';
+ SVN_LOG:
+ Result:= 'log';
     end;
 end;
 
@@ -380,6 +385,8 @@
             Result:= 'Revisiongraph...';
         SVN_LOCK:
             Result:= 'Lock...';
+ SVN_LOG:
+ Result:= 'Log...';
     end;
 end;
 
@@ -415,6 +422,8 @@
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_LOCK:
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
+ SVN_LOG:
+ ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_UPDATE_TO_SANDBOX:
             if GetCurrentProject <> nil then
                 Result:= vsEnabled;
@@ -535,6 +544,14 @@
               else if GetCurrentModuleFile​List(TStringList.cre​ate).Count = 1 then
                   TSVNExec( '/command:revisiongraph /notempfile /path:' + AnsiQuotedStr(GetCur​rentModuleFileList(T​StringList.create)[0​], '"' ) );
             end;
+ SVN_LOG:
+ if project <> nil then
+ begin
+ if GetCurrentModuleFile​List(TStringList.cre​ate).Count > 1 then
+ TSVNExec( '/command:log /notempfile /path:' + AnsiQuotedStr( ExtractFileName(GetC​urrentModuleFileList​(TStringList.create)​[0] ), '"' ) )
+ else if GetCurrentModuleFile​List(TStringList.cre​ate).Count = 1 then
+ TSVNExec( '/command:log /notempfile /path:' + AnsiQuotedStr(GetCur​rentModuleFileList(T​StringList.create)[0​], '"' ) );
+ end;
         SVN_EXPLORE:
             if project <> nil then
             begin
Messages per page: