Login | Register
My pages Projects Community openCollabNet

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

delphiaddinfortortoisesvn
Discussion topic

Back to topic list

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

Author otto_noll
Full name Otto Noll
Date 2009-01-09 07:35:08 PST
Message Author: otto_noll
Date: 2009-01-09 07:35:08-0800
New Revision: 56

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

Log:
Add "Tag" 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​=56&r1=55&r2​=56
====================​====================​====================​==================
--- branches/SOPTIM/src/​tsvnWizard.pas (original)
+++ branches/SOPTIM/src/​tsvnWizard.pas 2009-01-09 07:35:08-0800
@@ -32,8 +32,9 @@
         SVN_DELETE,
         SVN_RESOLVE,
         SVN_REVERT,
- SVN_STATUS
- );
+ SVN_STATUS,
+ SVN_TAG
+ );
 type TTortoiseSVN = class(TNotifierObject, IOTANotifier, IOTAWizard)
 private
     timer: TTimer;
@@ -239,7 +240,7 @@
           MItem.Visible := True;
           PMenu.Items.Add(MItem);
           //Creating Submenu of the Popupmenu
- for J:= SVN_Add to SVN_STATUS do begin
+ for J:= SVN_Add to SVN_TAG do begin
             bmp:= TBitmap.create;
             try
               bmp.LoadFromResourceName( HInstance, getBitmapName(J) );
@@ -286,6 +287,7 @@
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_RESOL​VE))) as TMenuItem).Enabled := false;
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_REVER​T))) as TMenuItem).Enabled := false;
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_STATU​S))) as TMenuItem).Enabled := false;
+ (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_TAG))​) as TMenuItem).Enabled := false;
     GetCurrentModuleFile​List(files);
     if files.Count > 0 then
     begin
@@ -303,6 +305,7 @@
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_RESOL​VE))) as TMenuItem).Enabled := true;
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_REVER​T))) as TMenuItem).Enabled := true;
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_STATU​S))) as TMenuItem).Enabled := true;
+ (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_TAG))​) as TMenuItem).Enabled := true;
     end;
 end;
 
@@ -367,6 +370,8 @@
             Result:= 'revert';
         SVN_STATUS:
             Result:= 'status';
+ SVN_TAG:
+ Result:= 'tag';
     end;
 end;
 
@@ -423,6 +428,8 @@
             Result:= 'Revert...';
         SVN_STATUS:
             Result:= 'Status...';
+ SVN_TAG:
+ Result:= 'Tag...';
     end;
 end;
 
@@ -472,6 +479,8 @@
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_STATUS:
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
+ SVN_TAG:
+ ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_UPDATE_TO_SANDBOX:
             if GetCurrentProject <> nil then
                 Result:= vsEnabled;
@@ -590,6 +599,14 @@
               else if GetCurrentModuleFile​List(TStringList.cre​ate).Count = 1 then
                   TSVNExec( '/command:repostatus /notempfile /path:' + AnsiQuotedStr(GetCur​rentModuleFileList(T​StringList.create)[0​], '"' ) );
             end;
+ SVN_TAG:
+ if project <> nil then
+ begin
+ if GetCurrentModuleFile​List(TStringList.cre​ate).Count > 1 then
+ TSVNExec( '/command:copy /notempfile /path:' + AnsiQuotedStr( ExtractFileName(GetC​urrentModuleFileList​(TStringList.create)​[0] ), '"' ) )
+ else if GetCurrentModuleFile​List(TStringList.cre​ate).Count = 1 then
+ TSVNExec( '/command:copy /notempfile /path:' + AnsiQuotedStr(GetCur​rentModuleFileList(T​StringList.create)[0​], '"' ) );
+ end;
         SVN_RESOLVE:
             if project <> nil then
             begin

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r56 - branches/SOPTIM/src/tsvnWizard.pas otto_noll Otto Noll 2009-01-09 07:35:08 PST
Messages per page: