Login | Register
My pages Projects Community openCollabNet

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

delphiaddinfortortoisesvn
Discussion topic

Hide all messages in topic

All messages in topic

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

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

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

Log:
Add "Properties" 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​=49&r1=48&r2​=49
====================​====================​====================​==================
--- branches/SOPTIM/src/​tsvnWizard.pas (original)
+++ branches/SOPTIM/src/​tsvnWizard.pas 2009-01-09 04:36:31-0800
@@ -27,7 +27,8 @@
         SVN_GRAPH,
         SVN_LOCK,
         SVN_LOG,
- SVN_MERGE
+ SVN_MERGE,
+ SVN_PROPERTIES
     );
 type TTortoiseSVN = class(TNotifierObject, IOTANotifier, IOTAWizard)
 private
@@ -237,7 +238,7 @@
           MItem.Visible := True;
           PMenu.Items.Add(MItem);
           //Creating Submenu of the Popupmenu
- for J:= SVN_Add to SVN_MERGE do begin
+ for J:= SVN_Add to SVN_PROPERTIES do begin
             bmp:= TBitmap.create;
             try
               bmp.LoadFromResourceName( HInstance, getBitmapName(J) );
@@ -279,6 +280,7 @@
     (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;
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_MERGE​))) as TMenuItem).Enabled := false;
+ (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_PROPE​RTIES))) as TMenuItem).Enabled := false;
     GetCurrentModuleFile​List(files);
     if files.Count > 0 then
     begin
@@ -292,6 +294,7 @@
       (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;
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_MERGE​))) as TMenuItem).Enabled := true;
+ (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_PROPE​RTIES))) as TMenuItem).Enabled := true;
     end;
 end;
 
@@ -348,6 +351,8 @@
             Result:= 'log';
         SVN_MERGE:
             Result:= 'merge';
+ SVN_PROPERTIES:
+ Result:= 'properties'
     end;
 end;
 
@@ -394,6 +399,8 @@
             Result:= 'Log...';
         SVN_MERGE:
             Result:= 'Merge...';
+ SVN_PROPERTIES:
+ Result:= 'Properties...'
     end;
 end;
 
@@ -433,6 +440,8 @@
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_MERGE:
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
+ SVN_PROPERTIES:
+ ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_UPDATE_TO_SANDBOX:
             if GetCurrentProject <> nil then
                 Result:= vsEnabled;
@@ -569,6 +578,14 @@
               else if GetCurrentModuleFile​List(TStringList.cre​ate).Count = 1 then
                   TSVNExec( '/command:merge /notempfile /path:' + AnsiQuotedStr(GetCur​rentModuleFileList(T​StringList.create)[0​], '"' ) );
             end;
+ SVN_PROPERTIES:
+ if project <> nil then
+ begin
+ if GetCurrentModuleFile​List(TStringList.cre​ate).Count > 1 then
+ TSVNExec( '/command:properties /notempfile /path:' + AnsiQuotedStr( ExtractFileName(GetC​urrentModuleFileList​(TStringList.create)​[0] ), '"' ) )
+ else if GetCurrentModuleFile​List(TStringList.cre​ate).Count = 1 then
+ TSVNExec( '/command:properties /notempfile /path:' + AnsiQuotedStr(GetCur​rentModuleFileList(T​StringList.create)[0​], '"' ) );
+ end;
         SVN_EXPLORE:
             if project <> nil then
             begin
Messages per page: