Login | Register
My pages Projects Community openCollabNet

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

delphiaddinfortortoisesvn
Discussion topic

Hide all messages in topic

All messages in topic

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

Author otto_noll
Full name Otto Noll
Date 2009-01-05 08:05:44 PST
Message Author: otto_noll
Date: 2009-01-05 08:05:43-0800
New Revision: 39

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

Log:
Add "Revisiongraph" 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​=39&r1=38&r2​=39
====================​====================​====================​==================
--- branches/SOPTIM/src/​tsvnWizard.pas (original)
+++ branches/SOPTIM/src/​tsvnWizard.pas 2009-01-05 08:05:43-0800
@@ -23,7 +23,8 @@
         SVN_BRANCH,
         SVN_COMMIT,
         SVN_DIFF,
- SVN_EXPLORE
+ SVN_EXPLORE,
+ SVN_GRAPH
     );
 type TTortoiseSVN = class(TNotifierObject, IOTANotifier, IOTAWizard)
 private
@@ -207,7 +208,7 @@
           MItem.Visible := True;
           PMenu.Items.Add(MItem);
           //Creating Submenu of the Popupmenu
- for J:= SVN_Add to SVN_EXPLORE do begin
+ for J:= SVN_Add to SVN_GRAPH do begin
             bmp:= TBitmap.create;
             try
               bmp.LoadFromResourceName( HInstance, getBitmapName(J) );
@@ -245,6 +246,7 @@
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_BRANC​H))) as TMenuItem).Enabled := false;
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_COMMI​T))) as TMenuItem).Enabled := false;
     (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;
     GetCurrentModuleFile​List(files);
     if files.Count > 0 then
     begin
@@ -254,6 +256,7 @@
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_BRANC​H))) as TMenuItem).Enabled := true;
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_COMMI​T))) as TMenuItem).Enabled := true;
       (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;
     end;
 end;
 
@@ -302,6 +305,8 @@
             Result:= 'commit';
         SVN_EXPLORE:
             Result:= 'explore';
+ SVN_GRAPH:
+ Result:= 'revisiongraph';
     end;
 end;
 
@@ -340,6 +345,8 @@
             Result:= 'Commit...';
         SVN_EXPLORE:
             Result:= 'Explore folder...';
+ SVN_GRAPH:
+ Result:= 'Revisiongraph...';
     end;
 end;
 
@@ -371,6 +378,8 @@
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_EXPLORE:
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
+ SVN_GRAPH:
+ ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_UPDATE_TO_SANDBOX:
             if GetCurrentProject <> nil then
                 Result:= vsEnabled;
@@ -450,6 +459,14 @@
               else if GetCurrentModuleFile​List(TStringList.cre​ate).Count = 1 then
                   TSVNExec( '/command:copy /notempfile /path:' + AnsiQuotedStr(GetCur​rentModuleFileList(T​StringList.create)[0​], '"' ) );
             end;
+ SVN_GRAPH:
+ if project <> nil then
+ begin
+ if GetCurrentModuleFile​List(TStringList.cre​ate).Count > 1 then
+ TSVNExec( '/command:revisiongraph /notempfile /path:' + AnsiQuotedStr( ExtractFileName(GetC​urrentModuleFileList​(TStringList.create)​[0] ), '"' ) )
+ else if GetCurrentModuleFile​List(TStringList.cre​ate).Count = 1 then
+ TSVNExec( '/command:revisiongraph /notempfile /path:' + AnsiQuotedStr(GetCur​rentModuleFileList(T​StringList.create)[0​], '"' ) );
+ end;
         SVN_EXPLORE:
             if project <> nil then
             begin
Messages per page: